-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add container-name configuration for kubernetes extension #24708
Conversation
ad4d825
to
723cf7b
Compare
Hi thanks for this. I would prefer there was a separate commit addressing the issue that the PR is closing and another for the fix you mentioned was lost |
Hi! Done👍 |
Thanks. @iocanel can you please review? |
This comment has been minimized.
This comment has been minimized.
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.
What I see here is good.
However, I think that there is something missing.
We need to make sure that setting a custom container name does not break all other dekorators.
We should either make force this decorator to run before all other Application Container Decorators and then pass the custom container name to the rest, all to force it last. The latter seems simpler.
However, we do need to test using the custom name with at least a couple other container related changes to make sure everything plays nicely together.
} | ||
|
||
@Override | ||
public void andThenVisit(DeploymentConfigSpecFluent<?> deploymentConfigSpecFluent, ObjectMeta objectMeta) { |
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.
Respect!
Hi! I added all decorators that extend ApplicationContainerDecorator to perform before that new decorator, also added couple of tests that change container to verify that everything is correct |
} | ||
|
||
@Override | ||
public Class<? extends Decorator>[] after() { |
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.
We need to find a better way to deal with it, but there are not much we can do atm.
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
Resolves #24676
Add container-name configuration for kubernetes/openshift/knative to specify container name separately, backward compatible.
@geoand also after refactoring that took place in #12655 fix #11559 was lost, I added it back