Skip to content
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

Merged
merged 2 commits into from
Apr 11, 2022

Conversation

Yelzhasdev
Copy link
Contributor

@Yelzhasdev Yelzhasdev commented Apr 2, 2022

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

@Yelzhasdev Yelzhasdev force-pushed the fix_#24676 branch 2 times, most recently from ad4d825 to 723cf7b Compare April 2, 2022 12:53
@geoand
Copy link
Contributor

geoand commented Apr 2, 2022

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

@Yelzhasdev
Copy link
Contributor Author

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👍

@geoand
Copy link
Contributor

geoand commented Apr 2, 2022

Thanks.

@iocanel can you please review?

@quarkus-bot

This comment has been minimized.

Copy link
Contributor

@iocanel iocanel left a 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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Respect!

@Yelzhasdev
Copy link
Contributor Author

Yelzhasdev commented Apr 8, 2022

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.

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

@Yelzhasdev Yelzhasdev requested a review from iocanel April 8, 2022 17:35
}

@Override
public Class<? extends Decorator>[] after() {
Copy link
Contributor

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.

Copy link
Contributor

@iocanel iocanel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@geoand geoand merged commit c8730c6 into quarkusio:main Apr 11, 2022
@quarkus-bot quarkus-bot bot added this to the 2.9 - main milestone Apr 11, 2022
@quarkus-bot quarkus-bot bot added the kind/enhancement New feature or request label Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubernetes: allow to customize the container name
3 participants