2022-05-11 10:50:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
helm dep update
|
|
|
|
|
|
|
|
# Operator
|
|
|
|
VERSION=$(yq eval '.appVersion' Chart.yaml)
|
|
|
|
|
|
|
|
wget -q -O crds/keycloak.yaml https://raw.githubusercontent.com/keycloak/keycloak-k8s-resources/${VERSION}/kubernetes/keycloaks.k8s.keycloak.org-v1.yml
|
2022-05-11 11:08:56 +00:00
|
|
|
wget -q -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-05-11 14:31:37 +00:00
|
|
|
wget -q -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
|