Open chiukapoor opened 2 months ago
Looks like CI has failed: https://github.com/cloud-ark/kubeplus/actions/runs/9838082051/job/27157203380?pr=1326#step:5:1896
https://github.com/cloud-ark/kubeplus/actions/runs/9838401881/job/27158227902?pr=1326#step:5:1901
Need to add kubernetes to requirements.txt.
@devdattakulkarni I would like to propose that we move the provider-kubeconfig.py
and requirements.txt
to a new folder (ex kubeconfig-generator
)?
Rebased with master
@chiukapoor I have started testing the changes. Here is a gist with early results.
https://gist.github.com/devdattakulkarni/bb3833c9589ca3139c971da43ac2fa62
I would suggest you try all the flags with all the commands to verify whether all combinations of commands and flags are working correctly.
@devdattakulkarni
Test 2: "Namespace does not exist" is working fine for me.
❯ kubectl get namespaces -A
NAME STATUS AGE
default Active 7m7s
kube-node-lease Active 7m7s
kube-public Active 7m7s
kube-system Active 7m7s
local-path-storage Active 7m4s
testkubeconfig2 Active 53s
❯ python3 provider-kubeconfig.py create -n testkubeconfig3 -s $apiserver
API Server IP: https://127.0.0.1:36921
Namespace 'testkubeconfig3' created successfully.
Namespace 'testkubeconfig3' labeled successfully.
ServiceAccount 'kubeplus-saas-provider' created successfully.
Secret 'kubeplus-saas-provider' created successfully.
Kubeconfig file 'kubeplus-saas-provider.json' created successfully.
ClusterRole 'kubeplus-saas-provider' replaced successfully.
ClusterRole 'kubeplus-saas-provider' replaced successfully.
Provider kubeconfig created: kubeplus-saas-provider.json
Rest of the issues are resolved in latest commit.
Rebased the PR @devdattakulkarni
Issue
Updates
-n, --namespace
parameter for namespaceTODO
UPDATE
functionality