Skip to content

feat: activation condition #2105

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

Merged
merged 24 commits into from
Nov 20, 2023
Merged

feat: activation condition #2105

merged 24 commits into from
Nov 20, 2023

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Oct 24, 2023

No description provided.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 24, 2023
@csviri csviri self-assigned this Oct 24, 2023
@csviri csviri mentioned this pull request Oct 24, 2023
@csviri csviri linked an issue Nov 8, 2023 that may be closed by this pull request
@csviri csviri force-pushed the activation-condition branch from a3f1994 to 22dd846 Compare November 14, 2023 15:48
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
@csviri csviri force-pushed the activation-condition branch from 87e8875 to a7a0d0a Compare November 14, 2023 16:08
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
@csviri csviri requested a review from metacosm November 16, 2023 15:27
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
@csviri csviri marked this pull request as ready for review November 16, 2023 16:32
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 16, 2023
@openshift-ci openshift-ci bot requested a review from adam-sandor November 16, 2023 16:32
Signed-off-by: Attila Mészáros <[email protected]>
.build();

@Test
void routeIsNotCreated() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

How is this checking that the Route is indeed not created?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

renamed the method since, but we can check if the actual platform not supporting routes. But as we discussed before, IMO the platform is our case is give (based on definition of E2E tests in github actions) that it is pure k8s (minikube) not openshift. But we can double check in test, so if that would change we would be notified.

[skip ci]

Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun <[email protected]>
Signed-off-by: Chris Laprun <[email protected]>
Copy link
Collaborator

@metacosm metacosm left a comment

Choose a reason for hiding this comment

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

LGTM apart the comments.

.orElse(true);

boolean deletePostConditionMet = true;
if (Boolean.TRUE.equals(activationConditionMet)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure what's going on here. Why not use isConditionMet?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm, by bad, changed it. thx!

Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
@csviri csviri linked an issue Nov 20, 2023 that may be closed by this pull request
@csviri csviri merged commit 092a640 into next Nov 20, 2023
@csviri csviri deleted the activation-condition branch November 20, 2023 11:49
csviri added a commit that referenced this pull request Nov 20, 2023
Signed-off-by: Attila Mészáros <[email protected]>
csviri added a commit that referenced this pull request Nov 20, 2023
Signed-off-by: Attila Mészáros <[email protected]>
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.

Support for dynamic registration of EventSources Conditionally register a dependent resource via @Dependent
2 participants