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

misc: Allow setting init_containers with null condition #289

Conversation

adamantike
Copy link
Contributor

what

This change allows configuring init_containers that are not added to the depends_on list for the main container, by setting null as the container condition.

why

This is useful for containers that actually depend on the main container, and not the other way around. For example, a nginx sidecar that needs to wait for the main container to be healthy before starting.

By allowing null as the container condition, this is a non-breaking change.

@adamantike adamantike requested review from a team as code owners October 14, 2024 14:18
@mergify mergify bot added the triage Needs triage label Oct 14, 2024
@gberenice
Copy link
Contributor

/terratest

main.tf Outdated Show resolved Hide resolved
Copy link

mergify bot commented Oct 15, 2024

💥 This pull request now has conflicts. Could you fix it @adamantike? 🙏

@mergify mergify bot added the conflict This PR has conflicts label Oct 15, 2024
This change allows configuring `init_containers` that are not added to
the `depends_on` list for the main container, by setting `null` as the
container `condition`.

This is useful for containers that actually depend on the main
container, and not the other way around. For example, a `nginx` sidecar
that needs to wait for the main container to be healthy before starting.

By allowing `null` as the container condition, this is a non-breaking
change.
@adamantike adamantike force-pushed the misc/allow-init-containers-without-condition branch from 36f8b35 to 9bf8f85 Compare October 15, 2024 17:17
@mergify mergify bot removed the conflict This PR has conflicts label Oct 15, 2024
@gberenice
Copy link
Contributor

/terratest

@mergify mergify bot removed the triage Needs triage label Oct 16, 2024
@gberenice gberenice merged commit 9ae7e79 into cloudposse:main Oct 16, 2024
47 checks passed
Copy link
Contributor

These changes were released in v2.3.0.

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.

2 participants