diff --git a/website/docs/customize-admission.md b/website/docs/customize-admission.md index 9476559c9d3..20326c3e5dd 100644 --- a/website/docs/customize-admission.md +++ b/website/docs/customize-admission.md @@ -76,3 +76,16 @@ To enable Delete operations for the `validation.gatekeeper.sh` admission webhook ``` You can now check for deletes. + +### How to Enable Validation of Connect Operations + +This operation allows gatekeeper to review and validate `kubectl exec` commands via the validation webhook. + +To enable Connect operations for the `validation.gatekeeper.sh` admission webhook, add "CONNECT" to the list of operations in the `gatekeeper-validating-webhook-configuration`. + +```yaml + operations: + - CREATE + - UPDATE + - CONNECT +``` diff --git a/website/versioned_docs/version-v3.17.x/customize-admission.md b/website/versioned_docs/version-v3.17.x/customize-admission.md index 9476559c9d3..20326c3e5dd 100644 --- a/website/versioned_docs/version-v3.17.x/customize-admission.md +++ b/website/versioned_docs/version-v3.17.x/customize-admission.md @@ -76,3 +76,16 @@ To enable Delete operations for the `validation.gatekeeper.sh` admission webhook ``` You can now check for deletes. + +### How to Enable Validation of Connect Operations + +This operation allows gatekeeper to review and validate `kubectl exec` commands via the validation webhook. + +To enable Connect operations for the `validation.gatekeeper.sh` admission webhook, add "CONNECT" to the list of operations in the `gatekeeper-validating-webhook-configuration`. + +```yaml + operations: + - CREATE + - UPDATE + - CONNECT +``` diff --git a/website/versioned_docs/version-v3.18.x/customize-admission.md b/website/versioned_docs/version-v3.18.x/customize-admission.md index 9476559c9d3..20326c3e5dd 100644 --- a/website/versioned_docs/version-v3.18.x/customize-admission.md +++ b/website/versioned_docs/version-v3.18.x/customize-admission.md @@ -76,3 +76,16 @@ To enable Delete operations for the `validation.gatekeeper.sh` admission webhook ``` You can now check for deletes. + +### How to Enable Validation of Connect Operations + +This operation allows gatekeeper to review and validate `kubectl exec` commands via the validation webhook. + +To enable Connect operations for the `validation.gatekeeper.sh` admission webhook, add "CONNECT" to the list of operations in the `gatekeeper-validating-webhook-configuration`. + +```yaml + operations: + - CREATE + - UPDATE + - CONNECT +```