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

Add ignore conditions for the status of deployed custom resources #1482

Merged
merged 2 commits into from Apr 20, 2023

Conversation

raulcabello
Copy link
Contributor

@raulcabello raulcabello commented Apr 20, 2023

We can't control the status in Custom Resources that don't belong to Fleet or Rancher. This is causing Fleet to consider bundles in error state when they shouldn't. See what happens with keda.

This PR adds a new field to set conditions to be ignored as suggested here. This allows users to ignore conditions that wrangler Summarize thinks are wrong, but are in an ok status. Ignore Conditions can be specified in the Bundle or in the fleet.yaml

refers to #1386

@raulcabello raulcabello requested a review from a team as a code owner April 20, 2023 11:00
manno
manno previously approved these changes Apr 20, 2023
Copy link
Contributor

@weyfonk weyfonk left a comment

Choose a reason for hiding this comment

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

A few nitpicks; looking great altogether, thanks!

modules/agent/pkg/deployer/monitor.go Outdated Show resolved Hide resolved
modules/agent/pkg/deployer/monitor.go Show resolved Hide resolved
modules/agent/pkg/deployer/monitor.go Outdated Show resolved Hide resolved
modules/agent/pkg/deployer/monitor.go Show resolved Hide resolved
modules/agent/pkg/deployer/monitor.go Show resolved Hide resolved
modules/agent/pkg/deployer/monitor.go Show resolved Hide resolved
modules/agent/pkg/deployer/monitor_test.go Outdated Show resolved Hide resolved
We can't control status in Custom Resources that don't belong to Fleet or Rancher. This is causing Fleet to consider bundles in error state when they shouldn't.

Conditions inside ignore conditions field will be ignored when checking the Bundle state

Signed-off-by: raul <raul.cabello@suse.com>
Co-authored-by: Corentin Néau <tan.neau@suse.com>
Signed-off-by: raul <raul.cabello@suse.com>
@raulcabello raulcabello merged commit ab055fa into rancher:master Apr 20, 2023
11 checks passed
@raulcabello raulcabello deleted the bundle-error-state branch April 20, 2023 15:11
@manno manno changed the title Add ignore conditions Add ignore conditions for the status of deployed custom resources Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants