Skip to content

Commit

Permalink
Remove hardcoded release name from the values.yaml file
Browse files Browse the repository at this point in the history
Signed-off-by: Vladica Obojevic <obojevic@gmail.com>
  • Loading branch information
vladica committed Jul 26, 2023
1 parent 17e8f07 commit c031c28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions deployment/helm/ditto/templates/nginx-ingress-api.yaml
Expand Up @@ -22,6 +22,7 @@ metadata:
{{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{ tpl .Values.ingress.api.kubernetesAuthAnnotations . | nindent 4}}
{{- with .Values.ingress.api.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down
10 changes: 4 additions & 6 deletions deployment/helm/ditto/values.yaml
Expand Up @@ -217,14 +217,12 @@ ingress:
backendSuffix: gateway
- path: /health
backendSuffix: gateway
kubernetesAuthAnnotations: |
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: {{ .Release.Name }}-nginx-ingress-htpasswd
nginx.ingress.kubernetes.io/auth-realm: 'Authentication required to use HTTP API!'
# annotations defines k8s annotations to add to the Ingress
annotations:
# type of authentication
nginx.ingress.kubernetes.io/auth-type: basic
# name of the secret that contains the user/password definitions
nginx.ingress.kubernetes.io/auth-secret: my-ditto-nginx-ingress-htpasswd
# message to display with an appropriate context why the authentication is required
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required to use HTTP API!'
nginx.ingress.kubernetes.io/proxy-connect-timeout: "10"
nginx.ingress.kubernetes.io/proxy-send-timeout: "70"
nginx.ingress.kubernetes.io/proxy-read-timeout: "70"
Expand Down

0 comments on commit c031c28

Please sign in to comment.