diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f8fc85..05f8efa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/Chart.yaml b/Chart.yaml index f1c86fd..5b72f19 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -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: diff --git a/templates/sync-workspace-deployment.yaml b/templates/sync-workspace-deployment.yaml index 73557a2..7e9ae86 100644 --- a/templates/sync-workspace-deployment.yaml +++ b/templates/sync-workspace-deployment.yaml @@ -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 diff --git a/values.yaml b/values.yaml index 93b1f7c..7b59748 100644 --- a/values.yaml +++ b/values.yaml @@ -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.