[go: up one dir, main page]

Skip to content

Commit

Permalink
chore(helm): omit normal events by default (kyverno#9493)
Browse files Browse the repository at this point in the history
* chore(helm): omit normal events by default

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(tests): fix tests related to events

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

---------

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
  • Loading branch information
KhaledEmaraDev authored Jan 24, 2024
1 parent 0b7a6a1 commit 3ef598c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/kyverno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ The chart values are organised per component.
| features.generateValidatingAdmissionPolicy.enabled | bool | `false` | Enables the feature |
| features.logging.format | string | `"text"` | Logging format |
| features.logging.verbosity | int | `2` | Logging verbosity |
| features.omitEvents.eventTypes | list | `[]` | Events which should not be emitted (possible values `PolicyViolation`, `PolicyApplied`, `PolicyError`, and `PolicySkipped`) |
| features.omitEvents.eventTypes | list | `["PolicyApplied","PolicySkipped"]` | Events which should not be emitted (possible values `PolicyViolation`, `PolicyApplied`, `PolicyError`, and `PolicySkipped`) |
| features.policyExceptions.enabled | bool | `true` | Enables the feature |
| features.policyExceptions.namespace | string | `""` | Restrict policy exceptions to a single namespace |
| features.protectManagedResources.enabled | bool | `false` | Enables the feature |
Expand Down
6 changes: 3 additions & 3 deletions charts/kyverno/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,11 @@ features:
verbosity: 2
omitEvents:
# -- Events which should not be emitted (possible values `PolicyViolation`, `PolicyApplied`, `PolicyError`, and `PolicySkipped`)
eventTypes: []
eventTypes:
- PolicyApplied
- PolicySkipped
# - PolicyViolation
# - PolicyApplied
# - PolicyError
# - PolicySkipped
policyExceptions:
# -- Enables the feature
enabled: true
Expand Down
3 changes: 3 additions & 0 deletions config/install-latest-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50395,6 +50395,7 @@ spec:
- --generateValidatingAdmissionPolicy=false
- --loggingFormat=text
- --v=2
- --omit-events=PolicyApplied,PolicySkipped
- --enablePolicyException=true
- --protectManagedResources=false
- --allowInsecureRegistry=false
Expand Down Expand Up @@ -50545,6 +50546,7 @@ spec:
- --enableDeferredLoading=true
- --loggingFormat=text
- --v=2
- --omit-events=PolicyApplied,PolicySkipped
- --enablePolicyException=true

env:
Expand Down Expand Up @@ -50790,6 +50792,7 @@ spec:
- --enableDeferredLoading=true
- --loggingFormat=text
- --v=2
- --omit-events=PolicyApplied,PolicySkipped
- --enablePolicyException=true
- --reportsChunkSize=1000
- --allowInsecureRegistry=false
Expand Down
2 changes: 2 additions & 0 deletions scripts/config/standard/kyverno.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
features:
policyExceptions:
enabled: true
omitEvents:
eventTypes: []

backgroundController:
rbac:
Expand Down

0 comments on commit 3ef598c

Please sign in to comment.