Files
cozystack/packages/apps/nats/Makefile
Arsolitt d9a11a2c04 refactor(nats): drop null from tls.enabled schema, use kindIs invalid pattern
Remove the jq post-processing step from the Makefile that was patching
tls.enabled to ["boolean","null"]. The plain "type":"boolean" form that
cozyvalues-gen emits is correct: cozystack-api unmarshals openAPISchema into
apiextv1.JSONSchemaProps where Type is a single string, so an array type
silently zeroes out specSchema and disables server-side defaulting.

Tri-state semantics (nil / true / false) are preserved entirely on the
Helm side via kindIs "invalid" guards in the templates.

Signed-off-by: Arsolitt <arsolitt@gmail.com>
2026-05-27 11:19:44 +03:00

9 lines
217 B
Makefile

include ../../../hack/package.mk
generate:
cozyvalues-gen -m 'nats' -v values.yaml -s values.schema.json -r README.md -g ../../../api/apps/v1alpha1/nats/types.go
../../../hack/update-crd.sh
test:
helm unittest .