Skip to content

Commit

Permalink
Fix GCE where no cloud-config-path is required
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Mar 15, 2021
1 parent 5d05268 commit 3bdfd86
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions charts/cluster-autoscaler/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
- --cluster-name={{ .Values.magnumClusterName }}
{{- end }}
{{- end }}
{{- if or (eq .Values.cloudProvider "gce") (eq .Values.cloudProvider "magnum") }}
{{- if eq .Values.cloudProvider "magnum" }}
- --cloud-config={{ .Values.cloudConfigPath }}
{{- end }}
{{- range $key, $value := .Values.extraArgs }}
Expand Down Expand Up @@ -182,9 +182,9 @@ spec:
securityContext:
{{ toYaml .Values.containerSecurityContext | nindent 12 | trim }}
{{- end }}
{{- if or (eq .Values.cloudProvider "gce") (eq .Values.cloudProvider "magnum") .Values.extraVolumeSecrets .Values.extraVolumeMounts }}
{{- if or (eq .Values.cloudProvider "magnum") .Values.extraVolumeSecrets .Values.extraVolumeMounts }}
volumeMounts:
{{- if or (eq .Values.cloudProvider "gce") (eq .Values.cloudProvider "magnum") }}
{{- if eq .Values.cloudProvider "magnum" }}
- name: cloudconfig
mountPath: {{ .Values.cloudConfigPath }}
readOnly: true
Expand Down Expand Up @@ -218,9 +218,9 @@ spec:
securityContext:
{{ toYaml .Values.securityContext | nindent 8 | trim }}
{{- end }}
{{- if or (eq .Values.cloudProvider "gce") (eq .Values.cloudProvider "magnum") .Values.extraVolumeSecrets .Values.extraVolumes }}
{{- if or (eq .Values.cloudProvider "magnum") .Values.extraVolumeSecrets .Values.extraVolumes }}
volumes:
{{- if or (eq .Values.cloudProvider "gce") (eq .Values.cloudProvider "magnum") }}
{{- if eq .Values.cloudProvider "magnum" }}
- name: cloudconfig
hostPath:
path: {{ .Values.cloudConfigPath }}
Expand Down

0 comments on commit 3bdfd86

Please sign in to comment.