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 "gcp"' #94

Closed
willianccs opened this issue May 13, 2021 · 0 comments · Fixed by #105
Closed

Build failed due to 'no Auth Provider found for name "gcp"' #94

willianccs opened this issue May 13, 2021 · 0 comments · Fixed by #105

Comments

@willianccs
Copy link

willianccs commented May 13, 2021

Describe the problem/challenge you have
When I try the command kubectl build -t hello-world -f Dockerfile ., it's returned Error: no Auth Provider found for name "gcp"

- name: gke_lab
  user:
    auth-provider:
      config:
        access-token: ya29.a0AfH6SMAx2L73bXcuOC(...)
        cmd-args: config config-helper --format=json
        cmd-path: /home/williansilva/google-cloud-sdk/bin/gcloud
        expiry: "2021-05-13T10:42:00Z"
        expiry-key: '{.credential.token_expiry}'
        token-key: '{.credential.access_token}'
      name: gcp

Description of the solution you'd like
Build image succeed

  • Dockerfile
FROM golang as builder
WORKDIR /hello-world
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /bin/hello-world .

FROM alpine
WORKDIR /app
EXPOSE 8080
ENTRYPOINT ["/app/hello-world"]
COPY --from=builder /bin/hello-world /app

Environment Details:

  • kubectl buildkit version: v0.1.3
  • Kubernetes version: Client Version: v1.17.17-dispatcher Server Version: v1.17.17-gke.4900
  • Where are you running kubernetes: GKE
  • Container Runtime and version
ctr version
Client:
  Version:  1.3.9
  Revision: ff48f57fc83a8c44cf4ad5d672424a98ba37ded6

Server:
  Version:  1.3.9
  Revision: ff48f57fc83a8c44cf4ad5d672424a98ba37ded6
  UUID: a6ae56ae-88b4-4181-9f70-682b26f5899d
docker version
Client:
 Version:           19.03.14
 API version:       1.40
 Go version:        go1.13.5
 Git commit:        5eb3275
 Built:             Tue Feb  2 16:07:51 2021
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.14
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.5
  Git commit:       5eb3275
  Built:            Tue Feb  2 16:07:05 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.3.9
  GitCommit:        ff48f57fc83a8c44cf4ad5d672424a98ba37ded6
 runc:
  Version:          1.0.0-rc10
  GitCommit:        
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683b971d9c3ef73f284f176672c44b448662

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.

  • 👍 "This project will be more useful if this feature were added"
  • 👎 "This feature will not enhance the project in a meaningful way"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant