-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider returning warnings in validation for usage of deprecated fields #10725
Comments
Yup also
I think this is a great idea, and we should do this for all fields now & going forward |
/triage accepted we can evaluate case by case on follow up PRs |
@fabriziopandini: GuidelinesPlease 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 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
moved these up to the list |
Updated the list in the issue description & structured by CRD |
A few general comments from my side:
|
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:
spec.topology.rolloutAfter
spec.topology.variables[].definitionFrom
spec.topology.controlPlane.variables.overrides[].definitionFrom
spec.topology.workers.machineDeployments[].variables.overrides[].definitionFrom
spec.topology.workers.machinePools[].variables.overrides[].definitionFrom
spec.variables[].metadata
spec.revisionHistoryLimit
spec.maxUnhealthy
spec.unhealthyRange
spec.useExperimentalRetryJoin
.spec.bootstrapped
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.
The text was updated successfully, but these errors were encountered: