-
Notifications
You must be signed in to change notification settings - Fork 138
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
func build with -i does not use given image name #1125
Comments
Good catch! |
@gauron99 nice, are you eager to fix this one? 😄 |
i can give it a go :D |
/assign |
lance
added a commit
to lance/func
that referenced
this issue
Aug 30, 2022
If the user provides an `--image` flag on the command line, it should be used. This commit modifies the image resolving code to check whether or not the image name was provided on the command line. Fixes: knative#1125 Signed-off-by: Lance Ball <lball@redhat.com>
knative-prow bot
pushed a commit
that referenced
this issue
Aug 31, 2022
* fix: check for `--image` flag in build command If the user provides an `--image` flag on the command line, it should be used. This commit modifies the image resolving code to check whether or not the image name was provided on the command line. Fixes: #1125 Signed-off-by: Lance Ball <lball@redhat.com> * fixup: review feedback Signed-off-by: Lance Ball <lball@redhat.com> Signed-off-by: Lance Ball <lball@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using
func build -i docker.io/gauron/app:latest
doesnt create image nameddocker.io/gauron/app:latest
but insteadimage-registry.openshift-image-registry.svc:5000/default/app
(name gets overridden)func create -l go
func build -i docker.io/name/app
it looks to me like in
Build
function (client.go) the registry is populated with the openshift default registry and used inDerivedImage
(look at image below)f.Registry
is empty butregistry
is the default openshift registry right before the if statement (as indicated by the LOOK DEEP print) therefore the if is skipped and image is built without image flag/kind bug
The text was updated successfully, but these errors were encountered: