Skip to content

Commit

Permalink
docs: add config api state to versioned docs and clarify prefix and s…
Browse files Browse the repository at this point in the history
…uffix flags

Signed-off-by: Xander Grzywinski <xandergrzyw@gmail.com>
  • Loading branch information
salaxander committed Jul 21, 2023
1 parent d007c7b commit 3857fe3
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 3 deletions.
4 changes: 1 addition & 3 deletions website/docs/exempt-namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ If it becomes necessary to exempt a namespace from Gatekeeper webhook entirely (
3. Add the `admission.gatekeeper.sh/ignore` label to the namespace. The value attached
to the label is ignored, so it can be used to annotate the reason for the exemption.

Similarly, you can also exempt entire groups of namespaces using the `--exempt-namespace-prefix` and `--exempt-namespace-suffix` flags.

As an example, if you wanted to exempt all namespaces ending with `system` such as `kube-system`, `gatekeeper-system`, etc. you could set the flag `--exempt-namespace-suffix=-system`
Similarly, you can also enable the exemption of entire groups of namespaces using the `--exempt-namespace-prefix` and `--exempt-namespace-suffix` flags. Using these flags allows the `admission.gatekeeper.sh/ignore` label to be added to any namespace that matches the supplied prefix or suffix.

## Difference between exclusion using config resource and `--exempt-namespace` flag

Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-v3.10.x/exempt-namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ id: exempt-namespaces
title: Exempting Namespaces
---

`Feature State`: The `Config` resource is currently alpha.

## Exempting Namespaces from Gatekeeper using config resource

> The "Config" resource must be named `config` for it to be reconciled by Gatekeeper. Gatekeeper will ignore the resource if you do not name it `config`.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-v3.11.x/exempt-namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ id: exempt-namespaces
title: Exempting Namespaces
---

`Feature State`: The `Config` resource is currently alpha.

## Exempting Namespaces from Gatekeeper using config resource

> The "Config" resource must be named `config` for it to be reconciled by Gatekeeper. Gatekeeper will ignore the resource if you do not name it `config`.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-v3.12.x/exempt-namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ id: exempt-namespaces
title: Exempting Namespaces
---

`Feature State`: The `Config` resource is currently alpha.

## Exempting Namespaces from Gatekeeper using config resource

> The "Config" resource must be named `config` for it to be reconciled by Gatekeeper. Gatekeeper will ignore the resource if you do not name it `config`.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-v3.6.x/exempt-namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ id: exempt-namespaces
title: Exempting Namespaces
---

`Feature State`: The `Config` resource is currently alpha.

## Exempting Namespaces from Gatekeeper using config resource

> The "Config" resource must be named `config` for it to be reconciled by Gatekeeper. Gatekeeper will ignore the resource if you do not name it `config`.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-v3.7.x/exempt-namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ id: exempt-namespaces
title: Exempting Namespaces
---

`Feature State`: The `Config` resource is currently alpha.

## Exempting Namespaces from Gatekeeper using config resource

> The "Config" resource must be named `config` for it to be reconciled by Gatekeeper. Gatekeeper will ignore the resource if you do not name it `config`.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-v3.8.x/exempt-namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ id: exempt-namespaces
title: Exempting Namespaces
---

`Feature State`: The `Config` resource is currently alpha.

## Exempting Namespaces from Gatekeeper using config resource

> The "Config" resource must be named `config` for it to be reconciled by Gatekeeper. Gatekeeper will ignore the resource if you do not name it `config`.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-v3.9.x/exempt-namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ id: exempt-namespaces
title: Exempting Namespaces
---

`Feature State`: The `Config` resource is currently alpha.

## Exempting Namespaces from Gatekeeper using config resource

> The "Config" resource must be named `config` for it to be reconciled by Gatekeeper. Gatekeeper will ignore the resource if you do not name it `config`.
Expand Down

0 comments on commit 3857fe3

Please sign in to comment.