Skip to content

Commit

Permalink
namespace: adding radosnamespace in canary CI
Browse files Browse the repository at this point in the history
THe radosnamespace CRD is already added by
rook#9733,
Checking the external script with the namespace created by
the CRD

Signed-off-by: parth-gr <paarora@redhat.com>
  • Loading branch information
parth-gr committed May 9, 2022
1 parent 286e824 commit e8bec36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/canary-integration-test.yml
Expand Up @@ -83,9 +83,6 @@ jobs:
- name: run external script create-external-cluster-resources.py unit tests
run: |
kubectl -n rook-ceph exec $(kubectl get pod -l app=rook-ceph-tools -n rook-ceph -o jsonpath='{.items[0].metadata.name}') -- python3 -m unittest /etc/ceph/create-external-cluster-resources-tests.py
# write a test file
# copy the test file
# execute the test file
- name: wait for the subvolumegroup to be created
run: |
Expand All @@ -97,14 +94,15 @@ jobs:
kubectl create -f deploy/examples/radosnamespace.yaml
toolbox=$(kubectl get pod -l app=rook-ceph-tools -n rook-ceph -o jsonpath='{.items[*].metadata.name}')
timeout 60 sh -c "until kubectl -n rook-ceph exec $toolbox -- rbd namespace ls replicapool --format=json|jq .[0].name|grep -q "namespace-a"; do sleep 1 && echo 'waiting for the rados namespace to be created'; done"
kubectl delete -f deploy/examples/radosnamespace.yaml
- name: test external script with restricted_auth_permission flag and without having cephfs_filesystem flag
run: |
toolbox=$(kubectl get pod -l app=rook-ceph-tools -n rook-ceph -o jsonpath='{.items[*].metadata.name}')
# create `radosNamespace1` rados-namespace for `replicapool` rbd data-pool
kubectl -n rook-ceph exec $toolbox -- rbd namespace create replicapool/radosNamespace1
kubectl -n rook-ceph exec $toolbox -- python3 /etc/ceph/create-external-cluster-resources.py --rbd-data-pool-name replicapool --rados-namespace radosNamespace1 --cluster-name rookStorage --restricted-auth-permission true
# test the above CRD created rados namespace `namespace-a` using external script
kubectl -n rook-ceph exec $toolbox -- python3 /etc/ceph/create-external-cluster-resources.py --rbd-data-pool-name replicapool --rados-namespace namespace-a --cluster-name rookStorage --restricted-auth-permission true
- name: test external script with restricted_auth_permission flag
run: |
Expand Down

0 comments on commit e8bec36

Please sign in to comment.