Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no Auth Provider found for name "oidc" #412

Closed
Ugzuzg opened this issue Nov 5, 2024 · 2 comments · Fixed by #429
Closed

no Auth Provider found for name "oidc" #412

Ugzuzg opened this issue Nov 5, 2024 · 2 comments · Fixed by #429
Assignees
Labels
enhancement New feature or request

Comments

@Ugzuzg
Copy link
Contributor

Ugzuzg commented Nov 5, 2024

I get the following error while trying to xk6-disruptor run script.js:

ERRO[0000] GoError: error creating Kubernetes helper: no Auth Provider found for name "oidc"
        at go.k6.io/k6/js.(*requireImpl).require-fm (native)

The user config has the same shape as in this example:

users:
- name: mmosley
  user:
    auth-provider:
      config:
        client-id: kubernetes
        client-secret: secret
        id-token: token
        idp-certificate-authority: /root/ca.pem
        idp-issuer-url: https://oidcidp.tremolo.lan:8443/auth/idp/OidcIdP
        refresh-token: refresh-token
      name: oidc

A possibly relevant issue: fluxcd/terraform-provider-flux#669. They fixed it by simply importing k8s.io/client-go/plugin/pkg/client/auth.

@pablochacin pablochacin self-assigned this Nov 12, 2024
@pablochacin pablochacin added the enhancement New feature or request label Nov 12, 2024
@pablochacin
Copy link
Collaborator

@Ugzuzg I think the solution proposed in the issue you linked is reasonable. Unfortunately, I don't have a way to test it. Any sugestion how we could test if this solved the issue before relating it?

@Ugzuzg
Copy link
Contributor Author

Ugzuzg commented Nov 12, 2024

I'm not exactly sure where to add this import, but if you can point me in the right direction, I can build and test the binary locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants