forked from openebs/openebs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refact(cspc-operator): added cspc crd yaml to cspc-operator (openebs#…
…2732) Signed-off-by: shubham <shubham.bajpai@mayadata.io>
- Loading branch information
1 parent
a67b9fd
commit 70cf316
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
echo "Running pre-installation steps" | ||
|
||
x=$(kubectl get crd cstorpoolclusters.openebs.io -o jsonpath="{.spec.scope}" 2>&1 ) | ||
|
||
if [[ $x == 'Cluster' ]]; then | ||
kubectl delete crd cstorpoolclusters.openebs.io | ||
fi | ||
|
||
echo "Installing cspc operator" | ||
|
||
kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/master/k8s/cspc-operator.yaml |