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

Subscription replace should annotate the objects like a normal subscription. #293

Merged
merged 2 commits into from
Sep 23, 2020

Conversation

rokej
Copy link
Collaborator

@rokej rokej commented Sep 23, 2020

https://github.com/open-cluster-management/backlog/issues/5623

If subscription-admin chooses merge option to update existing resources not owned by subscription, remove the typical annotations subscription controller adds. This will avoid the resources being deleted when the subscription is removed.

If subscription-admin chooses replace option to update existing resources not owned by subscription, keep the typical annotations subscription controller adds. Subscription takes over the resources. When the subscription is removed, the resources will be removed too.

@rokej rokej changed the title Update synchronizer.go Subscription replace should annotate the objects like a normal subscription. Sep 23, 2020
@rokej rokej requested a review from xiangjingli September 23, 2020 16:07
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ianzhang366, rokej, xiangjingli

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

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell B 2 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@rokej rokej merged commit ea67b8c into master Sep 23, 2020
@rokej rokej deleted the keep-annotations-replace branch September 23, 2020 17:45
magic-mirror-bot bot pushed a commit that referenced this pull request Nov 29, 2022
Includes the fields for policy ordering.

Refs:
 - stolostron/backlog#26906

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
(cherry picked from commit 6cb8361)
magic-mirror-bot bot pushed a commit that referenced this pull request Nov 29, 2022
Includes the fields for policy ordering.

Refs:
 - https://github.com/stolostron/backlog/issues/26906

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
(cherry picked from commit 6cb8361)
dhaiducek pushed a commit to dhaiducek/multicloud-operators-subscription that referenced this pull request Oct 17, 2024
Includes the fields for policy ordering.

Refs:
 - stolostron/backlog#26906

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants