Skip to content

Commit

Permalink
Wrap kubernetes match labels (#230)
Browse files Browse the repository at this point in the history
wrap kubernetesMatchLabels (app.kubernetes.instance/name) with a values.yaml enabled flag (default false)
  • Loading branch information
evyaffe authored Dec 12, 2022
1 parent 594b392 commit 4e520f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sapbtp-operator-charts/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ spec:
selector:
matchLabels:
control-plane: controller-manager
{{- if eq .Values.manager.kubernetesMatchLabels.enabled true }}
app.kubernetes.io/instance: sap-btp-operator
app.kubernetes.io/name: sap-btp-operator
{{- end }}
template:
metadata:
annotations:
Expand Down
2 changes: 2 additions & 0 deletions sapbtp-operator-charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,7 @@ manager:
securityContext: {}
health_service:
enabled: false
kubernetesMatchLabels:
enabled: false
cluster:
id:

0 comments on commit 4e520f4

Please sign in to comment.