Skip to content

Commit

Permalink
Merge pull request #13940 from rook/mergify/bp/release-1.13/pr-13931
Browse files Browse the repository at this point in the history
helm: use toYaml for discovery nodeAffinity (backport #13931)
  • Loading branch information
mergify[bot] committed Mar 15, 2024
2 parents b8ea11b + 09ddb88 commit f17cc6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/rook-ceph/templates/deployment.yaml
Expand Up @@ -68,7 +68,7 @@ spec:
{{- end }}
{{- if .Values.discover.nodeAffinity }}
- name: DISCOVER_AGENT_NODE_AFFINITY
value: {{ .Values.discover.nodeAffinity }}
value: {{ toYaml .Values.discover.nodeAffinity | quote }}
{{- end }}
{{- if .Values.discover.podLabels }}
- name: DISCOVER_AGENT_POD_LABELS
Expand Down
11 changes: 10 additions & 1 deletion deploy/charts/rook-ceph/values.yaml
Expand Up @@ -597,7 +597,16 @@ discover:
# operator: Exists
# effect: NoSchedule
# -- The node labels for affinity of `discover-agent` [^1]
nodeAffinity: # key1=value1,value2; key2=value3
nodeAffinity:
# key1=value1,value2; key2=value3
#
# or
#
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: storage-node
# operator: Exists
# -- Labels to add to the discover pods
podLabels: # "key1=value1,key2=value2"
# -- Add resources to discover daemon pods
Expand Down

0 comments on commit f17cc6b

Please sign in to comment.