kubectl/pkg/cmd/apply
Brian Pursley 41407b14e8 kubectl apply: Deprecate --prune-whitelist in favor of --prune-allowlist
Changes in kubectl apply --prune to support k8s Inclusive Naming Initiative:
* Deprecated the --prune-whitelist flag.
* Deprecated the PruneWhitelist field on ApplyFlags struct.
* Removed PruneWhitelist field (not used anywhere) from ApplyOptions struct.
* Added --prune-allowlist flag.
* Added PruneAllowlist field on ApplyFlags struct.
* Added unit tests for prune with allowlist

This commit also fixes a bug where the command would fail if you specified
the sameGVK multiple times for --allow-whitelist. Now it only attempts to
prune the unique set of allowed GVKs.

Kubernetes-commit: f7ebf4d8852d4500f24100ca9a4ca665efc1fada
2022-10-30 20:50:19 -04:00
..
apply.go kubectl apply: Deprecate --prune-whitelist in favor of --prune-allowlist 2022-10-30 20:50:19 -04:00
apply_edit_last_applied.go Refactor completion code into its own package 2022-03-24 09:06:05 -04:00
apply_set_last_applied.go Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
apply_test.go kubectl apply: Deprecate --prune-whitelist in favor of --prune-allowlist 2022-10-30 20:50:19 -04:00
apply_view_last_applied.go Set validate functions requiring no parameters for all commands 2022-05-17 11:38:20 +03:00
patcher.go Move resource lookup into its own function 2022-06-28 09:30:06 +03:00
prune.go Refactor diff/prune 2021-11-08 11:22:10 +03:00