nats-operator icon indicating copy to clipboard operation
nats-operator copied to clipboard

Schema validation

Open wallyqs opened this issue 5 years ago • 2 comments

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

wallyqs avatar Jun 18 '19 21:06 wallyqs

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 avatar May 22 '20 18:05 philpennock

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

philpennock avatar May 22 '20 18:05 philpennock