Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/spinnaker] Fix kubeconfig s3 bucket configuration in spinnaker chart #22767

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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