argocd: Pass dex env correctly

This commit is contained in:
2026-07-13 09:29:28 +02:00
parent acf97bb584
commit dac7f16f04
2 changed files with 9 additions and 21 deletions
+1
View File
@@ -27,5 +27,6 @@ argocd:
image: "git.oceanbox.io/platform/manifests/helmfile-cmp:latest"
imagePullSecrets:
- gitlab-pull-secret
webhookSecret: ""
additional_rbac_settings:
- g, "eb17a659-4ce6-41bc-9153-d9b117c44479", role:org-admin
+8 -21
View File
@@ -49,8 +49,8 @@ configs:
name: {{ .name }}
config:
issuer: https://login.microsoftonline.com/{{ .tenant }}/v2.0
clientID: ${{ .name | replace "-" "_" }}_client_id
clientSecret: ${{ .name | replace "-" "_" }}_client_secret
clientID: ${{ .secret_ref.name }}:client_id
clientSecret: ${{ .secret_ref.name }}:client_secret
insecureSkipEmailVerified: true
requestedIDTokenClaims:
groups:
@@ -62,7 +62,7 @@ configs:
- email
- groups
staticClients:
- id: ${{ .name | replace "-" "_" }}_client_id
- id: ${{ .secret_ref.name }}:client_id
name: Kubernetes
# These are kubectl oidc plugin internal URLs
redirectURIs:
@@ -99,6 +99,11 @@ configs:
argo-helm:
type: helm
url: https://argoproj.github.io/argo-helm
{{- if .Values.argocd.webhookSecret }}
secret:
extra:
webhook.gitea.secret: {{ .Values.argocd.webhookSecret }}
{{- end }}
# UI changes based on env
styles: |
/* blue, orange, red depending on env */
@@ -129,29 +134,11 @@ controller:
cpu: {{ .Values.argocd.resources.controller.cpu | default "250m" }}
memory: {{ .Values.argocd.resources.controller.memory | default "1000Mi" }}
# Mount azure ca as file for SAML auth
dex:
metrics:
enabled: true
serviceMonitor:
enabled: true
{{- with .Values.clusterConfig.oidc }}
env:
{{- range . }}
{{- if eq .group "devel" }}
- name: {{ .name | replace "-" "_" }}_client_secret
valueFrom:
secretKeyRef:
name: {{ .secret_ref.name }}
key: client_secret
- name: {{ .name | replace "-" "_" }}_client_id
valueFrom:
secretKeyRef:
name: {{ .secret_ref.name }}
key: client_id
{{- end }}
{{- end }}
{{- end }}
redis:
metrics: