mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix issue with underscores versus dashes in secret name causing variable expansion failure
This commit is contained in:
parent
f7b98ea1fb
commit
ac6158818b
|
@ -47,12 +47,12 @@ spec:
|
||||||
- name: SEAWEEDFS_FULLNAME
|
- name: SEAWEEDFS_FULLNAME
|
||||||
value: "{{ template "seaweedfs.name" . }}"
|
value: "{{ template "seaweedfs.name" . }}"
|
||||||
{{- range $reg, $props := $.Values.filer.s3.createUsers }}
|
{{- range $reg, $props := $.Values.filer.s3.createUsers }}
|
||||||
- name: {{ $props.secretName | upper }}_ID
|
- name: {{ $props.name | upper }}_ACCESS_KEY_ID
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ $props.secretName }}
|
name: {{ $props.secretName }}
|
||||||
key: ACCESS_KEY_ID
|
key: ACCESS_KEY_ID
|
||||||
- name: {{ $props.secretName | upper }}_KEY
|
- name: {{ $props.name | upper }}_SECRET_ACCESS_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ $props.secretName }}
|
name: {{ $props.secretName }}
|
||||||
|
@ -67,8 +67,8 @@ spec:
|
||||||
"s3.configure --user {{ $props.name }} \
|
"s3.configure --user {{ $props.name }} \
|
||||||
--buckets {{ $props.buckets }} \
|
--buckets {{ $props.buckets }} \
|
||||||
--actions {{ $props.actions }} \
|
--actions {{ $props.actions }} \
|
||||||
--access_key ${{ $props.secretName | upper }}_ID \
|
--access_key ${{ $props.name | upper }}_ACCESS_KEY_ID \
|
||||||
--secret_key ${{ $props.secretName | upper }}_KEY \
|
--secret_key ${{ $props.name | upper }}_SECRET_ACCESS_KEY \
|
||||||
--apply true" |\
|
--apply true" |\
|
||||||
/usr/bin/weed shell
|
/usr/bin/weed shell
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -579,8 +579,6 @@ filer:
|
||||||
# You may specify buckets and users to be created during the install process
|
# You may specify buckets and users to be created during the install process
|
||||||
# The user's credentials must be in an existing secret using the key names:
|
# The user's credentials must be in an existing secret using the key names:
|
||||||
# 'ACCESS_KEY_ID' and 'ACCESS_SECRET_KEY'
|
# 'ACCESS_KEY_ID' and 'ACCESS_SECRET_KEY'
|
||||||
# The secret name should use underscore '_' separators,
|
|
||||||
# using a dash '-' will case variable expansion to fail inside the job.
|
|
||||||
#createBuckets:
|
#createBuckets:
|
||||||
# - bucket-a
|
# - bucket-a
|
||||||
# - bucket-b
|
# - bucket-b
|
||||||
|
|
Loading…
Reference in a new issue