Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,14 @@ spec:
type: string
type: array
operations:
enum:
- '*'
- CREATE
- DELETE
- UPDATE
- CONNECT
items:
description: OperationType specifies an operation for a request.
enum:
- '*'
- CREATE
- DELETE
- UPDATE
- CONNECT
type: string
type: array
rego:
Expand Down
12 changes: 6 additions & 6 deletions constraint/deploy/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ spec:
type: string
type: array
operations:
enum:
- '*'
- CREATE
- DELETE
- UPDATE
- CONNECT
items:
description: OperationType specifies an operation for a request.
enum:
- '*'
- CREATE
- DELETE
- UPDATE
- CONNECT
type: string
type: array
rego:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type Target struct {
// +listMapKey=engine
Code []Code `json:"code,omitempty"`

// +kubebuilder:validation:Enum="*";CREATE;DELETE;UPDATE;CONNECT
// +kubebuilder:validation:items:Enum=*;CREATE;DELETE;UPDATE;CONNECT
Operations []admissionv1.OperationType `json:"operations,omitempty"`
}

Expand Down
Loading