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

certificate: Reconcile only created secrets #60

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

qinqon
Copy link
Owner

@qinqon qinqon commented Dec 1, 2021

If two cert-managers are running at a cluster they will each other
secrets since the kube-admission-webhook annotation is there. This
change filter the secrets and only reconcile the ones with the CA cert
name from webhook config and the services owned by them.

Signed-off-by: Quique Llorente [email protected]

@qinqon qinqon requested a review from RamLavi December 1, 2021 11:06
Copy link
Collaborator

@RamLavi RamLavi left a comment

Choose a reason for hiding this comment

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

looks good.
Suggested to move to human readable functions for better readability, but not a must.

pkg/certificate/controller.go Outdated Show resolved Hide resolved
pkg/certificate/controller.go Show resolved Hide resolved
If two cert-managers are running at a cluster they will each other
secrets since the kube-admission-webhook annotation is there. This
change filter the secrets and only reconcile the ones with the CA cert
name from webhook config and the services owned by them.

Signed-off-by: Quique Llorente <[email protected]>
@qinqon qinqon force-pushed the reconcile-only-created-secrets branch from cc17695 to fd7f2c2 Compare December 2, 2021 11:27
Copy link
Collaborator

@RamLavi RamLavi left a comment

Choose a reason for hiding this comment

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

/lgtm

@qinqon qinqon merged commit 63944db into master Dec 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.

2 participants