Skip to content

Releases

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 23 Sep 07:50
bfb3a06

Changelog

v1.6.0

Choose a tag to compare

@github-actions github-actions released this 02 Jun 12:06
v1.6.0
bc2a28e

Changelog

v1.5.0

Choose a tag to compare

@lexfrei lexfrei released this 25 May 14:37
v1.5.0
56fefc1

What's Changed

Features

A new ## @immutable flag annotation in values.yaml marks a chart field as immutable-after-creation. cozyvalues-gen lowers it into:

  • a kubebuilder validation marker (+kubebuilder:validation:XValidation:rule="self == oldSelf",message="<field> is immutable") on the generated Go field;
  • an x-kubernetes-validations: [{rule: "self == oldSelf"}] entry on values.schema.json;
  • the same entry on the CRD (via controller-gen passthrough).

Schema-aware consumers — notably the Cozystack UI — render annotated fields read-only on edit forms. The Kubernetes apiserver also enforces the rule on CRDs; on aggregated apiservers without CEL evaluation the annotation is informational until enforcement lands (see cozystack/cozystack#2657).

Diagnostics

The PR also adds a sitewide warning for constraint placement: any constraint annotation (@minimum, @maximum, @pattern, @immutable, …) appearing after the YAML value line of its parent @param/@field still attaches as before (no behaviour change), but cozyvalues-gen prints a warning: line to stderr so the misplacement is observable instead of silent. The warning never fails the build.

Downstream

Full Changelog: v1.4.0...v1.5.0

v1.4.0

Choose a tag to compare

@myasnikovdaniil myasnikovdaniil released this 21 May 06:52
9de5dfc

What's Changed

  • feat: add intOrString type alias for map[string]intOrString annotations by IvanHunters in #25

New Contributors

Full Changelog: v1.3.0...v1.4.0

v1.3.0

Choose a tag to compare

@myasnikovdaniil myasnikovdaniil released this 25 Mar 10:48
af0052b

What's Changed

Full Changelog: v1.2.1...v1.3.0

v1.2.1

Choose a tag to compare

@github-actions github-actions released this 20 Mar 12:00
fa99cdb

Changelog

  • fa99cdb Merge pull request #21 from cozystack/fix-go-generation
  • b4834f1 Fixed codegeneration markers positions

v1.2.0

Choose a tag to compare

@kvaps kvaps released this 16 Mar 09:51
3a0c467

What's Changed

  • Implement ordering for parameters — preserves original parameter order in generated code
  • Fix non-deterministic Go type generation output — stable sorted output across builds
  • Fix empty struct types generation — properly emit empty struct typedefs

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 16 Feb 17:09
v1.1.0
13b97fa

Changelog

  • 13b97fa Merge pull request #18 from lexfrei/feat/nested-dotted-paths
  • cdb9ca6 revert: remove dotted paths support
  • ad6f183 docs(examples): add typedef variant of umbrella chart example
  • 98d82d4 docs(readme): add Homebrew installation instructions
  • cf75b5c feat(parser): add support for JSON Schema validation constraints
  • 47a71ca feat(parser): add support for dotted paths in PARAM annotations

v1.0.6

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:49
d476741

Changelog

v1.0.5

Choose a tag to compare

@github-actions github-actions released this 29 Oct 03:54
7ed7bbc

Changelog

  • 7ed7bbc Add defaults for empty strings