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 default values to the webhook configuration #2

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Conversation

puffitos
Copy link
Contributor

Motivation

Same as in the eumel8/cosignwebhook#64 - using GitOps agents who rely heavily on helm (like Rancher's fleet) creates a discrepancy between the created validatingwebhookconfiguration of a cluster and the expected manifest, as rendered via the helm templating engine.

Since a couple of fields are missing, the monitored GitOps resource is never reconciled, as it's always in a modified state.

This PR adds the "missing" fields, which are sensible defaults.

Tests done

Runs like this in 30+ k8s clusters in our internal CaaS plattform :)

Impact

Updating will unfortunately cause a redeployment of the webhook server. Other than that, nothing major happened,

Copy link
Owner

@eumel8 eumel8 left a comment

Choose a reason for hiding this comment

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

LGTM

@eumel8 eumel8 merged commit 1cbb2ff into eumel8:main Nov 28, 2024
1 check 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.

2 participants