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

runtime: Add HasAnyReason to conditions getter #730

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

stefanprodan
Copy link
Member

Add HasAnyReason helper function that returns true if a condition with the given type exists and any of the given reasons exist.

To be used in: fluxcd/helm-controller#884

Copy link
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

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

LGTM!

runtime/conditions/getter.go Outdated Show resolved Hide resolved
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan merged commit 2e7e8fe into main Feb 5, 2024
13 checks passed
@stefanprodan stefanprodan deleted the conditions-HasAnyReasons branch February 5, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/runtime Controller runtime related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants