Releases: kube-rs/kopium
0.16.2
What's Changed
Dependencies
- Bump libc from 0.2.147 to 0.2.149 by @dependabot in #161
- Bump the core group with 3 updates by @dependabot in #163
- Bump the core group with 3 updates by @dependabot in #164
- Bump libc from 0.2.149 to 0.2.150 by @dependabot in #170
- Bump the kube group with 1 update by @dependabot in #168
- Bump the core group with 1 update by @dependabot in #169
Changes
Full Changelog: 0.16.1...0.16.2
0.16.1
Full Changelog: v0.15.0...0.16.1
First release in a while. Lots of dependency bumps. New release CI setup.
- kopium can now be binstalled;
cargo binstall kopium
- fix piping to editor
- fix an issue with boolean maps for argo applications
v0.15.0
v0.14.0
Overview
Lots of improvements to the robustness of the parsing and generation process giving us compatibility with some complicated crds (alertmanagers crd and sig network gateway api crds). There is also an elision flag in place to allow overriding generated output more easily, plus a much more informative kopium header in the generated output.
What's Changed
- Do not try to derive
CustomResource
when using--hide-kube
by @clux in #97 - Add generation command and kopium version to output header by @clux in #99
- Allow simple integer enums by rawstring escaping variant names by @clux in #100
- Add
--elide
flag to drop generated structs from the output by @clux in #102 - Replaces invalid enum identifiers with generated ones by @Dav1dde in #103
- Fixes clippy lints by @Dav1dde in #105
New Contributors
Full Changelog: v0.13.0...v0.14.0
v0.13.0
v0.12.0
Highlights
Big features: rudimentary support for enums in #71, and some handling of preserve-unknown-fields
in #76 and #77.
There is also a breaking change with the removal of -z
/--rust-case
and -i
flags. We now always convert member names to rust style casing because other languages can name members in rust-invalid ways that failed to generate without setting these flags. Removing this brittle default behaviour also avoids generating code with warnings when names did not match rust-conventions.
What's Changed
- Add optional typed-builder derives by @clux in #64
- Add simple enum support by @clux in #65
- Combine all serde field annotations by @clux in #63
- Add support for enum renames and refactor analyzer interface by @clux in #71
- Update clap to v3 by @imp in #72
- Turn "preserve-unknown-fields" into serde_json::Value for more cases by @felipesere in #76
- Nest serde_json::Value under HashMap for preserve-unknown-fields by @clux in #77
- bump dependencies and fix clap minor by @clux in #80
- Always rustify member names by @clux in #82
New Contributors
- @felipesere made their first contribution in #76
Full Changelog: v0.11.0...v0.12.0
v0.11.0
Highlights
Snake Case members possible with -z
in #56. Only slightly breaking change is a new #![allow(non_snake_case)]
line at top of file if not converting to snake_case. This can be turned off with -i
.
In general, the output format is a lot more controllable now with flags, and can read from stdin and files with -f
.
Also more bugfixes.
What's Changed
- Allow reading file from stdin with kopium -f - by @clux in #50
- Allow hiding kube derive instructions with --hide-kube by @clux in #51
- Allow deriving JsonSchema on structs by @clux in #53
- Add --schema flag to set kube-derive schema mode by @clux in #55
- Add optional snake_case conversion of member names by @clux in #56
- Add --auto shorthand for automation options by @clux in #58
- Fix --derive not adding derives to child structs by @clux in #59
- Fix Map of String case in ServiceMonitor by @clux in #62
Plus these from the 0.10.0 release that was only out for a few hours:
- Allow reading CRDs from yaml file by @clux in #46
- Fix generation for maps of integers by @clux in #47
Full Changelog: v0.10.0...v0.11.0
v0.9.0
Option
change
We have identified a safety issue with our previously "smart" stripping of Option's in favour of serde default annotations. The only sensible way to rectify this was to add back Option
wrapping of containers, which does make some of the code slightly less ergonomic. See #41
Changelog
- Handle optional Vec and BTreeMap as Option by @alex-hunt-materialize in #41
- treat x-kubernetes-int-or-string as IntOrString by @alex-hunt-materialize in #43
- use BTreeMap for empty objects with preserve-unknown-fields by @alex-hunt-materialize in #42
New Contributors
- @alex-hunt-materialize made their first contribution in #41
Full Changelog: v0.8.0...v0.9.0
v0.8.0
What's Changed
- Continue docstring after newline by @antifuchs in #36
- Handle maps to structs in schema by @clux in #37
New Contributors
- @antifuchs made their first contribution in #36
Full Changelog: v0.7.0...v0.8.0