Drachenfels-GmbH / kubernetes-crio-lxc

Instructions and experiences using kubernetes with crio-lxc
0 stars 0 forks source link

kube-apiserver: error building openapi models for ... as invalid property: anyOf #5

Open r10r opened 3 years ago

r10r commented 3 years ago
E1006 11:43:38.845634       1 customresource_handler.go:668] error building openapi models for felixconfigurations.crd.projectcalico.org: ERROR $root.definitions.org.projectcalico.crd.v1.FelixConfiguration.properties.spec.properties.kubeNodePortRanges.items.<array> has invalid property: anyOf
ERROR $root.definitions.org.projectcalico.crd.v1.FelixConfiguration.properties.spec.properties.natPortRange has invalid property: anyOf
r10r commented 3 years ago

https://github.com/kubernetes/kubernetes/issues/90902#issue-614780820

The message is a no-op, and means server-side apply for that custom resource falls back to "no schema" mode .

r10r commented 3 years ago

calico.yaml

 802               natPortRange:
 803                 anyOf:
 804                 - type: integer
 805                 - type: string
 806                 description: NATPortRange specifies the range of ports that is used
 807                   for port mapping when doing outgoing NAT. When unset the default
 808                   behavior of the network stack is used.
 809                 pattern: ^.*
 810                 x-kubernetes-int-or-string: true