nats-io / nats-operator

NATS Operator
https://nats-io.github.io/k8s/
Apache License 2.0
575 stars 111 forks source link

Schema validation #197

Open wallyqs opened 5 years ago

wallyqs commented 5 years ago

Look into a way to be able to detect for wrong configuration fields that may be part of the NatsCluster manifest.

philpennock commented 4 years ago

I think this would also fix what I was about to open an issue for: kubectl explain nats is empty.

CRD needs to gain spec.validation.openAPIV3Schema

philpennock commented 4 years ago

Oops, that's the path in apiextensions.k8s.io/v1beta1, it moves in apiextensions.k8s.io/v1 to spec.versions[*].schema.openAPIV3Schema per https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ ; checking, the v1 promotion came with Kubernetes 1.16