Skip to content

Commit 867f896

Browse files
authored
Merge pull request #1400 from adberger/main
feat(helm-chart): Add additionalLabels for deployments
2 parents 5a0c70a + f1495c1 commit 867f896

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

charts/tofu-controller/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ __Note__: If you need to use the `imagePullSecrets` it would be best to set `ser
3939
| awsPackage.install | bool | `true` | |
4040
| awsPackage.repository | string | `"ghcr.io/flux-iac/aws-primitive-modules"` | |
4141
| awsPackage.tag | string | `"v4.38.0-v1alpha11"` | |
42-
| branchPlanner | object | `{"configMap":"branch-planner","enabled":false,"image":{"pullPolicy":"IfNotPresent","repository":"ghcr.io/flux-iac/branch-planner","tag":""},"podSecurityContext":{"fsGroup":1337},"pollingInterval":"30s","resources":{"limits":{"cpu":"1000m","memory":"1Gi"},"requests":{"cpu":"200m","memory":"64Mi"}},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65532,"seccompProfile":{"type":"RuntimeDefault"}},"sourceInterval":"30s"}` | Branch Planner-specific configurations |
42+
| branchPlanner | object | `{"configMap":"branch-planner","deploymentLabels":{},"enabled":false,"image":{"pullPolicy":"IfNotPresent","repository":"ghcr.io/flux-iac/branch-planner","tag":""},"podSecurityContext":{"fsGroup":1337},"pollingInterval":"30s","resources":{"limits":{"cpu":"1000m","memory":"1Gi"},"requests":{"cpu":"200m","memory":"64Mi"}},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65532,"seccompProfile":{"type":"RuntimeDefault"}},"sourceInterval":"30s"}` | Branch Planner-specific configurations |
4343
| caCertValidityDuration | string | `"168h0m"` | Argument for `--ca-cert-validity-duration` (Controller) |
4444
| certRotationCheckFrequency | string | `"30m0s"` | Argument for `--cert-rotation-check-frequency` (Controller) |
4545
| certValidityDuration | string | `"6h0m"` | Argument for `--cert-validity-duration` (Controller) |
4646
| clusterDomain | string | `"cluster.local"` | Argument for `--cluster-domain` (Controller). ClusterDomain indicates the cluster domain, defaults to cluster.local. |
4747
| concurrency | int | `24` | Concurrency of the controller (Controller) |
48+
| deploymentLabels | object | `{}` | Additional deployment labels for the controller |
4849
| eksSecurityGroupPolicy | object | `{"create":false,"ids":[]}` | Create an AWS EKS Security Group Policy with the supplied Security Group IDs [See](https://docs.aws.amazon.com/eks/latest/userguide/security-groups-for-pods.html#deploy-securitygrouppolicy) |
4950
| eksSecurityGroupPolicy.create | bool | `false` | Create the EKS SecurityGroupPolicy |
5051
| eksSecurityGroupPolicy.ids | list | `[]` | List of AWS Security Group IDs |
@@ -99,4 +100,4 @@ __Note__: If you need to use the `imagePullSecrets` it would be best to set `ser
99100
| watchAllNamespaces | bool | `true` | If `true`, controller will watch all namespaces for Terraform resources |
100101

101102
----------------------------------------------
102-
Autogenerated from chart metadata using [helm-docs v1.13.0](https://github.com/norwoodj/helm-docs/releases/v1.13.0)
103+
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)

charts/tofu-controller/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ kind: Deployment
33
metadata:
44
labels:
55
{{- include "tofu-controller.labels" . | nindent 4 }}
6+
{{- with .Values.deploymentLabels }}
7+
{{ toYaml . }}
8+
{{- end }}
69
name: {{ include "tofu-controller.fullname" . }}
710
namespace: {{ .Release.Namespace }}
811

charts/tofu-controller/templates/planner-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ kind: Deployment
44
metadata:
55
labels:
66
{{- include "planner.labels" . | nindent 4 }}
7+
{{- with .Values.branchPlanner.deploymentLabels }}
8+
{{ toYaml . }}
9+
{{- end }}
710
name: {{ include "planner.fullname" . }}
811
namespace: {{ .Release.Namespace }}
912
spec:

charts/tofu-controller/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ serviceAccount:
1616
nameOverride: ""
1717
# -- Provide a fullname
1818
fullnameOverride: ""
19+
# -- Additional deployment labels for the controller
20+
deploymentLabels: {}
1921
# -- Additional pod annotations
2022
podAnnotations: {}
2123
# -- Additional pod labels
@@ -181,6 +183,8 @@ branchPlanner:
181183
repository: ghcr.io/flux-iac/branch-planner
182184
pullPolicy: IfNotPresent
183185
tag: ""
186+
# Additional deployment labels for the branch-planner
187+
deploymentLabels: {}
184188
configMap: branch-planner
185189
pollingInterval: 30s
186190
# Interval value to use for Source objects for branch planner Terraform objects.

0 commit comments

Comments
 (0)