You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have requirement in our company where we need to have a custom labels for all Daemonsets and Jobs created by the ClusterPolicy as well as node feature discovery DSs and deployments.
For all of the DSs created by ClusterPolicy, we are using:
daemonsets:
labels: {}
Regarding the node feature discovery, there isn't a way to set custom labels as the only labels are being filled through _helpers.tpl:
{{- define "node-feature-discovery.labels" -}}
helm.sh/chart: {{ include "node-feature-discovery.chart" . }}
{{ include "node-feature-discovery.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "node-feature-discovery.selectorLabels" -}}
app.kubernetes.io/name: {{ include "node-feature-discovery.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
Another issue we are facing is that we are not able to set our custom securityContext for the DSs created by the ClusterPolicy. (CRD doesnt allow setting this as well)
Can we get help with templating and customizing the above ?
Thanks!
The text was updated successfully, but these errors were encountered:
Hello,
For all of the DSs created by ClusterPolicy, we are using:
daemonsets:
labels: {}
However, this label is not applied to the kubernetes job created by the validator DS (cuda-validator) and we were not able to find a way to set labels for this job. The CRD also doesnt allow adding a label for this specific job. (https://github.com/NVIDIA/gpu-operator/blob/main/deployments/gpu-operator/crds/nvidia.com_clusterpolicies.yaml#L1766)
Regarding the node feature discovery, there isn't a way to set custom labels as the only labels are being filled through _helpers.tpl:
Can we get help with templating and customizing the above ?
Thanks!
The text was updated successfully, but these errors were encountered: