Add Openshift Client and List Functions
This commit adds an Openshift client to the Cilium-CLI K8s client and adds associated list commands. It seemed cleaner to create a dedicated Openshift client and add that to KubernetesClient. This keeps the k8s/client.go cleaner and easier to read.
The commit also adds mock Openshift functions. Tests can be added later.
All changes have been tested against an Openshift cluster.
The following Openshift clients are not included:
- authorization - Likely to expose secure data
- console - Not necessary for sysdump
- helm - Not necessary for sysdump
- imageregistry - Not necessary for sysdump
- insights - Not necessary for sysdump
- monitoring - Not necessary for sysdump
- oauth - Likely to expose secure data
- operatorcontrolplane - doesn't do anything
- servicecertsigner - v1alpha - Not necessary for sysdump
- sharedResource - v1alpha1 - Not necessary for sysdump
- template - Not necessary for sysdump
- user - Likely to expose secure data
Can you fix go mod e.g. go mod tidy && do mod vendor?
I've fixed go.mod
Commit e6a57f0c776f67bedeec4dffeb542fa80aacdac2 does not contain "Signed-off-by".
Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin
It would be awesome to see this merged anytime soon 😁 😉 .
It would be awesome to see this merged anytime soon grin wink .
@soggiest the PR currently has some merge conflicts. Could you please rebase the PR's branch on latest main?
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This pull request has not seen any activity since it was marked stale. Closing.