Skip to content

Commit

Permalink
Merge pull request #61 from cyclinder/add_extra_labels
Browse files Browse the repository at this point in the history
Add extra labels for rdma-tools
  • Loading branch information
weizhoublue authored Nov 6, 2024
2 parents 2bc6050 + 94c5092 commit a823cb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rdma-tools/chart/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
metadata:
labels:
app: {{ include "project.name" . | trunc 63 | trimSuffix "-" | quote }}
{{- if .Values.extraLabels }}
{{- include "tplvalues.render" ( dict "value" .Values.extraLabels "context" $ ) | nindent 8 }}
{{- end }}
{{- if .Values.extraAnnotations }}
annotations:
{{- include "tplvalues.render" ( dict "value" .Values.extraAnnotations "context" $ ) | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions rdma-tools/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ extraAnnotations: {}
# {"name":"gpu2-sriov","namespace":"spiderpool"},
# {"name":"gpu8-sriov","namespace":"spiderpool"}]

extraLabels: {}
# network.spidernet.io: ai-apps

securityContext: {}
#privileged: true
#capabilities:
Expand Down

0 comments on commit a823cb2

Please sign in to comment.