Automated kaniko secret generation for docker configuration used to work in v0.30.0 and now fails in v0.34.0 #2522
Labels
build/kaniko
kind/bug
Something isn't working
priority/p0
Highest priority. We are actively looking at delivering it.
Expected behavior
Building images using Kaniko as builder with automated secret generation should work.
Actual behavior
Information
We are using kaniko to build our images. Kaniko needs two secrets which contain the credentials for image pushing and the docker configuration. When used in conjunction with skaffold, one has the option to:
We are using method 2, which is working fine in skaffold v0.30.0. In skaffold v0.34.0, this fails with the above error. The error message itself is rather straight forward: Skaffold can't create a secret with an empty name.
It's not clear how one would set the name for this secret though, in the past the secret was automatically named "docker-cfg". When used in conjunction with the additional field "secretName: foo", skaffold fails with the error that one should use either "secretName" OR "path". Which is correct, as these fields decide whether one uses option 1 or 2 from above. You can't do both.
I haven't found any documentation which explains how one would set the name for the docker-cfg secret in v0.34.0.
We haven't changed the version of kaniko we use.
This is the relevant part from our skaffold.yaml:
The text was updated successfully, but these errors were encountered: