-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish a ko
image
#3
Comments
Additionally can this image also know how to auth with provided kubernetes style service accounts (maybe via mounted files or environment variables)? 🙏 |
After some discussion with @jonjohnsonjr , a couple options for the auth interface:
|
Best option, I think, is to mount docker push secrets at ~/.docker/config.json, which |
This issue is stale because it has been open for 90 days with no |
I'd still like an official |
I'm not opposed to having one, but credentials are tricky. |
@jonjohnsonjr the way we solve this in our tekton release infra is not super great we build an image with both ko and gcloud (and kubectl) and explicitly call out to gcloud to activate a service account and configure docker: # Activate service account
gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
# Setup docker-auth
gcloud auth configure-docker |
I was looking into how minikube configures credentials for an unrelated issue and noticed that they use this project: https://github.com/upmc-enterprises/registry-creds/ Possibly we could do something similar? Also, for |
To sketch out what I'd probably want to do for this:
An easier approach would be to just merge |
This issue is stale because it has been open for 90 days with no |
This issue spawned https://medium.com/@jdolitsky/docker-credential-magic-a-magic-shim-for-docker-credential-helpers-deae9e78c2df We should look at that as a solution. |
#528 👀 |
FYI the ko image doesn't have golang or creds installed at this time, and we shouldn't recommend it for general use just yet. But I'd like it to end up there, and for that to be a way to use it, with Tekton, GCB, etc. |
Can I also plug for us to make sure that the appropriate credential helpers are installed for this to work in cluster contexts 🙏 In |
Sure, how do you want that to work? I think a cred-less ko image is more useful than nothing, so if giving it creds blocks a release I'd say we can still punt and figure it out later. |
So I'd say "Just Honestly, the best answer I'm aware of is to use |
I'd rather fix this than use k8schain |
Yes, we've met 😉 |
I'd rather do anything besides expose a |
ohthankgod 😅 |
ko
image (gcr.io/$PROJECT_ID/ko
)ko
image
This is done now. ghcr.io/google/ko |
little fix in the information message
In tektoncd/pipeline#529 and tektoncd/pipeline#528 I'm adding dogfooding CI/CD logic for publishing tekton pipelines images and yamls.
This means I want to create a Task step or steps which invoke
ko
, since this is how we currently build and publish our images (via a bash script).To do this, I need a container with
ko
installed. For now I'll have a first step that installsko
, but would be great if ako
image could be published and available for folks to use.(Looks like #358 might be related but I'm not sure?)
The text was updated successfully, but these errors were encountered: