Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
* Use python kube-client
* Modularize delete functionality
* Add -n, --namespace parameter for namespace
* Error handling

Signed-off-by: Chirayu Kapoor <[email protected]>
  • Loading branch information
chiukapoor committed Jul 8, 2024
1 parent c582411 commit aa17328
Show file tree
Hide file tree
Showing 5 changed files with 727 additions and 796 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
pip3 install -r requirements.txt
apiserver=`kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}'`
echo "API_SERVER_URL:$apiserver"
python3 provider-kubeconfig.py -s $apiserver create $KUBEPLUS_NS
python3 provider-kubeconfig.py create -s $apiserver -n $KUBEPLUS_NS
deactivate
echo "Building mutating-webhook..."
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*~
venv
provider-kubeconfig.log
kubeplus-saas-provider.json
bak
vendor
operator-deployer/artifacts/deployment/operator-deployer
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Let’s look at an example of creating a multi-instance WordPress Service using
source venv/bin/activate
pip3 install -r requirements.txt
apiserver=`kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}'`
python3 provider-kubeconfig.py -s $apiserver create $KUBEPLUS_NS
python3 provider-kubeconfig.py create -s $apiserver -n $KUBEPLUS_NS
deactivate
```

Expand Down
Loading

0 comments on commit aa17328

Please sign in to comment.