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

Creates new objects every time artifact.newFunc is called #2679

Merged

Conversation

plkokanov
Copy link
Contributor

@plkokanov plkokanov commented Aug 7, 2020

How to categorize this PR?

/area control-plane
/kind bug
/priority blocker

What this PR does / why we need it:
This PR makes it so that artifact.newFunc will return a new object every time it is called instead of reusing the same object per extension resource kind or controllerinstallation kind.

Which issue(s) this PR fixes:
None

Special notes for your reviewer:

Release note:

Objects into which  `controllerinstallations` and `extensions` are retrieved during reconciliation by the ControllerInstallation controller and ShootState Sync controller are now created for each reconciliation, instead of the same object being reused multiple times per resource kind.

Copy link
Member

@timuthy timuthy left a comment

Choose a reason for hiding this comment

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

/lgtm

Thank you for taking care!

Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

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

/lgtm

@plkokanov
Copy link
Contributor Author

Created 3 clusters locally successfully without additional data in the shootstates.
We can add an additional test for the planned cp-migration integration tests to check if shootstates get generated and populated properly.

@rfranzke
Copy link
Member

rfranzke commented Aug 7, 2020

Yes, please. Actually, this test should be independent of the control plane migration but be a dedicated integration test for the shoot state controller.

@timuthy timuthy merged commit 174108e into gardener:master Aug 7, 2020
@plkokanov plkokanov deleted the fix/federated-controller-reconcile branch December 9, 2022 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/control-plane Control plane related kind/bug Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants