Skip to content

Commit 2fe25e7

Browse files
committed
Fix required value errors for anyOf types
1 parent f66da8e commit 2fe25e7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

deploy/crd.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
description: "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images"
3535
type: string
3636
imagePullSecrets:
37-
description: "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"
37+
description: "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod"
3838
type: array
3939
items:
4040
description: "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace."
@@ -184,6 +184,7 @@ spec:
184184
- type: integer
185185
- type: string
186186
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
187+
x-kubernetes-int-or-string: true
187188
description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/"
188189
type: object
189190
requests:
@@ -192,6 +193,7 @@ spec:
192193
- type: integer
193194
- type: string
194195
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
196+
x-kubernetes-int-or-string: true
195197
description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/"
196198
type: object
197199
type: object
@@ -546,6 +548,7 @@ spec:
546548
for services with clusterIP=None, and should be
547549
omitted or set equal to the ''port'' field. More
548550
info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service'
551+
x-kubernetes-int-or-string: true
549552
required:
550553
- port
551554
type: object
@@ -647,6 +650,7 @@ spec:
647650
- type: integer
648651
- type: string
649652
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
653+
x-kubernetes-int-or-string: true
650654
description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/"
651655
type: object
652656
requests:
@@ -655,6 +659,7 @@ spec:
655659
- type: integer
656660
- type: string
657661
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
662+
x-kubernetes-int-or-string: true
658663
description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/"
659664
type: object
660665
type: object

0 commit comments

Comments
 (0)