Skip to content

Commit

Permalink
add volumes and volumeMounts in chartutil
Browse files Browse the repository at this point in the history
add:
- volumes in defaultValues
- volumes in defaultDeployment
- volumeMounts in defaultValues
- volumeMounts in defaultDeployment

Signed-off-by: Eugene Zuev <zhekazuev@gmail.com>
  • Loading branch information
zhekazuev committed Dec 25, 2022
1 parent 5a8e91a commit fd44c0f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pkg/chartutil/create.go
Expand Up @@ -180,6 +180,19 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
# Additional volumes on the output Deployment definition.
volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false
# Additional volumeMounts on the output Deployment definition.
volumeMounts: []
# - name: foo
# mounthPath: "/etc/foo"
# readOnly: true
nodeSelector: {}
tolerations: []
Expand Down Expand Up @@ -324,6 +337,14 @@ spec:
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit fd44c0f

Please sign in to comment.