2022-05-11 10:50:05 +00:00
|
|
|
#!/bin/bash
|
2022-06-21 18:35:35 +00:00
|
|
|
|
|
|
|
# https://www.keycloak.org/operator/installation
|
|
|
|
|
2022-05-11 10:50:05 +00:00
|
|
|
set -ex
|
|
|
|
|
|
|
|
helm dep update
|
|
|
|
|
|
|
|
# Operator
|
|
|
|
VERSION=$(yq eval '.appVersion' Chart.yaml)
|
|
|
|
|
2022-11-03 12:20:50 +00:00
|
|
|
wget -O crds/keycloak.yaml https://raw.githubusercontent.com/keycloak/keycloak-k8s-resources/"${VERSION}"/kubernetes/keycloaks.k8s.keycloak.org-v1.yml
|
|
|
|
wget -O crds/keycloak-realmimports.yaml https://raw.githubusercontent.com/keycloak/keycloak-k8s-resources/"${VERSION}"/kubernetes/keycloakrealmimports.k8s.keycloak.org-v1.yml
|
2022-05-11 10:50:05 +00:00
|
|
|
|
2022-11-03 12:20:50 +00:00
|
|
|
wget -O templates/keycloak/operator.yaml https://raw.githubusercontent.com/keycloak/keycloak-k8s-resources/"${VERSION}"/kubernetes/kubernetes.yml
|
2022-05-11 10:50:05 +00:00
|
|
|
patch -i keycloak.patch -p0 --no-backup-if-mismatch
|