kubectl/pkg/util
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
..
certificate Add v1 CSR support to kubectl describe 2020-06-04 12:05:51 -04:00
completion (kubectl apiresources): Use restclientgetter instead cmdutil.Factory 2022-08-24 09:52:10 +03:00
deployment Generate and format files 2022-07-19 20:54:13 -04:00
event Move pkg/kubectl/util/event into staging 2019-06-19 15:31:51 -07:00
fieldpath Fix quotes that trip up gofmt 2022-07-22 09:19:47 -04:00
hash Immutable field and validation 2019-11-26 13:29:26 +01:00
i18n Update the Chinese translation of kubectl 2022-06-13 19:08:27 +08:00
interrupt Moved pkg/kubectl/util/term, pkg/kubectl/util/templates, pkg/kubectl/util/interrupt, and pkg/kubectl/util/interrupt to staging 2019-06-19 16:31:38 +02:00
openapi Use OpenAPI to determine patch type in kubectl apply patching 2022-06-08 13:12:16 +03:00
podutils kubectl: Inline the containers for the user in attach/exec 2021-02-11 11:40:25 -05:00
prune Refactor diff/prune 2021-11-08 11:22:10 +03:00
qos cleanup: add update notice in origin file & make it diff cleanly 2021-09-15 13:43:00 +08:00
rbac When combining PolicyRules, don't duplicate verbs 2020-05-18 15:20:06 -04:00
resource Downward API hugepages 2020-11-06 14:22:53 -05:00
slice kubectl apply: Deprecate --prune-whitelist in favor of --prune-allowlist 2022-10-30 20:50:19 -04:00
storage add unit test for /staging/src/k8s.io/kubectl/pkg/util/storage 2022-07-29 17:34:00 +08:00
templates add unit test for normalizer rendering markdown 2022-09-27 14:06:40 +08:00
term Generate and format files 2022-07-19 20:54:13 -04:00
apply.go Move pkg/kubectl/apply.go to staging 2019-07-24 20:40:25 -07:00
pod_port.go Move pkg/kubectl/util to staging 2019-07-24 11:59:28 -07:00
pod_port_test.go Move pkg/kubectl/util to staging 2019-07-24 11:59:28 -07:00
service_port.go Move pkg/kubectl/util to staging 2019-07-24 11:59:28 -07:00
service_port_test.go Move pkg/kubectl/util to staging 2019-07-24 11:59:28 -07:00
umask.go generated: Run hack/update-gofmt.sh 2021-08-12 17:13:11 -04:00
umask_windows.go generated: Run hack/update-gofmt.sh 2021-08-12 17:13:11 -04:00
util.go Generate and format files 2022-07-19 20:54:13 -04:00
util_test.go Move pkg/kubectl/util to staging 2019-07-24 11:59:28 -07:00