-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix: fix ControlPlane managed resource labels during migration from 1.2 and older #369
Merged
pmalek
merged 7 commits into
main
from
fix-controlplane-managed-resources-labels-migration
Jul 10, 2024
Merged
fix: fix ControlPlane managed resource labels during migration from 1.2 and older #369
pmalek
merged 7 commits into
main
from
fix-controlplane-managed-resources-labels-migration
Jul 10, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pmalek
changed the title
fix: fix ControlPlane managed resource labels during migration from o…
fix: fix ControlPlane managed resource labels during migration from older operator versions
Jun 24, 2024
2 tasks
pmalek
force-pushed
the
fix-controlplane-managed-resources-labels-migration
branch
2 times, most recently
from
July 5, 2024 14:59
b0dd45f
to
ec1a893
Compare
pmalek
commented
Jul 5, 2024
pmalek
force-pushed
the
fix-controlplane-managed-resources-labels-migration
branch
from
July 5, 2024 15:09
ec1a893
to
f9dd643
Compare
pmalek
force-pushed
the
fix-controlplane-managed-resources-labels-migration
branch
5 times, most recently
from
July 5, 2024 17:34
a6650b1
to
007d337
Compare
programmer04
reviewed
Jul 7, 2024
controller/controlplane/controlplane_controller_reconciler_utils_test.go
Outdated
Show resolved
Hide resolved
programmer04
approved these changes
Jul 8, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but since it will be dealing with existing users configs I think someone else should take a look too, to double check
pmalek
changed the title
fix: fix ControlPlane managed resource labels during migration from older operator versions
fix: fix ControlPlane managed resource labels during migration from 1.2 and older
Jul 8, 2024
mlavacca
reviewed
Jul 9, 2024
mlavacca
approved these changes
Jul 9, 2024
pmalek
force-pushed
the
fix-controlplane-managed-resources-labels-migration
branch
from
July 10, 2024 10:53
a1d5f7b
to
18aa0d2
Compare
…lder operator versions
Co-authored-by: Jakub Warczarek <[email protected]>
pmalek
force-pushed
the
fix-controlplane-managed-resources-labels-migration
branch
from
July 10, 2024 11:05
18aa0d2
to
a91bffd
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
#259 introduced a new set of labels that are used on
ControlPlane
'sClusterRole
sClusterRoleBindings
sValidatingWebhookConfiguration
sThis omitted 1 important detail which is migrating on operator upgrade (specifically from 1.2.x and older to 1.3.0).
This PR fixes this by changing the listing and deleting logic for the aforementioned resources so that the old label and owner reference are also taken into account.
This also makes other small changes
ClusterRole
orValidatingWebhookConfiguration
in place when there's more in the cluster;ControlPlane
fails to get provisioned - this can happen when operator's webhook doesn't respond - requeue, without this, provisionedGateway
gets stuck withControlPlaneReady
condition set toFalse
.Which issue this PR fixes
Fixes #373
Special notes for your reviewer:
PR Readiness Checklist:
Complete these before marking the PR as
ready to review
:CHANGELOG.md
release notes have been updated to reflect significant changes