[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:
Andrei Kvapil 2026-02-02 22:06:43 +01:00 committed by GitHub
commit 806012388e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 }}
---