Skip to content

Commit

Permalink
Merge branch 'helm-updates' into 'main'
Browse files Browse the repository at this point in the history
Update GFD Helm Chart to fix deployment with nfd.nodefeatureapi=true

See merge request nvidia/kubernetes/device-plugin!316
  • Loading branch information
Evan Lezar committed Oct 24, 2023
2 parents d03f4aa + d962d0c commit f148136
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions deployments/helm/gpu-feature-discovery/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ If release name contains chart name it will be used as a full name.
{{- end -}}
{{- end -}}

{{/*
Allow the release namespace to be overridden for multi-namespace deployments in combined charts
*/}}
{{- define "gpu-feature-discovery.namespace" -}}
{{- if .Values.namespaceOverride -}}
{{- .Values.namespaceOverride -}}
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
{{- end -}}

{{/*
Create chart name and version as used by the chart label.
*/}}
Expand Down
3 changes: 1 addition & 2 deletions deployments/helm/gpu-feature-discovery/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ roleRef:
subjects:
- kind: ServiceAccount
name: gpu-feature-discovery
namespace: node-feature-discovery

namespace: {{ include "gpu-feature-discovery.namespace" . }}
{{- end }}

0 comments on commit f148136

Please sign in to comment.