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
Bug 1498954 - Broker in developer mode must support apb push #476
Conversation
@karmab If you were able to test this change for your purposes, I would appreciate it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pkg/handler/handler.go
Outdated
@@ -564,6 +564,7 @@ func (h handler) apbAddSpec(w http.ResponseWriter, r *http.Request, params map[s | |||
writeResponse(w, http.StatusBadRequest, broker.ErrorResponse{Description: "Invalid parameter yaml"}) | |||
return | |||
} | |||
spec.Image = spec.FQName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels weird to put this in the handler. I would put it in AddSpec
of broker.go
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 putting it in AddSpec makes more sense because that's what gets called when you push to the dev endpoint.
@djzager thanks for the change, do i have to build everything in order to test this one? |
i tested the PR and didnt get the error |
Testing for this PR
Just used the apb tool to push an image to the broker and looked at how the image was stored by looking at the logs of the broker.
Before Change:
After Change: