Skip to content

Commit 770899d

Browse files
We removed the duplicate/incorrect marker. The correct // +required marker is being used
1 parent dac0424 commit 770899d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

api/v1/clusterextension_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ type CatalogFilter struct {
211211
//
212212
// [RFC 1123]: https://tools.ietf.org/html/rfc1123
213213
//
214-
// +kubebuilder:validation.Required
215214
// +kubebuilder:validation:MaxLength:=253
216215
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="packageName is immutable"
217216
// +kubebuilder:validation:XValidation:rule="self.matches(\"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$\")",message="packageName must be a valid DNS1123 subdomain. It must contain only lowercase alphanumeric characters, hyphens (-) or periods (.), start and end with an alphanumeric character, and be no longer than 253 characters"

hack/tools/crd-generator/testdata/api/v1/clusterextension_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ type CatalogFilter struct {
176176
//
177177
// [RFC 1123]: https://tools.ietf.org/html/rfc1123
178178
//
179-
// +kubebuilder:validation.Required
180179
// +kubebuilder:validation:MaxLength:=253
181180
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="packageName is immutable"
182181
// +kubebuilder:validation:XValidation:rule="self.matches(\"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$\")",message="packageName must be a valid DNS1123 subdomain. It must contain only lowercase alphanumeric characters, hyphens (-) or periods (.), start and end with an alphanumeric character, and be no longer than 253 characters"

0 commit comments

Comments
 (0)