Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #130 from statisticsnorway/simple-proxy-client
Browse files Browse the repository at this point in the history
Simple proxy client
  • Loading branch information
johnksv authored Jun 20, 2024
2 parents baba9a3 + 750579e commit 390485e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion charts/library-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: library-chart
version: 3.1.3
version: 3.2.0
type: library
23 changes: 0 additions & 23 deletions charts/library-chart/templates/_dapla_common_redirect_uri.tpl

This file was deleted.

23 changes: 23 additions & 0 deletions charts/library-chart/templates/_dapla_simple_proxy_client.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{- define "library-chart.DaplaSimpleProxyClientName" -}}
{{- $name:= (printf "%s-client-redirect-uri" (include "library-chart.fullname" .) ) }}
{{- default $name .Values.security.oauth2.DaplaSimpleProxyClientName }}
{{- end }}

{{- define "library-chart.DaplaSimpleProxyClientSecretName" -}}
{{- $name:= (printf "%s-oauth2proxy" (include "library-chart.fullname" .) ) }}
{{- default $name .Values.security.oauth2.DaplaSimpleProxyClientName }}
{{- end }}

{{- define "library-chart.DaplaSimpleProxyClient" -}}
apiVersion: dapla.ssb.no/v1alpha1
kind: DaplaSimpleProxyClient
metadata:
name: {{ include "library-chart.DaplaSimpleProxyClientName" . }}
labels:
{{- include "library-chart.labels" . | nindent 4 }}
spec:
redirectUris:
- "https://{{ .Values.istio.hostname }}/oauth2/callback"
secretName: {{ include "library-chart.DaplaSimpleProxyClientSecretName" . | quote }}

{{- end }}

0 comments on commit 390485e

Please sign in to comment.