Commit 70a891c
feat(stackable-webhook)!: Add support for mutating webhooks (#1119)
* feat!: Add support for mutating webhooks
* Add state to the mutating webhook
* Improve docs
* Add some docs
* refactor: Rename traits and structs
* Add some docs
* More docs
* Apply suggestions from code review
Co-authored-by: Nick <[email protected]>
* Update crates/stackable-webhook/src/lib.rs
Co-authored-by: Nick <[email protected]>
* formatiing
* Rename operator to webhook
* Tkae the WebhookServerOptions by reference
* Remove leftover code
* Update crates/stackable-webhook/src/servers/mutating_webhook.rs
Co-authored-by: Nick <[email protected]>
* Move tracing layer to after routes
* Improve tracing
* Rename servers mdodule to webhooks
* Add some docs
* Add some docs
* changelog
* changelog
* Update crates/stackable-webhook/src/lib.rs
Co-authored-by: Nick <[email protected]>
* Update crates/stackable-webhook/src/lib.rs
Co-authored-by: Nick <[email protected]>
* fix doc tests
* Improve shutdown message
* Add validating webhook as well
* refactor: Avoid Box
* refactor: Move out into get_webhook_client_config
* Revert "refactor: Avoid Box"
This reverts commit bea8241.
It actually caused lifetime problems in commons-operator
* Remove unneeded loop
* Move new Self{} into variable
* Only clone the handler
* calculated -> determined
* Clarify only operator touch MWCs
* Add Webhhok::ignore_certificate_rotation trait function
* docs: Add some field level docs
* Remove validating webhook for now
It's too much copy/paste from mutating, we need to refactor at a later
point
* trace::debug route registration
* Add some docs for conversion webhook
* Remove unneeded #[allow(unreachable_code)]
* Address review feedback in offline session
* clippy
* More tracing fields
* Rename to create_webhook_client_config
* docs docs docs
* Move _resource down
* Return early if no webhooks are registered
* Fix kube dependency in Cargo.toml
---------
Co-authored-by: Nick <[email protected]>
Co-authored-by: Techassi <[email protected]>1 parent ceb3d3c commit 70a891c
File tree
13 files changed
+757
-865
lines changed- crates/stackable-webhook
- src
- servers
- tls
- webhooks
13 files changed
+757
-865
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
7 | 18 | | |
8 | 19 | | |
9 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments