-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic S3 support. #14
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- if and (or .Values.s3.accessKey .Values.s3.secretKey) (not (and .Values.s3.accessKey .Values.s3.secretKey)) -}} | ||
{{ fail "S3: If providing credentials, accessKey and secretKey must be both set." }} | ||
{{- end -}} | ||
|
||
{{- if and .Values.s3.enabled .Values.s3.accessKey .Values.s3.secretKey }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "spinnaker.fullname" . }}-s3 | ||
labels: | ||
{{ include "spinnaker.standard-labels" . | indent 4 }} | ||
component: halyard | ||
type: Opaque | ||
data: | ||
accessKey: {{ .Values.s3.accessKey | b64enc | quote }} | ||
secretKey: {{ .Values.s3.secretKey | b64enc | quote }} | ||
{{- end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,9 +58,6 @@ deck: | |
# hosts: | ||
# - domain.com | ||
|
||
# Bucket to use when storing config data in S3 compatible storage | ||
storageBucket: spinnaker | ||
|
||
# Node labels for pod assignment | ||
# Ref: https://kubernetes.io/docs/user-guide/node-selection/ | ||
# nodeSelector to provide to each of the Spinnaker components | ||
|
@@ -80,9 +77,20 @@ minio: | |
serviceType: ClusterIP | ||
accessKey: spinnakeradmin | ||
secretKey: spinnakeradmin | ||
bucket: "spinnaker" | ||
nodeSelector: {} | ||
|
||
gcs: | ||
enabled: false | ||
project: my-project-name | ||
bucket: "<GCS-BUCKET-NAME>" | ||
jsonKey: '<INSERT CLOUD STORAGE JSON HERE>' | ||
|
||
s3: | ||
enabled: false | ||
bucket: "<S3-BUCKET-NAME>" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not the worlds biggest fan of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed. |
||
# rootFolder: "front50" | ||
# region: "us-east-1" | ||
# endpoint: "" | ||
# accessKey: "" | ||
# secretKey: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really see the reason to have a shared root
storageBucket
key and I think having it separate is less clear, so I denormalized it back into the individual config stanzas, but feel free to disagree with that, as I may be missing some context.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense! Thanks for making the change. There was a great reason to have it split out other than the fact that there was only one provider originally and then I co-opted the existing value when I added GCS support.