-
Notifications
You must be signed in to change notification settings - Fork 28
Improve the container image override mechanism #148
Comments
@aliok The section Here is the example for eventing CR: https://github.com/houshengbo/docs/blob/operator-cr-configuration/docs/install/operator/configuring-eventing-cr.md#download-images-from-different-repositories-without-secrets
|
@houshengbo as we talked offline, the match for the override is done using the container names, not deployment names. And, in eventing, we have container names that are not unique. We either go with a solution that I suggested in the issue description, or we use deployment names to match. However, a deployment can have more than 1 containers, although we don't have that case yet. |
@aliok Thanks. I did not realize the difference between serving and eventing, in terms of how they define the deployment name and the container name for the deployment. In serving, both of them match, but in eventing, the container name is different from the deployment name. To me, using deployment name is easier to find than using container name, coz everyone can easily find them by
If we have to stay with container name, we have to issue other commands to check the detailed info of each deployment individually. |
Yeah, I first tried to change the container names in eventing here: knative/eventing#2794 But I understand the concerns. |
@jcrossley3 what do you say about this? matching with deployment names instead of container names? |
@aliok @jcrossley3 @markusthoemmes |
What's the behavior when there's no |
I think the container names are optional in Kubernetes deployments. |
I'd say if there's no |
Problem
As seen in knative/eventing#2794, we cannot simply use the container names for overriding images for containers. Container names can be duplicated.
Current override mechanism is like this:
This cannot handle the case that we have for
imc-controller
andbroker-controller
deployments the same container name,controller
.My suggestion would be instead of only providing the container name, we pass more information. Something like:
This would fix the case that we have for
imc-controller
andbroker-controller
deployments the same container name,controller
.Persona:
Which persona is this feature for?
System admin
Exit Criteria
Proper image overriding, regardless of container names being unique or not.
Time Estimate (optional):
1 day
Additional context (optional)
See the causing ticket: knative/eventing#2794
Related: #147
The text was updated successfully, but these errors were encountered: