cuber-gem icon indicating copy to clipboard operation
cuber-gem copied to clipboard

Fix deprecation warning about prune

Open collimarco opened this issue 2 years ago • 2 comments

When you deploy on new versions you can see this deprecation:

W0723 20:57:03.499655    2113 prune.go:71] Deprecated: kubectl apply will no longer prune non-namespaced resources by default when used with the --namespace flag in a future release. To preserve the current behaviour, list the resources you want to target explicitly in the --prune-allowlist flag.

This is not an issue right now, but it should be fixed for the future.

collimarco avatar Jul 23 '23 19:07 collimarco

Related: https://github.com/kubernetes/kubernetes/pull/110907

collimarco avatar Jul 26 '23 06:07 collimarco

Based on this comment we can probably just ignore the warning (no code changes needed in this gem).

collimarco avatar Jul 26 '23 08:07 collimarco