Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom labels on operator pod #776

Open
wants to merge 1 commit into
base: master
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
6 changes: 6 additions & 0 deletions helm/trident-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
labels:
app: operator.trident.netapp.io
name: trident-operator
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | indent 8 }}
{{- end }}
spec:
nodeSelector:
kubernetes.io/arch: amd64
Expand All @@ -42,6 +45,9 @@ spec:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
serviceAccountName: trident-operator
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
containers:
- command:
- /trident-operator
Expand Down
6 changes: 4 additions & 2 deletions helm/trident-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ podAnnotations: {}
## Deployment Annotations
deploymentAnnotations: {}

podLabels: {}

## Tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

priorityClassName: ""

## Affinity for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
affinity: {}
Expand All @@ -31,8 +35,6 @@ affinity: {}
# tridentNodePluginTolerations overrides tolerations for Pods running the Trident Node CSI Plugin
# tridentNodePluginTolerations: []



# imageRegistry identifies the registry for the trident-operator, trident, and other images. Leave empty to accept the default.
imageRegistry: ""

Expand Down