Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Build failed due to "no Auth Provider found for name "oidc"" #60

Open
LiYa-Xu opened this issue Dec 4, 2020 · 5 comments
Open

Build failed due to "no Auth Provider found for name "oidc"" #60

LiYa-Xu opened this issue Dec 4, 2020 · 5 comments

Comments

@LiYa-Xu
Copy link

LiYa-Xu commented Dec 4, 2020

What steps did you take and what happened

  • Successfully installed buildkit
  • Tried to do the same exact steps as in the example on a multiple nodes IKS cluster.
  • When I try the command kubectl build -t pants -f Dockerfile ./, it's returned Error: no Auth Provider found for name "oidc"

What did you expect to happen
Build image succeed
Environment Details:

  • kubectl buildkit version is v0.1.2
  • Kubernetes version is v1.18.12+IKS
  • Container Runtime and version
Client:
  Version:  1.3.7
  Revision: 8fba4e9a7d01810a393d5d25a3621dc101981175

Server:
  Version:  1.3.7
  Revision: 8fba4e9a7d01810a393d5d25a3621dc101981175
  UUID: 0bff7a7b-aa99-4e21-b290-b046a14820e5

Dockerfile
git clone https://github.com/pdevine/pants.git

Vote on this request

This is an invitation to the community to vote on issues. Use the "smiley face" up to the right of this comment to vote.

  • 👍 "I would like to see this bug fixed as soon as possible"
  • 👎 "There are more important bugs to focus on right now"
@pdevine
Copy link
Contributor

pdevine commented Dec 4, 2020

@LiYa-Xu are you using kubelogin and/or oidc-login with your kube cluster? You can check in ~/.kube/config

@LiYa-Xu
Copy link
Author

LiYa-Xu commented Dec 8, 2020

@pdevine Thanks for you response, since I using the IKS cluster, so I export the KUBECONFIG, I think is same as kubelogin.

@LiYa-Xu
Copy link
Author

LiYa-Xu commented Dec 11, 2020

@pdevine Any suggestions please?

@dhiltgen
Copy link
Contributor

We just recently fixed Auth for GCP with https://github.com/vmware-tanzu/buildkit-cli-for-kubectl/pull/105/files and my suspicion is something similar is required for IKS. Since we don't really have a way to test this, PR's are welcome from someone who has access to IKS.

@clvx
Copy link

clvx commented Dec 1, 2021

Having a similar issue using an OIDC system with plugin version 0.15.

//tried exporting KUBECONFIG and the following: 
kubectl buildkit --kubeconfig ~/.kube/config create 
Error: no Auth Provider found for name "oidc"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants