kubernetes / client-go

Go client for Kubernetes.
Apache License 2.0
8.78k stars 2.9k forks source link

Annotate deprecated functions to allow linters to catch usage #1332

Open rbjorklin opened 4 months ago

rbjorklin commented 4 months ago

It would be useful to have linters assist in discovering use of deprecated api versions before they are eventually removed from client-go.

For example PDBs graduated to policy/v1 in k8s 1.21 and were eventually removed in k8s 1.25. Assuming I have linters configured correctly it would be helpful to get notified of these changes prior to the old version being removed or intentionally going looking for the information.

// Deprecated: use V1().PodDisruptionBudgets() instead. Since: v0.21.0
k8s-triage-robot commented 1 month ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 2 weeks ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten