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

Add an optional "fieldOwner" field to set when injecting the caBundle #118

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

fedepaol
Copy link
Contributor

When using the cert-rotator with CI/CD systems such as argoCD, the injection of the caBundle makes the cd system to reconcile it again. By setting the field owner, we instruct the cd system that the field is managed by an external component so it will ignore those updates.

This was raised in MetalLB in metallb/metallb#1681

When using the cert-rotator with CI/CD systems such as argoCD, the
injection of the caBundle makes the cd system to reconcile it again. By
setting the field owner, we instruct the cd system that the field
is managed by an external component so it will ignore those updates.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
@codecov-commenter
Copy link

codecov-commenter commented Aug 22, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (c2f5ff7) 56.33% compared to head (dc98955) 56.71%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
+ Coverage   56.33%   56.71%   +0.38%     
==========================================
  Files           1        1              
  Lines         568      573       +5     
==========================================
+ Hits          320      325       +5     
  Misses        183      183              
  Partials       65       65              
Flag Coverage Δ
unittests 56.71% <83.33%> (+0.38%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pkg/rotator/rotator.go 56.71% <83.33%> (+0.38%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM! Looks like we're getting server-side-apply friendly?

@fedepaol
Copy link
Contributor Author

LGTM! Looks like we're getting server-side-apply friendly?

Yep, I am not exactly sure on how it works. My first attempt was to convert the apply to patch, but the same option works with apply.

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

thank you! lgtm

@maxsmythe maxsmythe merged commit 01a9f14 into open-policy-agent:master Sep 27, 2023
6 checks passed
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

4 participants