diff --git a/README.md b/README.md index 92f5d67..a5dc733 100644 --- a/README.md +++ b/README.md @@ -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/ diff --git a/charts/transfersh/templates/deployment.yaml b/charts/transfersh/templates/deployment.yaml index 6afde20..d17f281 100644 --- a/charts/transfersh/templates/deployment.yaml +++ b/charts/transfersh/templates/deployment.yaml @@ -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: