Skip to content

Commit

Permalink
Merge pull request #1281 from RadOctocode/helm-chart-changes
Browse files Browse the repository at this point in the history
Templatizing priotityClassName, hostNetwork, and additionalLabels in node-daemonset.yaml
  • Loading branch information
k8s-ci-robot committed Mar 20, 2024
2 parents bed1afa + 1b966c7 commit dff70d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions charts/aws-efs-csi-driver/templates/node-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
app: efs-csi-node
app.kubernetes.io/name: {{ include "aws-efs-csi-driver.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- with .Values.node.podLabels }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.node.podAnnotations }}
annotations: {{ toYaml .Values.node.podAnnotations | nindent 8 }}
{{- end }}
Expand All @@ -47,13 +50,13 @@ spec:
{{- with .Values.node.affinity }}
affinity: {{- toYaml . | nindent 8 }}
{{- end }}
hostNetwork: true
hostNetwork: {{ .Values.node.hostNetwork }}
dnsPolicy: {{ .Values.node.dnsPolicy }}
{{- with .Values.node.dnsConfig }}
dnsConfig: {{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ .Values.node.serviceAccount.name }}
priorityClassName: system-node-critical
priorityClassName: {{ .Values.node.priorityClassName}}
{{- with .Values.node.tolerations }}
tolerations: {{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ node:
# "fs-01234567":
# ip: 10.10.2.2
# region: us-east-2
hostNetwork: true
priorityClassName: system-node-critical
dnsPolicy: ClusterFirst
dnsConfig:
{}
Expand All @@ -138,6 +140,7 @@ node:
# dnsConfig:
# nameservers:
# - 169.254.169.253
podLabels: {}
podAnnotations: {}
resources:
{}
Expand Down

0 comments on commit dff70d8

Please sign in to comment.