Skip to content

Commit 3dee342

Browse files
committed
Refactoring
* Use python kube-client * Modularize delete functionality * Add -n, --namespace parameter for namespace * Error handling Signed-off-by: Chirayu Kapoor <dev.csociety@gmail.com>
1 parent dcc6424 commit 3dee342

File tree

5 files changed

+727
-796
lines changed

5 files changed

+727
-796
lines changed

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
pip3 install -r requirements.txt
5454
apiserver=`kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}'`
5555
echo "API_SERVER_URL:$apiserver"
56-
python3 provider-kubeconfig.py -s $apiserver create $KUBEPLUS_NS
56+
python3 provider-kubeconfig.py create -s $apiserver -n $KUBEPLUS_NS
5757
deactivate
5858
5959
echo "Building mutating-webhook..."

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*~
22
venv
33
provider-kubeconfig.log
4+
kubeplus-saas-provider.json
45
bak
56
vendor
67
operator-deployer/artifacts/deployment/operator-deployer

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Let’s look at an example of creating a multi-instance WordPress Service using
7878
source venv/bin/activate
7979
pip3 install -r requirements.txt
8080
apiserver=`kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}'`
81-
python3 provider-kubeconfig.py -s $apiserver create $KUBEPLUS_NS
81+
python3 provider-kubeconfig.py create -s $apiserver -n $KUBEPLUS_NS
8282
deactivate
8383
```
8484

0 commit comments

Comments
 (0)