Skip to content

Commit aa17328

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 c582411 commit aa17328

5 files changed

Lines changed: 727 additions & 796 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
pip3 install -r requirements.txt
5353
apiserver=`kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}'`
5454
echo "API_SERVER_URL:$apiserver"
55-
python3 provider-kubeconfig.py -s $apiserver create $KUBEPLUS_NS
55+
python3 provider-kubeconfig.py create -s $apiserver -n $KUBEPLUS_NS
5656
deactivate
5757
5858
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)