Commit graph

5 commits

Author SHA1 Message Date
Stephen Kitt
2e358d6313 Deprecate obsolete slice utility functions
... and update users to use standard library functions.

Signed-off-by: Stephen Kitt <skitt@redhat.com>

Kubernetes-commit: d42d1e3d1f73ac2975b89f9482c2ecfaeeed13f6
2025-07-15 09:02:48 +02:00
Mads Jensen
07471296e7 Fixes under staging.
Kubernetes-commit: ae8838f58a5859c33f2443b7df8a4bc525fde95b
2026-02-06 22:44:34 +01:00
Arda Güçlü
61dc2ecb38 Use generic Contains rather than deprecated ContainsString
Kubernetes-commit: 8312c3ec242faf30f3967e59465ca5a764a4ee85
2024-11-25 11:30:04 +03:00
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
Mike Dame
da9a085a27 Move pkg/util/slice and update refs
Kubernetes-commit: 5f7dbefa036582410abb52ae54d0af6dd978904e
2019-06-19 23:24:56 -04:00