kubectl/pkg
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 Remove `newlineReporter` custom report 2022-06-01 13:09:47 +08:00
apps Remove `newlineReporter` custom report 2022-06-01 13:09:47 +08:00
cmd kubectl apply: Deprecate --prune-whitelist in favor of --prune-allowlist 2022-10-30 20:50:19 -04:00
describe Fix kubectl describe ingress when default backend is empty 2022-11-07 10:11:28 -06:00
drain Generalize dry run verify to arbitrary query param 2022-03-09 14:51:50 +00:00
explain add plaintext template 2022-11-02 20:35:18 -07:00
generate Clean unused generators 2021-03-03 22:47:53 +01:00
metricsutil Added --sum flag to kubectl top pod 2021-09-16 09:28:30 -04:00
polymorphichelpers Generate and format files 2022-07-19 20:54:13 -04:00
proxy kubectl proxy: append context host path to request path 2020-12-16 17:37:44 +01:00
rawhttp Close the used file 2021-06-03 15:36:20 +08:00
scale Support kubectl scale --dry-run=server|client 2020-03-30 17:33:15 -04:00
scheme Promote cronjob to batch/v1: kubectl sparse_test prune 2021-05-26 20:08:36 +08:00
util kubectl apply: Deprecate --prune-whitelist in favor of --prune-allowlist 2022-10-30 20:50:19 -04:00
validation add server-side validation support to kubectl 2022-03-09 14:52:32 +00:00