@@ -376,6 +376,7 @@ spec:
376376 properties :
377377 name :
378378 description : name is the resource name in the PC
379+ minLength : 1
379380 type : string
380381 type :
381382 description : Type is the identifier type to use for this resource.
@@ -385,10 +386,18 @@ spec:
385386 type : string
386387 uuid :
387388 description : uuid is the UUID of the resource in the PC.
389+ format : uuid
390+ maxLength : 36
391+ minLength : 36
388392 type : string
389393 required :
390394 - type
391395 type : object
396+ x-kubernetes-validations :
397+ - message : ' '' name'' must be set when type is '' name'' , and forbidden otherwise'
398+ rule : ' self.type == '' name'' ? has(self.name) : !has(self.name)'
399+ - message : ' '' uuid'' must be set when type is '' uuid'' , and forbidden otherwise'
400+ rule : ' self.type == '' uuid'' ? has(self.uuid) && self.uuid.contains('' -'' ) : !has(self.uuid)'
392401 gpus :
393402 description : List of GPU devices that need to be added to the machines.
394403 items :
@@ -418,6 +427,7 @@ spec:
418427 properties :
419428 name :
420429 description : name is the resource name in the PC
430+ minLength : 1
421431 type : string
422432 type :
423433 description : Type is the identifier type to use for this resource.
@@ -427,10 +437,18 @@ spec:
427437 type : string
428438 uuid :
429439 description : uuid is the UUID of the resource in the PC.
440+ format : uuid
441+ maxLength : 36
442+ minLength : 36
430443 type : string
431444 required :
432445 - type
433446 type : object
447+ x-kubernetes-validations :
448+ - message : ' '' name'' must be set when type is '' name'' , and forbidden otherwise'
449+ rule : ' self.type == '' name'' ? has(self.name) : !has(self.name)'
450+ - message : ' '' uuid'' must be set when type is '' uuid'' , and forbidden otherwise'
451+ rule : ' self.type == '' uuid'' ? has(self.uuid) && self.uuid.contains('' -'' ) : !has(self.uuid)'
434452 imageLookup :
435453 description : imageLookup is a container that holds how to look up vm images for the cluster.
436454 properties :
@@ -470,6 +488,7 @@ spec:
470488 properties :
471489 name :
472490 description : name is the resource name in the PC
491+ minLength : 1
473492 type : string
474493 type :
475494 description : Type is the identifier type to use for this resource.
@@ -479,10 +498,18 @@ spec:
479498 type : string
480499 uuid :
481500 description : uuid is the UUID of the resource in the PC.
501+ format : uuid
502+ maxLength : 36
503+ minLength : 36
482504 type : string
483505 required :
484506 - type
485507 type : object
508+ x-kubernetes-validations :
509+ - message : ' '' name'' must be set when type is '' name'' , and forbidden otherwise'
510+ rule : ' self.type == '' name'' ? has(self.name) : !has(self.name)'
511+ - message : ' '' uuid'' must be set when type is '' uuid'' , and forbidden otherwise'
512+ rule : ' self.type == '' uuid'' ? has(self.uuid) && self.uuid.contains('' -'' ) : !has(self.uuid)'
486513 subnets :
487514 description : |-
488515 subnet identifies the network subnet to use for the machine.
@@ -492,6 +519,7 @@ spec:
492519 properties :
493520 name :
494521 description : name is the resource name in the PC
522+ minLength : 1
495523 type : string
496524 type :
497525 description : Type is the identifier type to use for this resource.
@@ -501,10 +529,18 @@ spec:
501529 type : string
502530 uuid :
503531 description : uuid is the UUID of the resource in the PC.
532+ format : uuid
533+ maxLength : 36
534+ minLength : 36
504535 type : string
505536 required :
506537 - type
507538 type : object
539+ x-kubernetes-validations :
540+ - message : ' '' name'' must be set when type is '' name'' , and forbidden otherwise'
541+ rule : ' self.type == '' name'' ? has(self.name) : !has(self.name)'
542+ - message : ' '' uuid'' must be set when type is '' uuid'' , and forbidden otherwise'
543+ rule : ' self.type == '' uuid'' ? has(self.uuid) && self.uuid.contains('' -'' ) : !has(self.uuid)'
508544 maxItems : 16
509545 type : array
510546 systemDiskSize :
0 commit comments