Skip to content

Commit 6237b82

Browse files
committed
Fix serviceaccount handling for nfd-gc to be consistent with others
Signed-off-by: Shiva Krishna, Merla <[email protected]>
1 parent dd8d7f6 commit 6237b82

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

deployment/helm/node-feature-discovery/templates/clusterrolebinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ roleRef:
4747
name: {{ include "node-feature-discovery.fullname" . }}-gc
4848
subjects:
4949
- kind: ServiceAccount
50-
name: {{ .Values.gc.serviceAccount.name | default "nfd-gc" }}
50+
name: {{ include "node-feature-discovery.gc.serviceAccountName" . }}
5151
namespace: {{ include "node-feature-discovery.namespace" . }}
5252
{{- end }}

deployment/helm/node-feature-discovery/templates/nfd-gc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
{{- toYaml . | nindent 8 }}
2828
{{- end }}
2929
spec:
30-
serviceAccountName: {{ .Values.gc.serviceAccountName | default "nfd-gc" }}
30+
serviceAccountName: {{ include "node-feature-discovery.gc.serviceAccountName" . }}
3131
dnsPolicy: ClusterFirstWithHostNet
3232
{{- with .Values.imagePullSecrets }}
3333
imagePullSecrets:

deployment/helm/node-feature-discovery/templates/serviceaccount.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ metadata:
2727
{{- end }}
2828
{{- end }}
2929

30-
{{- if and .Values.gc.enable .Values.gc.rbac.create (or .Values.enableNodeFeatureApi .Values.topologyUpdater.enable) }}
30+
{{- if and .Values.gc.enable .Values.gc.serviceAccount.create (or .Values.enableNodeFeatureApi .Values.topologyUpdater.enable) }}
3131
---
3232
apiVersion: v1
3333
kind: ServiceAccount
3434
metadata:
35-
name: {{ .Values.gc.serviceAccount.name | default "nfd-gc" }}
35+
name: {{ include "node-feature-discovery.gc.serviceAccountName" . }}
3636
namespace: {{ include "node-feature-discovery.namespace" . }}
3737
labels:
3838
{{- include "node-feature-discovery.labels" . | nindent 4 }}

0 commit comments

Comments
 (0)