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

updated controller-runtime #373

Merged
merged 5 commits into from
Oct 13, 2023
Merged

updated controller-runtime #373

merged 5 commits into from
Oct 13, 2023

Conversation

bitscuit
Copy link
Member

@bitscuit bitscuit commented Oct 5, 2023

  • removed controller-filtered cache

fixed make bundle not generating alm-examples because the sample did not match the apiVersion

needed to comment out the removing secret and apiservice temporarily to avoid caching those resources

How to test

Not much to do, just ensure it can deploy the operands successfully

- removed controller-filtered cache

fixed make bundle not generating alm-examples because the sample did not
match the apiVersion

needed to comment out the removing secret and apiservice temporarily to
avoid caching those resources

Signed-off-by: Henry H Li <henry.h.li@ibm.com>
- APIService was something created before the cert-manager v1 migration
- will never exist in fresh install
- in upgrade scenarios, users must be running at least 3.19.9, which
  means APIService would have been removed already

Signed-off-by: Henry H Li <henry.h.li@ibm.com>
- because the old code was only concerned about checking if the pre v1
  cert-manager annotation was there, but what actually matters is if the
v1 annotation exists or not
- by deleting the old webhook secret if it does not contain the correct
  annotation (cert-manager.io/allow-direct-injection)
- also not setting up the cache for secrets at all to avoid overhead and
  directly reading from API server since this is infrequently invoked
code

Signed-off-by: Henry H Li <henry.h.li@ibm.com>
Signed-off-by: Henry H Li <henry.h.li@ibm.com>
Signed-off-by: Henry H Li <henry.h.li@ibm.com>
@bluzarraga
Copy link
Member

bluzarraga commented Oct 13, 2023

Built image locally, deployed to my 4.2 environment, scaled it down, deleted operands, scaled it up, operands redeployed as expected. Going to approve and merge

@bluzarraga
Copy link
Member

/lgtm

@ibm-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bitscuit, bluzarraga

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:
  • OWNERS [bitscuit,bluzarraga]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ibm-ci-bot ibm-ci-bot merged commit 687fe08 into IBM:master Oct 13, 2023
5 checks passed
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.

None yet

3 participants