59 lines
1.9 KiB
YAML
59 lines
1.9 KiB
YAML
{{- if and .Values.master.enable .Values.master.serviceAccount.create }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "node-feature-discovery.master.serviceAccountName" . }}
|
|
namespace: {{ include "node-feature-discovery.namespace" . }}
|
|
labels:
|
|
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
|
{{- with .Values.master.serviceAccount.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- if and .Values.topologyUpdater.enable .Values.topologyUpdater.serviceAccount.create }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "node-feature-discovery.topologyUpdater.serviceAccountName" . }}
|
|
namespace: {{ include "node-feature-discovery.namespace" . }}
|
|
labels:
|
|
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
|
{{- with .Values.topologyUpdater.serviceAccount.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- if and .Values.gc.enable .Values.gc.serviceAccount.create (or .Values.enableNodeFeatureApi .Values.topologyUpdater.enable) }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "node-feature-discovery.gc.serviceAccountName" . }}
|
|
namespace: {{ include "node-feature-discovery.namespace" . }}
|
|
labels:
|
|
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
|
{{- with .Values.gc.serviceAccount.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- if and .Values.worker.enable .Values.worker.serviceAccount.create }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "node-feature-discovery.worker.serviceAccountName" . }}
|
|
namespace: {{ include "node-feature-discovery.namespace" . }}
|
|
labels:
|
|
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
|
{{- with .Values.worker.serviceAccount.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|