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

[release-1.2] Cherry pick ControllerConfig and Lock fixes #2344

Merged
merged 6 commits into from Jun 2, 2021

Conversation

hasheddan
Copy link
Member

Description of your changes

Cherry picks commits from #2340 #2331 #2321. Does not include #2328 as, though it was documented in the design doc, I am still considering it a feature.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Each of these was tested in their respective PRs and on master, and overall are fairly non-controversial bug fixes.

Updates dependency resolver controller to remove finalizer on lock and
exit early without requeue if the lock package list is empty. This
allows for cleanup of the lock when uninstalling Crossplane after all
packages have already been uninstalled.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
(cherry picked from commit c60b6de)
The dependency resolver controller should only attempt resolution when
the lock has packages entries.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
(cherry picked from commit d93c096)
Removes the step from uninstalling Crossplane documentation where
finalizers must be removed from the Lock before CRDs are deleted.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
(cherry picked from commit 8e91cb4)
Updates revision controllers to create the lock if it does not exist
when resolving dependencies. If a package revision is inactive it will
not create the lock as its only purpose would be to remove itself from
it. If a package opts out of dependency management it will not create
the lock as it does not attempt to consider dependencies.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
(cherry picked from commit 0f5d56d)
In scenarios where the lock does not exist the revision should attempt
to create it unless it is inactive.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
(cherry picked from commit fa8d6f3)
Currently the ControllerConfig API supports setting the imagePullPolicy
for the Controller Deployment, but it is not being honored when
constructing the Deployment. This updates to honor it.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
(cherry picked from commit ac693fe)
@hasheddan hasheddan requested review from negz, jbw976 and muvaf June 2, 2021 19:14
@hasheddan hasheddan merged commit 913172e into crossplane:release-1.2 Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants