Open
Description
Description
Implement a new command that would generate kubeconfig file for a named OIDC configuration.
It would add kyma abstraction on top of functionality that is similar to kubeconfig set-credentials by doing a lookup for oidc config data from named OpenIDConnect.authentication.gardener.cloud/v1alpha1
resource on the cluster instead of requiring all oidc config to be passed by the flags.
kyma alpha kubeconfig generate --oidc-name {OpenIDConnect resource name} --output kubeconfig-for-oidc.yaml
Reasons
Thanks to gardener's shoot-oidc-service
extension, managed kyma clusters are able to persist multiple OIDC configurations as CRs. Add possibility for users to easily generate kubeconfig with user context configred with the name oidc config.
Attachments