Skip to content

Only reconcile owned deployments #424

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 1 commit into from
Oct 22, 2019

Conversation

enxebre
Copy link
Member

@enxebre enxebre commented Oct 22, 2019

Only reconcile owned deployments for update/delete events.
This would prevent other deployments in the openshift-machine-api e.g autoscaler, mao deployment (owned by cvo) to trigger the reconciliation loop here.
Opted by annotation rather than ownerRefs pointing to mao deployment as this would increase complexity and skew to contemplate reconciliation when the mao is running remotely

@enxebre
Copy link
Member Author

enxebre commented Oct 22, 2019

/hold

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 22, 2019
@bison
Copy link
Contributor

bison commented Oct 22, 2019

Can you elaborate on why we wouldn't use an owner reference here? I'm actually surprised we don't already set one.

@enxebre
Copy link
Member Author

enxebre commented Oct 22, 2019

if we do so we'd need to account for the case where the mao is running remotely/not as a deployment, so there's no owner to set, therefore needing different business logic for both cases and having skew. MAO is a special case in the sense that the controller itself is the owner, usually the controller creates a CRD resource instance which own things

Copy link
Contributor

@bison bison left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 22, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bison

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 Oct 22, 2019
@enxebre
Copy link
Member Author

enxebre commented Oct 22, 2019

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 22, 2019
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 815611f into openshift:master Oct 22, 2019
@openshift-ci-robot
Copy link
Contributor

@enxebre: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-aws-scaleup-rhel7 a402a05 link /test e2e-aws-scaleup-rhel7

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants