Skip to content

Commit 7715da8

Browse files
authored
Installation procedure for the litmus operator (#102)
* CNFCERT-288:install the litmus opertaor * CNFCERT-288:install the litmus opertaor * update indentation on the operatprce.yaml * update indentation on the operatprce.yaml * update indentation on the operatprce.yaml * update indentation on the operatprce.yaml * update indentation on the operatprce.yaml * update indentation on the operatprce.yaml * update the operator-ce file * update the operator-ce file * update the operator-ce file * add deletation to the litmis * add scripts to the delte and install operator * no need to install litmus jsut need the operator-ce * add delete litmus to clean all * wait for the needed crds to be available * add install litmus to make install * add more seconeds for the waitning and wair for the operator-ce deployment
1 parent 34a8935 commit 7715da8

File tree

5 files changed

+755
-3
lines changed

5 files changed

+755
-3
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
install \
33
clean \
44
delete-deployment \
5-
create-statefulset
5+
create-statefulset \
6+
install-litmus
67

78
# Deploys the partner and test pods and the operator
89
install:
@@ -14,6 +15,7 @@ install:
1415
./scripts/deploy-debug-ds.sh
1516
./scripts/install-olm.sh
1617
./scripts/deploy-community-operator.sh
18+
./scripts/install-litmus-operator.sh
1719

1820
# creates a k8s cluster instance
1921
rebuild-cluster:
@@ -64,6 +66,9 @@ delete-community-operator:
6466
install-crds:
6567
./scripts/deploy-test-crds.sh
6668

69+
install-litmus:
70+
./scripts/install-litmus-operator.sh
71+
6772
# delete deployment pods
6873
delete-deployment:
6974
./scripts/delete-test-pods.sh
@@ -72,6 +77,9 @@ delete-deployment:
7277
create-statefulset:
7378
./scripts/deploy-statefulset-test-pods.sh
7479

80+
delete-litmus:
81+
./scripts/delete-litmus-operator.sh
82+
7583
# deletes the namespace completely
7684
clean-all:
7785
./scripts/clean-all.sh

scripts/clean.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
SCRIPT_DIR=$(dirname "$0")
55
source $SCRIPT_DIR/init-env.sh
66

7-
# Delete tnf, partner and operator
7+
# Delete tnf, partner and operator and litmus
88
./$SCRIPT_DIR/delete-partner-pods.sh
99
./$SCRIPT_DIR/delete-test-pods.sh
1010
./$SCRIPT_DIR/delete-hpa.sh
1111
./$SCRIPT_DIR/delete-test-crds.sh
1212
./$SCRIPT_DIR/delete-debug-ds.sh
1313
./$SCRIPT_DIR/delete-statefulset-pods.sh
14-
./$SCRIPT_DIR/delete-community-operator.sh
14+
./$SCRIPT_DIR/delete-community-operator.sh
15+
./$SCRIPT_DIR/delete-litmus-operator.sh

scripts/delete-litmus-operator.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
# Initialization
4+
SCRIPT_DIR=$(dirname "$0")
5+
source $SCRIPT_DIR/init-env.sh
6+
7+
oc delete -f ./scripts/operator-ce.yaml

scripts/install-litmus-operator.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
# Initialization
4+
SCRIPT_DIR=$(dirname "$0")
5+
source $SCRIPT_DIR/init-env.sh
6+
# apply the crds and wait for them
7+
oc apply -f ./scripts/operator-ce.yaml
8+
oc wait crd chaosengines.litmuschaos.io --timeout=320s --for=condition=established
9+
oc wait crd chaosresults.litmuschaos.io --timeout=320s --for=condition=established
10+
oc wait crd chaosexperiments.litmuschaos.io --timeout=320s --for=condition=established
11+
oc wait deployment chaos-operator-ce -n litmus --for=condition=available --timeout=320s

0 commit comments

Comments
 (0)