Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 19851a2

Browse files
committed
📁 Adjust the CRD installation script so that it is not dependent upon the shell current working directory
1 parent f9e88b9 commit 19851a2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ jobs:
4848
helm install workstation-prerequisites . -n kube-system
4949
5050
- name: Install CRDs
51+
working-directory: ./prepare/crds/
5152
run: |
52-
./prepare/crds/keycloak.sh
53-
./prepare/crds/opa.sh
53+
./keycloak.sh
54+
./opa.sh
5455
5556
- name: Deploy a workstation
5657
working-directory: ./deploy/

prepare/crds/keycloak.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

3-
kubectl apply -f keycloak-operator/deploy/crds/
3+
script_dir=$( echo $BASH_SOURCE | egrep -o '^.*\/' )
4+
kubectl apply -f $script_dir/../../keycloak-operator/deploy/crds/
45

56
count=0
67
echo "Keycloak Operator CRDs: Creating..."

prepare/crds/opa.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

3-
kubectl apply -f ./prepare/crds/constraint-templates.yaml
3+
script_dir=$( echo $BASH_SOURCE | egrep -o '^.*\/' )
4+
kubectl apply -f $script_dir/../../prepare/crds/constraint-templates.yaml
45

56
count=0
67
echo "Constraint Template CRDs: Creating..."

0 commit comments

Comments
 (0)