GoogleCloudPlatform / flink-on-k8s-operator

[DEPRECATED] Kubernetes operator for managing the lifecycle of Apache Flink and Beam applications.
Apache License 2.0
658 stars 266 forks source link

The CRD "flinkclusters.flinkoperator.k8s.io" is invalid #388

Closed jacobhjkim closed 3 years ago

jacobhjkim commented 3 years ago

I got the following error message upon installing Flink operator's CRD..

❯ k apply -f flink-operator/templates/flink-cluster-crd.yaml
The CustomResourceDefinition "flinkclusters.flinkoperator.k8s.io" is invalid: 
* spec.validation.openAPIV3Schema.properties[spec].properties[job].properties[initContainers].items.properties[ports].items.properties[protocol].default: Required value: this property is in x-kubernetes-list-map-keys, so it must have a default or be a required property
* spec.validation.openAPIV3Schema.properties[spec].properties[jobManager].properties[sidecars].items.properties[ports].items.properties[protocol].default: Required value: this property is in x-kubernetes-list-map-keys, so it must have a default or be a required property
* spec.validation.openAPIV3Schema.properties[spec].properties[jobManager].properties[initContainers].items.properties[ports].items.properties[protocol].default: Required value: this property is in x-kubernetes-list-map-keys, so it must have a default or be a required property
* spec.validation.openAPIV3Schema.properties[spec].properties[taskManager].properties[initContainers].items.properties[ports].items.properties[protocol].default: Required value: this property is in x-kubernetes-list-map-keys, so it must have a default or be a required property
* spec.validation.openAPIV3Schema.properties[spec].properties[taskManager].properties[sidecars].items.properties[ports].items.properties[protocol].default: Required value: this property is in x-kubernetes-list-map-keys, so it must have a default or be a required property

Kubernetes Server Version: v1.18.9-eks-d1db3c

functicons commented 3 years ago

This is a known issue for the operator on Kubernetes 1.18, workaround.

jacobhjkim commented 3 years ago

Thanks

jacobhjkim commented 3 years ago

duplicate of https://github.com/GoogleCloudPlatform/flink-on-k8s-operator/issues/266