kubernetes-sigs / cluster-api

Home for Cluster API, a subproject of sig-cluster-lifecycle
https://cluster-api.sigs.k8s.io
Apache License 2.0
3.45k stars 1.27k forks source link

Consider returning warnings in validation for usage of deprecated fields #10725

Open chrischdi opened 1 month ago

chrischdi commented 1 month ago

What would you like to be added (User Story)?

As a user I would like to get a warning when I make use of deprecated fields.

Detailed Description

We already have some deprecated fields:

and considering e.g.:

we may introduce more in future.

For providing a user the information that it makes use of a deprecated field, we could use warnings in validation to bubble that information up.

Anything else you would like to add?

No response

Label(s) to be applied

/kind feature One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.

sbueringer commented 4 weeks ago

Yup also

I think this is a great idea, and we should do this for all fields now & going forward

fabriziopandini commented 5 days ago

/triage accepted /help

we can evaluate case by case on follow up PRs

k8s-ci-robot commented 5 days ago

@fabriziopandini: This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-help command.

In response to [this](https://github.com/kubernetes-sigs/cluster-api/issues/10725): >/triage accepted >/help > >we can evaluate case by case on follow up PRs Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
chrischdi commented 5 days ago

Yup also

I think this is a great idea, and we should do this for all fields now & going forward

moved these up to the list