Skip to content

Commit

Permalink
Remove requirement for eventHook in automation
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaiducek authored and openshift-merge-bot[bot] committed Oct 3, 2024
1 parent 706f577 commit 95cde2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/v1beta1/policyautomation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type PolicyAutomationSpec struct {
// "noncompliant".
//
// +kubebuilder:validation:Enum={noncompliant}
// +kubebuilder:validation:Required
// +kubebuilder:default=noncompliant
EventHook string `json:"eventHook,omitempty"`

// RescanAfter is reserved for future use and should not be set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ spec:
minimum: 0
type: integer
eventHook:
default: noncompliant
description: >-
EventHook specifies the compliance state that initiates automation. This must be set to
"noncompliant".
Expand All @@ -116,7 +117,6 @@ spec:
type: string
required:
- automationDef
- eventHook
- mode
- policyRef
type: object
Expand Down

0 comments on commit 95cde2e

Please sign in to comment.