Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .changes/unreleased/ENHANCEMENTS-522-20241201-185649.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: ENHANCEMENTS
body: '`Helm Chart`: Add the ability to configure additional labels for the Operator pod.'
time: 2024-12-01T18:56:49.558093+01:00
custom:
PR: "522"
1 change: 1 addition & 0 deletions charts/hcp-terraform-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ For a more detailed explanation, please refer to the [FAQ](../../docs/faq.md#gen
| operator.tfeAddress | string | `""` | The API URL of a Terraform Enterprise instance. |
| operator.tolerations | list | `[]` | Kubernetes Tolerations. More information: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
| operator.watchedNamespaces | list | `[]` | List of namespaces the controllers should watch. |
| podLabels | object | `{}` | Additional labels to add to the Operator pods. |
| priorityClassName | string | `""` | Deployment priorityClassName. More information in [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/). |
| rbac.create | bool | `true` | Specifies whether a Role-Based Access Control (RBAC) resources should be created |
| replicaCount | int | `2` | The number of Operator replicas. |
Expand Down
3 changes: 3 additions & 0 deletions charts/hcp-terraform-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spec:
labels:
{{- include "hcp-terraform-operator.selectorLabels" . | nindent 8 }}
control-plane: {{ .Release.Name }}-controller-manager
{{- with .Values.podLabels }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
spec:
{{- with .Values.priorityClassName }}
priorityClassName: {{ . | quote }}
Expand Down
3 changes: 3 additions & 0 deletions charts/hcp-terraform-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# -- Reference to one or more secrets essential for pulling container images.
imagePullSecrets: []

# -- Additional labels to add to the Operator pods.
podLabels: {}

# -- The number of Operator replicas.
replicaCount: 2

Expand Down