Skip to content

Commit

Permalink
changes for dmc cr
Browse files Browse the repository at this point in the history
  • Loading branch information
praveshhibm committed Jul 21, 2021
1 parent 73a6019 commit a2feea9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
12 changes: 12 additions & 0 deletions managed-openshift/ibmcloud/cpd_install/scripts/dmc-cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: dmc.databases.ibm.com/v1
kind: Dmcaddon
metadata:
name: dmcaddon-cr
spec:
namespace: CPD_NAMESPACE
storageClass: "portworx-shared-gp3"
pullPrefix: cp.icr.io/cp/cpd
version: "4.0.0"
license:
accept: true
license: Enterprise
19 changes: 5 additions & 14 deletions managed-openshift/ibmcloud/cpd_install/scripts/install-dmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,11 @@ sleep 5m

oc project ${NAMESPACE}

cat << EOF | oc apply -f -
apiVersion: dmc.databases.ibm.com/v1
kind: Dmcaddon
metadata:
name: dmcaddon-cr
spec:
namespace: zen
storageClass: "portworx-shared-gp3"
pullPrefix: cp.icr.io/cp/cpd
version: "4.0.0"
license:
accept: true
license: Enterprise
EOF
# Create dmc CR:
sed -i -e s#CPD_NAMESPACE#${NAMESPACE}#g dmc-cr.yaml
echo '*** executing **** oc create -f dmc-cr.yaml'
result=$(oc create -f dmc-cr.yaml)
echo $result

# checking status of dmc-operator
./pod-status-check.sh ibm-dmc-controller ${OP_NAMESPACE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cloudctl case launch --case ${CASE_PACKAGE_NAME} \

# switch to zen namespace

oc project zen
oc project ${NAMESPACE}


# # Install wkc Customer Resource
Expand Down

0 comments on commit a2feea9

Please sign in to comment.