Skip to content

Commit

Permalink
remove unnecessary alpha config for simple case without path encoding…
Browse files Browse the repository at this point in the history
… bug
  • Loading branch information
andrewazores committed Oct 31, 2024
1 parent 7164ff4 commit 3739b9a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 36 deletions.
14 changes: 10 additions & 4 deletions charts/cryostat/templates/_reports_authproxy.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@
securityContext:
{{- toYaml (.Values.oauth2Proxy).securityContext | nindent 4 }}
image: "{{ (.Values.oauth2Proxy).image.repository }}:{{ (.Values.oauth2Proxy).image.tag }}"
args:
- "--alpha-config=/etc/oauth2_proxy/alpha_config/alpha_config.yaml"
imagePullPolicy: {{ (.Values.oauth2Proxy).image.pullPolicy }}
env:
- name: OAUTH2_PROXY_CLIENT_ID
value: dummy
- name: OAUTH2_PROXY_CLIENT_SECRET
value: none
- name: OAUTH2_PROXY_HTTP_ADDRESS
value: 0.0.0.0:4180
- name: OAUTH2_PROXY_UPSTREAMS
value: http://localhost:10001/
- name: OAUTH2_PROXY_REDIRECT_URL
value: "http://localhost:4180/oauth2/callback"
- name: OAUTH2_PROXY_COOKIE_SECRET
Expand All @@ -70,15 +76,15 @@
value: /etc/oauth2_proxy/basicauth/htpasswd
- name: OAUTH2_PROXY_SKIP_AUTH_ROUTES
value: "^/health(/liveness)?$"
- name: OAUTH2_PROXY_PROXY_WEBSOCKETS
value: "false"
ports:
- containerPort: 4180
name: http
protocol: TCP
resources:
{{- toYaml .Values.oauth2Proxy.resources | nindent 4 }}
volumeMounts:
- name: reports-alpha-config
mountPath: /etc/oauth2_proxy/alpha_config
- name: {{ .Release.Name }}-reports-secret
mountPath: /etc/oauth2_proxy/basicauth
readOnly: true
Expand Down
27 changes: 0 additions & 27 deletions charts/cryostat/templates/reports_alpha_config.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions charts/cryostat/templates/reports_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if not (.Values.authentication.openshift).enabled }}
- name: reports-alpha-config
configMap:
name: {{ .Release.Name }}-reports-alpha-config
{{- end }}
- name: {{ .Release.Name }}-reports-secret
secret:
defaultMode: 0440
Expand Down

0 comments on commit 3739b9a

Please sign in to comment.