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

Use DeploymentAvailable instead of custom test for CSV status. #2125

Conversation

benluddy
Copy link
Contributor

@benluddy benluddy commented Apr 28, 2021

CSVs can transition to Failed (reason ComponentUnhealthy) if a single
pod managed by one of its deployments is deleted. This commit changes
the deployment availability test from a comparison between
.status.availableReplicas and .status.updatedReplicas to a check that
passes unless the deployment's Available condition exists and is
False.

Prospective upstream fix for: https://bugzilla.redhat.com/show_bug.cgi?id=1945443

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: benluddy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 28, 2021
deploy/chart/values.yaml Show resolved Hide resolved
pkg/controller/install/status_viewer.go Outdated Show resolved Hide resolved
@benluddy benluddy force-pushed the csv-deployment-availability branch from 6f61f00 to fe8cd06 Compare April 29, 2021 13:47
CSVs can transition to Failed (reason ComponentUnhealthy) if a single
pod managed by one of its deployments is deleted. This commit changes
the deployment availability test from a comparison between
.status.availableReplicas and .status.updatedReplicas to a check that
passes unless the deployment's Available condition exists and is
False.

Signed-off-by: Ben Luddy <bluddy@redhat.com>
@benluddy benluddy force-pushed the csv-deployment-availability branch from fe8cd06 to 929fa8b Compare April 29, 2021 15:19
@njhale
Copy link
Member

njhale commented Apr 29, 2021

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2021
@benluddy
Copy link
Contributor Author

/woof

@openshift-ci-robot
Copy link
Collaborator

@benluddy: dog image

In response to this:

/woof

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@benluddy
Copy link
Contributor Author

/retest

@openshift-merge-robot openshift-merge-robot merged commit 9359b9d into operator-framework:master Apr 29, 2021
@benluddy
Copy link
Contributor Author

/cherry-pick release-4.7

@openshift-cherrypick-robot

@benluddy: new pull request created: #2150

In response to this:

/cherry-pick release-4.7

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants