Skip to content

Commit

Permalink
Merge pull request #3907 from samos123/fix-gce
Browse files Browse the repository at this point in the history
Fix GCE where no cloud-config-path is required
  • Loading branch information
k8s-ci-robot authored Mar 16, 2021
2 parents 0d408a3 + 01ed882 commit a8ae407
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/cluster-autoscaler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ name: cluster-autoscaler
sources:
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
type: application
version: 9.8.0
version: 9.9.0
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 a8ae407

Please sign in to comment.