You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then either specify that secret in Knative-service.yaml file for your example project, or patch your service account with it.
Apply your example Knative-service.yaml using kn and you will get the following error:
Error: RevisionFailed: Revision "example-service" failed with message: Unable to fetch image "registry.gitlab.com/example-image-url": failed to resolve image to digest: GET https://gitlab.com/jwt/auth?scope=repository%!A(MISSING)example%!F(MISSING) example%!F(MISSING) example%!F(MISSING) example%!F(MISSING) example%!F(MISSING) example%!F(MISSING) example%!A(MISSING)pull&service=container_registry: DENIED: access forbidden.
Run 'kn --help' for usage
Note: I can confirm that this is not a secrets issue, as I can pull images from Gitlab with my secret with earlier versions of Knative: v1.1.1, v1.1.0 etc.
The text was updated successfully, but these errors were encountered:
Confirmed the difference in behaviour. I think as a workaround for now you can use registry.gitlab.com as your docker server name - so drop the scheme (https).
Not able to fetch private images from gitlab on Knative v1.2. I can fetch private images from Docker with Knative v1.2, but not gitlab.
I can confirm that this is not a secrets issue, as I can pull images from Gitlab with my secret with earlier versions of Knative: v1.1.1, v1.1.0 etc.
In what area(s)?
What version of Knative?
Expected Behavior
Knative v1.2 should pull images from private registries in Gitlab with appropriate secrets provided.
Actual Behavior
Knative v1.2 cannot pull private images from Gitlab registries.
Steps to Reproduce the Problem
kn
and you will get the following error:Note: I can confirm that this is not a secrets issue, as I can pull images from Gitlab with my secret with earlier versions of Knative: v1.1.1, v1.1.0 etc.
The text was updated successfully, but these errors were encountered: