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

Ensure initContainer(s) will configure args provided. #474

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

corneil
Copy link
Contributor

@corneil corneil commented Sep 2, 2024

Fixes #473

@@ -893,7 +893,7 @@ public static class ContainerProperties {
private String containerName;

private List<String> commands;

private List<String> args;
Copy link
Contributor

Choose a reason for hiding this comment

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

[NIT] Spacing

@@ -925,6 +925,14 @@ public void setCommands(List<String> commands) {
this.commands = commands;
}

public List<String> getArgs() {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like before this change we were using commands to contain both command + args. If users were previously doing commands = "sh,-c,script2.sh" will they now have to use commands = "sh" + args = "-c,script2.h" or will both variants still be supported? IOW - will this break existing configurations?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test was just to validate the provision of args are applied as expected.

commands overrides the entrypoint.
args is added to the entrypoint.

@corneil corneil merged commit 2d25f0e into spring-cloud:main Sep 4, 2024
4 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to configure 'args' fields for k8s initContainer
2 participants