Description:
kubectl apply -f https://raw.githubusercontent.com/percona/percona-server-mongodb-operator/v1.14.0/deploy/crd.yaml
customresourcedefinition.apiextensions.k8s.io/perconaservermongodbbackups.psmdb.percona.com configured
customresourcedefinition.apiextensions.k8s.io/perconaservermongodbrestores.psmdb.percona.com configured
Warning: resource customresourcedefinitions/perconaservermongodbs.psmdb.percona.com is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
The CustomResourceDefinition “perconaservermongodbs.psmdb.percona.com” is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Version:
Operator 1.14.0
Expected Result:
No errors
Actual Result:
See description
Additional Information:
If using --server-side, there will be no errors. But if applying cr.yaml then you get this issue
error: error validating “generated-luz-mongodb-01-cluster.yaml”: error validating data: ValidationError(PerconaServerMongoDB.spec.replsets[0].expose): unknown field “clusterServiceDNSMode” in com.percona.psmdb.v1.PerconaServerMongoDB.spec.replsets.expose; if you choose to ignore these errors, turn validation off with --validate=false
which needs to be fixed with --validate=false
which then can cause other issues, because validation is turned off.
=> pls make the crd.yaml pass the size check !