-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validating webhook controller for blueprint resource (#1213)
* Add val webhook controller for blueprint resources This commit adds go code to add a webhook server that does basics check on the bluerint resources when they are created. We are doing the only checks that we introduced as part of #1187 * Update helm to create service and validating webhook configuration * Remove unnecesary code * Refactor error messages * Run webhook server only if webhook certs are mounted in the pod In the cases if we dont want to run the webhook server in kanister controller pod but just want to have the `healthz` endpoint and prom endpoint in that case if we don't mount the webhook certs we will just be running the standard http server and the webhook server. * Rebase with master, resolve conflict * Address review comments, minor refactor * Address review comments * Resolve conflicts
- Loading branch information
1 parent
74fb4ae
commit 09b6ebb
Showing
10 changed files
with
262 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.