Skip to content

Commit 87d6e5e

Browse files
committed
Add DV markers that are beta in 1.35
1 parent 502783c commit 87d6e5e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pkg/markers/markers.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,40 @@ const (
166166

167167
// K8sRequiredMarker is the marker that indicates that a field is required in k8s declarative validation.
168168
K8sRequiredMarker = "k8s:required"
169+
170+
// K8sFormatMarker is the marker that indicates that a field has a format in k8s declarative validation.
171+
K8sFormatMarker = "k8s:format"
172+
173+
// K8sMinLengthMarker is the marker that indicates that a field has a minimum length in k8s declarative validation.
174+
K8sMinLengthMarker = "k8s:minLength"
175+
176+
// K8sMaxLengthMarker is the marker that indicates that a field has a maximum length in k8s declarative validation.
177+
K8sMaxLengthMarker = "k8s:maxLength"
178+
179+
// K8sMinItemsMarker is the marker that indicates that a field has a minimum number of items in k8s declarative validation.
180+
K8sMinItemsMarker = "k8s:minItems"
181+
182+
// K8sMaxItemsMarker is the marker that indicates that a field has a maximum number of items in k8s declarative validation.
183+
K8sMaxItemsMarker = "k8s:maxItems"
184+
185+
// K8sEnumMarker is the marker that indicates that a field has an enum in k8s declarative validation.
186+
K8sEnumMarker = "k8s:enum"
187+
188+
// K8sMinimumMarker is the marker that indicates that a field has a minimum value in k8s declarative validation.
189+
K8sMinimumMarker = "k8s:minimum"
190+
191+
// K8sMaximumMarker is the marker that indicates that a field has a maximum value in k8s declarative validation.
192+
K8sMaximumMarker = "k8s:maximum"
193+
194+
// K8sExclusiveMaximumMarker is the marker that indicates that a field has an exclusive maximum value in k8s declarative validation.
195+
K8sExclusiveMaximumMarker = "k8s:exclusiveMaximum"
196+
197+
// K8sExclusiveMinimumMarker is the marker that indicates that a field has an exclusive minimum value in k8s declarative validation.
198+
K8sExclusiveMinimumMarker = "k8s:exclusiveMinimum"
199+
200+
// K8sListTypeMarker is the marker that indicates that a field is a list in k8s declarative validation.
201+
K8sListTypeMarker = "k8s:listType"
202+
203+
// K8sListMapKeyMarker is the marker that indicates that a field is a map in k8s declarative validation.
204+
K8sListMapKeyMarker = "k8s:listMapKey"
169205
)

0 commit comments

Comments
 (0)