-
Notifications
You must be signed in to change notification settings - Fork 28
Unable to override image for broker-ingress
with operator
#147
Comments
/assign @aliok |
Operator creates a deployment of
We're able to change the image for the broker-controller itself using the eventing CR like this:
but not the I suggest that we provide a mechanism to override env vars for the containers as well, not just their images. So, the eventing CR would look like something like:
This would end up in this:
|
what I suggest above is far from being ideal, but until we have things addressing the tickets noted at knative/serving-operator#301, I think this would be a straigtforward solution. |
Looking at the suggested proposal:
I think this is also interesting, since the operator can than also override other evn vars, on a given container. |
Note there are other "env var" images in eventing. like:
looks like the override, was only partially working, which seems to be a problem |
Personally, I like the idea of a generic "environment variable override" feature in the
The transformer function in the operator would then set all the |
@jcrossley3 I think that would make things easier. It would solve my problem here and it would be actually a nicer feature. The only downside would be that in the future there might be cases where we're passing different values for the same env var to different containers. I don't have a strong opinion on this though. No need to overengineer and solve problems we don't have right now. So, +1! |
Good point. We could provide an optional |
We had a WG meeting yesterday and this issue was discussed there. The outcome of the discussion is that we improve the existing image override mechanism to also override images that are defined in env vars. The challenge in this case is to identify what env vars are images. I will keep this ticket open for now. |
Describe the bug
Unable to override images for containers that are created by the eventing controllers and not the operator.
For example, we're able to change the image of
broker-controller
with registry override defined in KnativeEventing CR. With that, the operator creates thebroker-controller
and then later,broker controller
createsbroker-ingress
.However,
broker-ingress
is always created with the officialgcr.io
image.broker-controller
actually supports overriding thebroker-ingress
image usingBROKER_INGRESS_IMAGE
env var. But, there's no way to pass that from the operator CR, then tobroker-controller
.Expected behavior
Some mechanism to override the images created by controllers and not just the operator.
Knative release version
0.13.0
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered: