diff --git a/charts/tofu-controller/README.md b/charts/tofu-controller/README.md index 2d45c7dd3..f6c87bc6e 100644 --- a/charts/tofu-controller/README.md +++ b/charts/tofu-controller/README.md @@ -36,6 +36,7 @@ __Note__: If you need to use the `imagePullSecrets` it would be best to set `ser | affinity | object | `{}` | Affinity properties for the tofu-controller deployment | | allowBreakTheGlass | bool | `false` | Argument for `--allow-break-the-glass` (Controller). AllowBreakTheGlass allows the controller to break the glass and modify Terraform states when the sync loop is broken. | | allowCrossNamespaceRefs | bool | `false` | If `true`, enable cross-namespace references for controller and branch-planner | +| annotations | object | `{}` | Additional deployment annotations for controller and branch-planner | | awsPackage.install | bool | `true` | | | awsPackage.repository | string | `"ghcr.io/flux-iac/aws-primitive-modules"` | | | awsPackage.tag | string | `"v4.38.0-v1alpha11"` | | @@ -72,7 +73,7 @@ __Note__: If you need to use the `imagePullSecrets` it would be best to set `ser | metrics.serviceMonitor.targetLabels | list | `[]` | Set targetLabels for the serviceMonitor | | nameOverride | string | `""` | Provide a name | | nodeSelector | object | `{}` | Node Selector properties for the tofu-controller deployment | -| podAnnotations | object | `{}` | Additional pod annotations | +| podAnnotations | object | `{}` | Additional pod annotations for controller and branch-planner | | podLabels | object | `{}` | Additional pod labels | | podSecurityContext | object | `{"fsGroup":1337}` | Pod-level security context | | priorityClassName | string | `""` | PriorityClassName property for the tofu-controller deployment | diff --git a/charts/tofu-controller/templates/deployment.yaml b/charts/tofu-controller/templates/deployment.yaml index e4f19e746..85d274e30 100644 --- a/charts/tofu-controller/templates/deployment.yaml +++ b/charts/tofu-controller/templates/deployment.yaml @@ -1,6 +1,10 @@ apiVersion: apps/v1 kind: Deployment metadata: + {{- with .Values.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} labels: {{- include "tofu-controller.labels" . | nindent 4 }} name: {{ include "tofu-controller.fullname" . }} diff --git a/charts/tofu-controller/templates/planner-deployment.yaml b/charts/tofu-controller/templates/planner-deployment.yaml index 18fc5293e..aeb8af795 100644 --- a/charts/tofu-controller/templates/planner-deployment.yaml +++ b/charts/tofu-controller/templates/planner-deployment.yaml @@ -2,6 +2,10 @@ apiVersion: apps/v1 kind: Deployment metadata: + {{- with .Values.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} labels: {{- include "planner.labels" . | nindent 4 }} name: {{ include "planner.fullname" . }} diff --git a/charts/tofu-controller/values.yaml b/charts/tofu-controller/values.yaml index a4634cbe4..a584fc8ac 100644 --- a/charts/tofu-controller/values.yaml +++ b/charts/tofu-controller/values.yaml @@ -16,7 +16,9 @@ serviceAccount: nameOverride: "" # -- Provide a fullname fullnameOverride: "" -# -- Additional pod annotations +# -- Additional deployment annotations for controller and branch-planner +annotations: {} +# -- Additional pod annotations for controller and branch-planner podAnnotations: {} # -- Additional pod labels podLabels: {}