[1.0][branding] Separate values for keycloak (#1947)
## What this PR does Adds separate values to keycloak branding. ### Release note ```release-note Added separate values to keycloak branding ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Enhanced branding configuration application with improved conditional logic to ensure branding is only applied when appropriate configuration values are present. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
commit
806012388e
1 changed files with 9 additions and 9 deletions
|
|
@ -5,12 +5,6 @@
|
|||
{{- $existingKubeappsSecret := lookup "v1" "Secret" .Release.Namespace "kubeapps-client" }}
|
||||
{{- $existingAuthConfig := lookup "v1" "Secret" "cozy-dashboard" "kubeapps-auth-config" }}
|
||||
{{- $brandingConfig := .Values._cluster.branding | default dict }}
|
||||
|
||||
{{ $branding := "" }}
|
||||
{{- if $brandingConfig }}
|
||||
{{- $branding = $brandingConfig.branding }}
|
||||
{{- end }}
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1.edp.epam.com/v1alpha1
|
||||
|
|
@ -32,9 +26,15 @@ metadata:
|
|||
spec:
|
||||
realmName: cozy
|
||||
clusterKeycloakRef: keycloak-cozy
|
||||
{{- if $branding }}
|
||||
displayHtmlName: {{ $branding }}
|
||||
displayName: {{ $branding }}
|
||||
{{- if $brandingConfig }}
|
||||
{{- if hasKey $brandingConfig "brandName" }}
|
||||
displayName: {{ $brandingConfig.brandName }}
|
||||
{{- end }}
|
||||
{{- if hasKey $brandingConfig "brandHtmlName" }}
|
||||
displayHtmlName: {{ $brandingConfig.brandHtmlName }}
|
||||
{{- else if hasKey $brandingConfig "branding" }}
|
||||
displayHtmlName: {{ $brandingConfig.branding }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue