kubectl/pkg/kuberc
Peter Engelbert f336bc1fb3 Improve AllowlistEntry conversion logic
Allow both `Name` and `Command` when the values are identical, but not
when they differ.

Additionally:
- Add unit test verifying the above
- Add `omitempty` json tag to `Name` and `Command` fields in `AllowlistEntry` struct
- Run openapi codegen
- Remove year from boilerplate comments

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>

Kubernetes-commit: e3642120630421d3d0756908fa4661a7d13c3aa4
2026-02-26 16:10:08 -05:00
..
kuberc.go Fix typos in kubectl package comments 2025-12-21 23:17:37 -08:00
kuberc_test.go Improve AllowlistEntry conversion logic 2026-02-26 16:10:08 -05:00
marshal.go Introduce kuberc view/set commands under kubectl alpha (#135003) 2025-11-05 13:20:31 +00:00
marshal_test.go kuberc: pick the first known version when decoding + tests 2025-05-15 16:24:43 +02:00