Skip to content

Commit

Permalink
Merge pull request #178 from IIG/CPD4.0_dev
Browse files Browse the repository at this point in the history
minor changes
  • Loading branch information
praveshhibm authored and GitHub Enterprise committed Jul 14, 2021
2 parents e7d3234 + be12298 commit 229eb2a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 17 deletions.
6 changes: 3 additions & 3 deletions managed-openshift/ibmcloud/cpd_install/cpd.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "null_resource" "bedrock_zen_operator" {

working_dir = "${path.module}/scripts/"
interpreter = ["/bin/bash", "-c"]
command = "./install_bedrock_zen_operator.sh"
command = "./install-bedrock-zen-operator.sh"
}

depends_on = [
Expand All @@ -41,7 +41,7 @@ resource "null_resource" "install_ccs" {

working_dir = "${path.module}/scripts/"
interpreter = ["/bin/bash", "-c"]
command = "./install_ccs.sh"
command = "./install-ccs.sh"
}

depends_on = [
Expand Down Expand Up @@ -161,7 +161,7 @@ resource "null_resource" "install_wsl" {

working_dir = "${path.module}/scripts/"
interpreter = ["/bin/bash", "-c"]
command = "./install_wsl.sh"
command = "./install-wsl.sh"
}

depends_on = [
Expand Down
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

0 comments on commit 229eb2a

Please sign in to comment.