Skip to content

Commit

Permalink
[stable/spinnaker] Fix kubeconfig s3 bucket configuration in spinnake…
Browse files Browse the repository at this point in the history
…r chart (helm#22767)

* Removed default for kubeconfig secret from values.yaml and updated helm templates to check for kubeconfig secret name before creating volumes and mountpaths

Signed-off-by: Karthick Prabu <karthikprabu.cs@gmail.com>

* Added version bump

Signed-off-by: Karthick Prabu <karthikprabu.cs@gmail.com>
Signed-off-by: camelusluo <camelusluo@tencent.com>
  • Loading branch information
Karthik-13 authored and camelusluo committed Jul 6, 2020
1 parent e9eeb8e commit a416898
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stable/spinnaker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Open source, multi-cloud continuous delivery platform for releasing software changes with high velocity and confidence.
name: spinnaker
version: 2.0.0-rc4
version: 2.0.0-rc5
appVersion: 1.16.2
home: http://spinnaker.io/
sources:
Expand Down
4 changes: 2 additions & 2 deletions stable/spinnaker/templates/hooks/install-using-hal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
{{- end }}
restartPolicy: OnFailure
volumes:
{{- if .Values.kubeConfig.enabled }}
{{- if and .Values.kubeConfig.enabled .Values.kubeConfig.secretName }}
- name: kube-config
secret:
secretName: {{ .Values.kubeConfig.secretName }}
Expand Down Expand Up @@ -116,7 +116,7 @@ spec:
- name: s3-secrets
mountPath: /opt/s3
{{- end }}
{{- if .Values.kubeConfig.enabled }}
{{- if and .Values.kubeConfig.enabled .Values.kubeConfig.secretName }}
- name: kube-config
mountPath: /opt/kube
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions stable/spinnaker/templates/statefulsets/halyard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
- name: halyard-home
emptyDir: {}
{{- end }}
{{- if .Values.kubeConfig.enabled }}
{{- if and .Values.kubeConfig.enabled .Values.kubeConfig.secretName }}
- name: kube-config
secret:
secretName: {{ .Values.kubeConfig.secretName }}
Expand Down Expand Up @@ -166,7 +166,7 @@ spec:
- name: s3-secrets
mountPath: /opt/s3
{{- end }}
{{- if .Values.kubeConfig.enabled }}
{{- if and .Values.kubeConfig.enabled .Values.kubeConfig.secretName }}
- name: kube-config
mountPath: /opt/kube
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions stable/spinnaker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ kubeConfig:
# Use this when you want to register arbitrary clusters with Spinnaker
# Upload your ~/kube/.config to a secret
enabled: false
secretName: my-kubeconfig
secretKey: config
# secretName: my-kubeconfig
# secretKey: config
# Use this when you want to configure halyard to reference a kubeconfig from s3
# This allows you to keep your kubeconfig in an encrypted s3 bucket
# For more info visit:
Expand Down

0 comments on commit a416898

Please sign in to comment.