|
41 | 41 | spec:
|
42 | 42 | description: CronJobSpec defines the desired state of CronJob
|
43 | 43 | properties:
|
| 44 | + aliasFromPackage: |
| 45 | + description: |- |
| 46 | + This tests that alias imported from a package is handled correctly. The |
| 47 | + corev1.IPFamilyPolicyType is just reused since it's available from |
| 48 | + imported package. We can create our own in a separate package if needed. |
| 49 | + type: string |
44 | 50 | array:
|
45 | 51 | description: Checks that fixed-length arrays work
|
46 | 52 | items:
|
@@ -184,13 +190,13 @@ spec:
|
184 | 190 | x-kubernetes-preserve-unknown-fields: true
|
185 | 191 | enumSlice:
|
186 | 192 | description: This tests slice item validation with enum
|
187 |
| - type: array |
188 | 193 | items:
|
189 |
| - type: integer |
190 | 194 | enum:
|
191 | 195 | - 0
|
192 | 196 | - 1
|
193 | 197 | - 3
|
| 198 | + type: integer |
| 199 | + type: array |
194 | 200 | explicitlyOptionalKubebuilder:
|
195 | 201 | description: This tests explicitly optional kubebuilder fields
|
196 | 202 | type: string
|
@@ -228,6 +234,10 @@ spec:
|
228 | 234 | Test that we can add a forbidden field using XValidation Reason and FieldPath.
|
229 | 235 | The validation is applied to the spec struct itself and not the field.
|
230 | 236 | type: integer
|
| 237 | + fromEmbedded: |
| 238 | + description: FromEmbedded is a field from the embedded struct that |
| 239 | + was used through an alias type. |
| 240 | + type: string |
231 | 241 | hosts:
|
232 | 242 | description: This tests string slice item validation.
|
233 | 243 | items:
|
@@ -8984,22 +8994,18 @@ spec:
|
8984 | 8994 | time for any reason. Missed jobs executions will be counted as failed ones.
|
8985 | 8995 | format: int64
|
8986 | 8996 | type: integer
|
8987 |
| - aliasFromPackage: |
8988 |
| - description: |- |
8989 |
| - This tests that alias imported from a package is handled correctly. The |
8990 |
| - corev1.IPFamilyPolicyType is just reused since it's available from |
8991 |
| - imported package. We can create our own in a separate package if needed. |
8992 |
| - type: string |
8993 | 8997 | stringAlias:
|
8994 | 8998 | description: This tests that string alias is handled correctly.
|
8995 | 8999 | type: string
|
8996 | 9000 | stringAliasAddedValidation:
|
8997 |
| - description: This tests that validation on a string alias type is handled correctly. |
| 9001 | + description: This tests that validation on a string alias type is |
| 9002 | + handled correctly. |
8998 | 9003 | maxLength: 255
|
8999 | 9004 | minLength: 1
|
9000 | 9005 | type: string
|
9001 | 9006 | stringAliasAlreadyValidated:
|
9002 |
| - description: This tests that validation on a the string alias type itself is handled correctly. |
| 9007 | + description: This tests that validation on a the string alias type |
| 9008 | + itself is handled correctly. |
9003 | 9009 | maxLength: 255
|
9004 | 9010 | minLength: 1
|
9005 | 9011 | type: string
|
|
0 commit comments