From 08196f9b7148fdb0e2f62da8256512cad15f4027 Mon Sep 17 00:00:00 2001 From: Martin Alexander <134301260+malexander2012@users.noreply.github.com> Date: Thu, 30 Jan 2025 09:22:25 -0600 Subject: [PATCH] docs: Add connect to operations (#3785) Signed-off-by: Martin Alexander Co-authored-by: Rita Zhang Co-authored-by: Jaydip Gabani --- website/docs/customize-admission.md | 13 +++++++++++++ .../version-v3.17.x/customize-admission.md | 13 +++++++++++++ .../version-v3.18.x/customize-admission.md | 13 +++++++++++++ 3 files changed, 39 insertions(+) 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 +```