Skip to content

Commit

Permalink
add downward API for spiderpool-agent to get agent pod name and names…
Browse files Browse the repository at this point in the history
…pace

Signed-off-by: Icarus9913 <[email protected]>
  • Loading branch information
Icarus9913 committed Nov 6, 2023
1 parent 715fbcc commit fcd90b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/spiderpool/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@ spec:
rm -f /host/etc/cni/net.d/00-multus.conf || true
{{ .Values.spiderpoolAgent.binName }} shutdown
env:
- name: SPIDERPOOL_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: SPIDERPOOL_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: SPIDERPOOL_LOG_LEVEL
value: {{ .Values.spiderpoolAgent.debug.logLevel | quote }}
- name: SPIDERPOOL_ENABLED_METRIC
Expand Down

0 comments on commit fcd90b0

Please sign in to comment.