Browse Source

fix uneeded quote usage

pull/5049/head
Max Roby 1 year ago
committed by Chris Lu
parent
commit
f7b98ea1fb
  1. 8
      k8s/charts/seaweedfs/templates/post-install-user-hook.yaml

8
k8s/charts/seaweedfs/templates/post-install-user-hook.yaml

@ -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.secretName | upper }}_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.secretName | upper }}_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" \
--secret_key "${{ $props.secretName | upper }}-KEY" \
--access_key ${{ $props.secretName | upper }}_ID \
--secret_key ${{ $props.secretName | upper }}_KEY \
--apply true" |\ --apply true" |\
/usr/bin/weed shell /usr/bin/weed shell
{{- end }} {{- end }}

Loading…
Cancel
Save