Skip to content

Commit 976738f

Browse files
committed
Refactoring provider-kubeconfig.py
* Use python kube-client * Modularize delete functionality * Add check to verify if API server is reachable * Error handling Signed-off-by: Chirayu Kapoor <dev.csociety@gmail.com>
1 parent 30d8ccb commit 976738f

4 files changed

Lines changed: 746 additions & 796 deletions

File tree

.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 @@ The spec properties of the Kubernetes CRD wrapping the application Helm chart ar
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 $KUBEPLUS_NS
8282
deactivate
8383
```
8484

0 commit comments

Comments
 (0)