buildkit-cli-for-kubectl icon indicating copy to clipboard operation
buildkit-cli-for-kubectl copied to clipboard

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

Open LiYa-Xu opened this issue 5 years ago • 5 comments

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.

  • :+1: "I would like to see this bug fixed as soon as possible"
  • :-1: "There are more important bugs to focus on right now"

LiYa-Xu avatar Dec 04 '20 07:12 LiYa-Xu

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

pdevine avatar Dec 04 '20 16:12 pdevine

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

LiYa-Xu avatar Dec 08 '20 06:12 LiYa-Xu

@pdevine Any suggestions please?

LiYa-Xu avatar Dec 11 '20 07:12 LiYa-Xu

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.

dhiltgen avatar Nov 22 '21 23:11 dhiltgen

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"

clvx avatar Dec 01 '21 18:12 clvx