From 94c5092647f3376cd7b6113d2647ea8a980cdafb Mon Sep 17 00:00:00 2001 From: cyclinder Date: Fri, 18 Oct 2024 19:12:12 +0800 Subject: [PATCH] Add extra labels for rdma-tools --- rdma-tools/chart/templates/daemonset.yaml | 3 +++ rdma-tools/chart/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/rdma-tools/chart/templates/daemonset.yaml b/rdma-tools/chart/templates/daemonset.yaml index d80a63a..0dcbcf4 100644 --- a/rdma-tools/chart/templates/daemonset.yaml +++ b/rdma-tools/chart/templates/daemonset.yaml @@ -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 }} diff --git a/rdma-tools/chart/values.yaml b/rdma-tools/chart/values.yaml index 31831cd..2007b84 100644 --- a/rdma-tools/chart/values.yaml +++ b/rdma-tools/chart/values.yaml @@ -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: