mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-15 13:07:48 +00:00
Conditionally add annotations if defined
This commit is contained in:
parent
50dd128b23
commit
1bb5b87d4a
4 changed files with 18 additions and 6 deletions
|
@ -6,8 +6,10 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
||||||
role: master
|
role: master
|
||||||
|
{{- with .Values.master.deploymentAnnotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml .Values.master.deploymentAnnotations | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.master.replicaCount }}
|
replicas: {{ .Values.master.replicaCount }}
|
||||||
selector:
|
selector:
|
||||||
|
@ -19,8 +21,10 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
{{- include "node-feature-discovery.selectorLabels" . | nindent 8 }}
|
{{- include "node-feature-discovery.selectorLabels" . | nindent 8 }}
|
||||||
role: master
|
role: master
|
||||||
|
{{- with .Values.master.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml .Values.master.annotations | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
|
|
|
@ -18,8 +18,10 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
{{- include "node-feature-discovery.selectorLabels" . | nindent 8 }}
|
{{- include "node-feature-discovery.selectorLabels" . | nindent 8 }}
|
||||||
role: gc
|
role: gc
|
||||||
|
{{- with .Values.gc.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml .Values.gc.annotations | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ .Values.gc.serviceAccountName | default "nfd-gc" }}
|
serviceAccountName: {{ .Values.gc.serviceAccountName | default "nfd-gc" }}
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
|
|
|
@ -17,8 +17,10 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
{{- include "node-feature-discovery.selectorLabels" . | nindent 8 }}
|
{{- include "node-feature-discovery.selectorLabels" . | nindent 8 }}
|
||||||
role: topology-updater
|
role: topology-updater
|
||||||
|
{{- with .Values.topologyUpdater.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml .Values.topologyUpdater.annotations | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ include "node-feature-discovery.topologyUpdater.serviceAccountName" . }}
|
serviceAccountName: {{ include "node-feature-discovery.topologyUpdater.serviceAccountName" . }}
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
|
|
|
@ -6,8 +6,10 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
{{- include "node-feature-discovery.labels" . | nindent 4 }}
|
||||||
role: worker
|
role: worker
|
||||||
|
{{- with .Values.worker.daemonsetAnnotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml .Values.worker.daemonsetAnnotations | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
@ -18,8 +20,10 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
{{- include "node-feature-discovery.selectorLabels" . | nindent 8 }}
|
{{- include "node-feature-discovery.selectorLabels" . | nindent 8 }}
|
||||||
role: worker
|
role: worker
|
||||||
|
{{- with .Values.worker.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml .Values.worker.annotations | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.imagePullSecrets }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue