Repository navigation
Description
Expected Behavior
bazel run :elafros should fail if images can't be pushed to the repo.
Actual Behavior
Error is output, but the process returns with code 0.
Steps to Reproduce the Problem
- Set
DOCKER_REPO_OVERRIDEto a registry you have no write access to (maybe a bogus value will also work?) - Run
hack/release.sh - You'll see errors for
bazel run :elafrosandbazel run @buildcrd//:everythingbecause the images can't be pushed, but the script will really fail during thegsutil cpstep.
Additional Info
W0330 05:12:36.618] INFO: Running command line: bazel-bin/external/buildcrd/everything
W0330 05:12:37.834] CRITICAL:root:Error publishing provided image: Bad status during token exchange: 401
W0330 05:12:37.834] {"errors":[{"code":"UNAUTHORIZED","message":"You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication"}]}
W0330 05:12:37.933] CRITICAL:root:Error publishing provided image: Bad status during token exchange: 401
W0330 05:12:37.933] {"errors":[{"code":"UNAUTHORIZED","message":"You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication"}]}
W0330 05:12:38.028] CRITICAL:root:Error publishing provided image: Bad status during token exchange: 401
W0330 05:12:38.029] {"errors":[{"code":"UNAUTHORIZED","message":"You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication"}]}
Activity
mattmoor commentedon Mar 30, 2018
We may just need to update our version of
rules_k8s. If Bazel is really returning a zero exit code at HEAD of that repo, then we should open a bug there.adrcunha commentedon Jun 7, 2018
This is obsolete, now that releases use ko (#1025).
Throttle CheckDistribution in conformance. (knative#546)
[MAIN] Move to Golang version 1.21 (knative#546)
[RELEASE-1.11] Move to Golang version 1.21 (knative#546)
[RELEASE-1.11] Move to Golang version 1.21 (knative#546) (knative#592)
[RELEASE-1.11] Move to Golang version 1.21 (knative#546) (knative#592)