kubectl/pkg/drain
W. Trevor King 5ff8356c5b kubectl drain: Generic "declare a controller" message
When it initially landed in kubernetes/kubernetes@c6e9ad066e (Initial
node drain implementation for #3885, 2015-08-30,
kubernetes/kubernetes#16698), the drain logic looked in a created-by
annotation for recognized kinds [1], so listing the set of recognized
kinds was a clear approach.

Sometime later, the source moved into ownerReferences, but the
hard-coded set of recognized controller kinds remained.

When kubernetes/kubernetes@2f1108451f (Remove hard-coded
pod-controller check, 2017-12-05, kubernetes/kubernetes#56864) removed
the hard-coded set of recognized controller kinds, it should have also
updated these messages to remove stale references to the previous
hard-coded values.  This commit catches the message strings up with
that commit.

[1]: c6e9ad066e (diff-211259b8a8ec42f105264c10897dad48029badb538684e60e43eaead68c3d219R216)

Kubernetes-commit: 587f4f04cc5fc18f4e85ed6a4a06bbf1bfee0496
2022-02-23 16:26:59 -08:00
..
cordon.go Passes a context to the drain helper object 2020-12-04 15:13:03 -08:00
default.go wrap error from RunCordonOrUncordon 2022-01-25 10:34:47 -08:00
default_test.go RunCordonOrUncordon error if drainer has nil Ctx or Client 2021-09-27 14:20:24 -07:00
drain.go remove ignore error flag for drain, and set this feature as default 2021-10-08 19:44:26 +08:00
drain_test.go kubectl: send policy/v1 evictions to servers that support it 2021-04-01 22:50:59 -04:00
filter_test.go kubectl/drain add support for custom pod filters 2020-02-18 19:15:07 -05:00
filters.go kubectl drain: Generic "declare a controller" message 2022-02-23 16:26:59 -08:00