Skip to content

Commit

Permalink
Refactoring provider-kubeconfig.py
Browse files Browse the repository at this point in the history
* Use python kube-client
* Modularize delete functionality
* Add check to verify if API server is reachable
* Error handling

Signed-off-by: Chirayu Kapoor <[email protected]>
  • Loading branch information
chiukapoor committed Sep 11, 2024
1 parent 30d8ccb commit 976738f
Show file tree
Hide file tree
Showing 4 changed files with 746 additions and 796 deletions.
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 @@ The spec properties of the Kubernetes CRD wrapping the application Helm chart ar
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 $KUBEPLUS_NS
deactivate
```

Expand Down
Loading

0 comments on commit 976738f

Please sign in to comment.