Skip to content

Commit e0ccfba

Browse files
committed
docs
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
1 parent 17e7624 commit e0ccfba

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

docs/generated/templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ KubeLinter supports the following templates:
7878
- description: Check is a CEL expression used to validate the subject and objects.
7979
name: check
8080
negationAllowed: true
81-
regexAllowed: true
82-
required: false
81+
regexAllowed: false
82+
required: true
8383
type: string
8484
```
8585

pkg/templates/cel/internal/params/gen-params.go

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/templates/cel/internal/params/params.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ package params
33
// Params represents the params accepted by this template.
44
type Params struct {
55
// Check is a CEL expression used to validate the subject and objects.
6+
// +required
7+
// +noregex
68
Check string
79
}

0 commit comments

Comments
 (0)