Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Add the "resources" specification to sync-workspace-deployment #72

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.3 (December 27, 2023)

* Add `resource` specification in deployment manifest

## 1.1.2 (November 22, 2022)

* Update operator image to `v1.1.2`
Expand Down
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: terraform
version: 1.1.2
version: 1.1.3
description: Install and configure Terraform Cloud Operator on Kubernetes.
home: https://www.terraform.io
sources:
Expand Down
4 changes: 4 additions & 0 deletions templates/sync-workspace-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ spec:
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 5
{{- if .Values.syncWorkspace.resources }}
resources:
{{- toYaml .Values.syncWorkspace.resources | nindent 12 }}
{{- end }}
volumes:
{{- if .Values.CACerts}}
- name: cacert
Expand Down
8 changes: 8 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ syncWorkspace:
sensitiveVariables:
secretName: workspacesecrets

# Resources to allocate for the workspace container in the operator pod
# resources:
# requests:
# cpu: 50m
# memory: 128Mi
# limits:
# memory: 128Mi

# Control whether a test Pod manifest is generated when running helm template.
# When using helm install, the test Pod is not submitted to the cluster so this
# is only useful when running helm template.
Expand Down