src/jetstream/plugins/kubernetes/auth/oidc.go
Method OIDCKubeAuth.GetOIDCConfig
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *OIDCKubeAuth) GetOIDCConfig(k *config.KubeConfigUser) (*KubeConfigAuthProviderOIDC, error) {
if k.User.AuthProvider.Name != "oidc" {
return nil, errors.New("User doesn't use OIDC")
}