Skip to content

Commit

Permalink
Fix target urls for authz proxy
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jul 18, 2024
1 parent 1dd6714 commit 8a97434
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions charts/mongo-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,46 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
{{- if .Values.authzproxy.enabled }}
- name: authz-proxy
securityContext:
{{- toYaml .Values.authzproxy.securityContext | nindent 12 }}
image: "{{ .Values.authzproxy.repository }}:{{ .Values.authzproxy.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- run
- --listen={{ .Values.authzproxy.params.listen }}
- --metrics-addr={{ .Values.authzproxy.params.metricsAddr }}
- --secret-name={{ .Values.app.authSecret.name }}
- --secret-namespace={{ .Release.Namespace }}
- --target-url=http://localhost:4321
- --platform-url={{ .Values.authzproxy.params.platformURL }}
{{- if .Values.authzproxy.params.platformCABundle }}
- --platform-ca-file=/var/platform-auth/ca.crt
{{- end }}
ports:
- name: proxy
containerPort: {{ .Values.authzproxy.params.listen }}
protocol: TCP
- name: metrics
containerPort: {{ .Values.authzproxy.params.metricsAddr }}
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
resources:
{{- toYaml .Values.authzproxy.resources | nindent 12 }}
{{- if .Values.authzproxy.params.platformCABundle }}
volumeMounts:
- mountPath: /var/platform-auth
name: platform-auth
{{- end }}
{{ end }}
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/pgadmin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
- --metrics-addr={{ .Values.authzproxy.params.metricsAddr }}
- --secret-name={{ .Values.app.authSecret.name }}
- --secret-namespace={{ .Release.Namespace }}
- --target-url=http://localhost:3000
- --target-url=http://localhost:80
- --platform-url={{ .Values.authzproxy.params.platformURL }}
{{- if .Values.authzproxy.params.platformCABundle }}
- --platform-ca-file=/var/platform-auth/ca.crt
Expand Down
2 changes: 1 addition & 1 deletion charts/phpmyadmin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
- --metrics-addr={{ .Values.authzproxy.params.metricsAddr }}
- --secret-name={{ .Values.app.authSecret.name }}
- --secret-namespace={{ .Release.Namespace }}
- --target-url=http://localhost:3000
- --target-url=http://localhost:80
- --platform-url={{ .Values.authzproxy.params.platformURL }}
{{- if .Values.authzproxy.params.platformCABundle }}
- --platform-ca-file=/var/platform-auth/ca.crt
Expand Down

0 comments on commit 8a97434

Please sign in to comment.