Is your feature request related to a problem? Please describe.
When I configure OIDC for a cluster I need to manually craft the user kubeconfigs
Describe the solution you would like
It would be nice if k0s kubeconfig command would be able to detect the OIDC config and spit out working kubeconfig for the user. For example If I have in cluster config:
apiVersion: k0s.k0sproject.io/v1beta1
kind: ClusterConfig
spec:
api:
extraArgs:
oidc-issuer-url: <issuer-url>
oidc-client-id: <client-id>
oidc-username-claim: email # we use email token claim field as a username
k0s should detect that and generate the corresponding client config:
Is your feature request related to a problem? Please describe.
When I configure OIDC for a cluster I need to manually craft the user kubeconfigs
Describe the solution you would like
It would be nice if
k0s kubeconfig
command would be able to detect the OIDC config and spit out working kubeconfig for the user. For example If I have in cluster config:k0s should detect that and generate the corresponding client config:
We cannot support all oidc login tools of course but kubelogin seems to be generic enough to work with most providers.
Describe alternatives you've considered
No response
Additional context
No response