8000 fix: updated keycloak init container version rendering by Ani1357 · Pull Request #2108 · linode/apl-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: updated keycloak init container version rendering #2108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion values/keycloak-operator/keycloak-operator-cr.gotmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{{- $v := .Values }}
{{- $k := $v | get "apps.keycloak" }}
{{- $consoleLoginVersion := $v.versions.consoleLogin}}
{{- $isSemver := regexMatch "^[0-9.]+" $consoleLoginVersion }}

apiVersion: k8s.keycloak.org/v2alpha1
kind: Keycloak
Expand Down Expand Up @@ -47,7 +49,7 @@ spec:
emptyDir: {}
initContainers:
- name: init-container-theme-copy # Otomi branding init container
image: docker.io/linode/apl-console:{{ $v.versions.consoleLogin }}
image: docker.io/linode/apl-console:{{ printf "%s%s" ($isSemver | ternary "v" "") $consoleLoginVersion }}
resources: {{ $k.resources.keycloak | toYaml | nindent 12 }}
command:
- sh
Expand Down
0