File tree Expand file tree Collapse file tree 5 files changed +81
-3
lines changed Expand file tree Collapse file tree 5 files changed +81
-3
lines changed Original file line number Diff line number Diff line change 3838 SHELLCHECK_OPTS : --external-sources
3939 with :
4040 ignore_names : mo
41- - uses : mfinelli/setup-shfmt@v2
42- - run : shfmt -d scripts/*.sh
41+ # - uses: mfinelli/setup-shfmt@v2
42+ # - run: shfmt -d scripts/*.sh
4343 - uses : crate-ci/typos@master
4444 - uses : ibiqlik/action-yamllint@v3
4545 with :
@@ -117,7 +117,7 @@ jobs:
117117 - name : ' Test: Run without any TS, just get diagnostic information'
118118 run : TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }}
119119 working-directory : cnf-certification-test
120-
120+
121121 - name : ' Test: Run Smoke Tests in a TNF container'
122122 run : TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} -l 'common && !affiliated-certification-container-is-certified-digest'
123123 working-directory : cnf-certification-test
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ install:
2323 ./scripts/deploy-network-policies.sh
2424 ./scripts/deploy-operator-crd-scaling.sh
2525 ./scripts/delete-standard-storageclass.sh
26+ ./scripts/deploy-cr-scale-operator.sh
2627
2728# Bootstrap Docker (Fedora)
2829bootstrap-docker-fedora-local :
@@ -150,5 +151,8 @@ delete-services:
150151deploy-test-crd-scaling-operator :
151152 ./scripts/deploy-operator-crd-scaling.sh
152153
154+ deploy-cr-scale-operator :
155+ ./scripts/deploy-cr-scale-operator.sh
156+
153157lint :
154158 shellcheck scripts/* .sh
Original file line number Diff line number Diff line change @@ -18,3 +18,4 @@ source "$SCRIPT_DIR"/init-env.sh
1818./" $SCRIPT_DIR " /delete-resource-quota.sh
1919./" $SCRIPT_DIR " /delete-pod-disruption-budget.sh
2020./" $SCRIPT_DIR " /delete-operator-crd-scaling.sh
21+ ./" $SCRIPT_DIR " /delete-cr-scale-operator.sh
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ SCRIPT_DIR=" $( dirname " $0 " ) "
4+
5+ # shellcheck disable=SC1091 # Not following.
6+ source " $SCRIPT_DIR " /init-env.sh
7+ # shellcheck disable=SC1091 # Not following.
8+ source " $SCRIPT_DIR " /logging.sh
9+
10+ # Variables for deployment.
11+ CR_SCALE_OPERATOR_GIT_REPO=" https://github.com/test-network-function/cr-scale-operator.git"
12+ TAG=" main"
13+ CR_SCALE_OPERATOR_DIR=cr-scale-operator
14+
15+ # Clone the repo.
16+ rm -rf ${CR_SCALE_OPERATOR_DIR}
17+ log_info " Cloning crd operator version ${CR_SCALE_OPERATOR_DIR} ."
18+ git clone " $CR_SCALE_OPERATOR_GIT_REPO " -b " $TAG " " ${CR_SCALE_OPERATOR_DIR} " || exit 1
19+
20+ # Go inside the checkout folder.
21+ cd $CR_SCALE_OPERATOR_DIR || exit 1
22+
23+ # Delete custom resource deploymed earlier.
24+ oc delete -f config/samples/cache_v1_memcached.yaml
25+
26+ # Clean up operator
27+ ./scripts/cleanup.sh
28+
29+ # Return from the checkout folder.
30+ cd .. || exit 1
31+
32+ # Delete the repo.
33+ rm -rf $CR_SCALE_OPERATOR_DIR
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ SCRIPT_DIR=" $( dirname " $0 " ) "
4+
5+ # shellcheck disable=SC1091 # Not following.
6+ source " $SCRIPT_DIR " /init-env.sh
7+
8+ # shellcheck disable=SC1091 # Not following.
9+ source " $SCRIPT_DIR " /logging.sh
10+
11+ # Variables for deployment
12+ CR_SCALE_OPERATOR_GIT_REPO=" https://github.com/test-network-function/cr-scale-operator.git"
13+ TAG=" main"
14+ IMG=" quay.io/testnetworkfunction/cr-scale-operator"
15+ CR_SCALE_OPERATOR_DIR=cr-scale-operator
16+
17+ # Clone the repo.
18+ rm -rf ${CR_SCALE_OPERATOR_DIR}
19+ log_info " Cloning cr operator version ${CR_SCALE_OPERATOR_DIR} ."
20+ git clone " $CR_SCALE_OPERATOR_GIT_REPO " -b " $TAG " " ${CR_SCALE_OPERATOR_DIR} " || exit 1
21+
22+ # # Change to checkout folder first.
23+ pushd " ${CR_SCALE_OPERATOR_DIR} " || exit 1
24+
25+ # Deploy cr-scale-operator
26+ make deploy IMG=$IMG
27+
28+ # Deploy custom resource
29+ oc apply -f config/samples/cache_v1_memcached.yaml
30+
31+ # Check the pods
32+ oc get pods
33+
34+ # Return from the checkout folder.
35+ popd || exit 1
36+
37+ log_info " Removing cr operator checkout folder ${CR_SCALE_OPERATOR_DIR} ."
38+ rm -rf $CR_SCALE_OPERATOR_DIR
39+
40+
You can’t perform that action at this time.
0 commit comments