fixed missed conversions hyphen to underscores

This commit is contained in:
beyondszine 2019-08-19 00:14:06 +05:30
parent 68dc5d9442
commit e965e296ec
2 changed files with 4 additions and 4 deletions

View file

@ -222,8 +222,8 @@ kubectl run transfersh --restart=Never --image=dutchcoders/transfer.sh:latest --
# Manual process of Helm chart deployment
# if your service is going to run behind nginx or any other proxy then update, proxy-path variable too in deployment.yaml, by-default it is blank.
# manually create needed secrets for deployment params totally aligned with [Usage Params](https://github.com/dutchcoders/transfer.sh#usage-1)
kubectl create secret generic transfersh-secrets --from-literal=HTTP_AUTH_USER=$HTTP_AUTH_USER --from-literal=HTTP_AUTH_PASS=$HTTP_AUTH_PASS --from-literal=AWS_ACCESS_KEY=$AWS_ACCESS_KEY --from-literal=AWS_SECRET_KEY=$AWS_SECRET_KEY --from-literal=BUCKET=$BUCKET --from-literal=S3_REGION=$S3_REGION --from-literal=PROXY_PATH=$PROXY_PATH
# Example to manually create needed secrets for deployment params totally aligned with [Usage Params](https://github.com/dutchcoders/transfer.sh#usage-1)
kubectl create secret generic transfersh-secrets --from-literal=HTTP_AUTH_USER=$HTTP_AUTH_USER --from-literal=HTTP_AUTH_PASS=$HTTP_AUTH_PASS --from-literal=AWS_ACCESS_KEY=$AWS_ACCESS_KEY --from-literal=AWS_SECRET_KEY=$AWS_SECRET_KEY --from-literal=BUCKET=$BUCKET --from-literal=S3_REGION=$S3_REGION --from-literal=PROXY_PATH=$PROXY_PATH --from-literal=PROVIDER=$PROVIDER
cd charts/transfersh
helm install --debug --name=transfersh transfersh/

View file

@ -27,11 +27,11 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- range .Values.argValues.paramNames }}
env:
- name: {{ . | upper }}
- name: {{ . | upper | replace "-" "_" }}
valueFrom:
{{ $keyRefSource }}:
name: {{ $keyRefName }}
key: {{ . | upper }}
key: {{ . | upper | replace "-" "_"}}
{{- end }}
args: [ {{- range .Values.argValues.paramNames }} {{ printf "%s%s" $.Values.argIdentifier . | quote}},{{ printf "%s%s%s" "$(" . ")" | upper | replace "-" "_" | quote}},{{- end }} ]
livenessProbe: