Skip to content

Conversation

t-persson
Copy link
Collaborator

@t-persson t-persson commented Jan 16, 2025

Applicable Issues

fixes: #362

Description of the Change

When an environment request gets deleted, delete all environments connected to it and wait for them to be deleted before getting removed from Kubernetes. This will ensure that deletions of environment requests always propagate to the environments. Before this only deletion of testruns would, sometimes, propagate to environments.
This also fixes another issue in that the environment controller has a dependency to the environment request but it does not always exist in Kubernetes due to not blocking its deletion.

Alternate Designs

Nope

Possible Drawbacks

More objects will get stuck if an environment cannot be released but it's better than crashing.

Sign-off

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or

(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or

(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.

(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.

Signed-off-by: Tobias Persson tobias.persson@axis.com

@t-persson t-persson requested a review from a team as a code owner January 16, 2025 13:41
@t-persson t-persson requested review from fredjn and andmat900 and removed request for a team January 16, 2025 13:41
@t-persson t-persson force-pushed the block-environmentrequest-delete branch from c642632 to d128cc1 Compare January 16, 2025 13:44
@t-persson t-persson requested a review from andmat900 January 17, 2025 08:04
@t-persson t-persson requested a review from fredjn January 24, 2025 10:41
Copy link
Member

@fredjn fredjn left a comment

Choose a reason for hiding this comment

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

ok

@t-persson t-persson force-pushed the block-environmentrequest-delete branch from a20f9d7 to 14268b5 Compare January 30, 2025 07:20
@t-persson
Copy link
Collaborator Author

Rebased

@t-persson t-persson requested a review from fredjn January 30, 2025 07:20
@t-persson t-persson force-pushed the block-environmentrequest-delete branch from 14268b5 to f186341 Compare February 19, 2025 09:17
@t-persson t-persson merged commit c8f8c2b into eiffel-community:main Feb 19, 2025
@t-persson t-persson deleted the block-environmentrequest-delete branch February 19, 2025 11:14
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.

v1alpha: environment provider AssertionError during environment release
3 participants