-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suggest upgrading api_version when it would help (#230)
I'm trying to help users be less confused when they try to use a feature that's not supported in the api_version that they're using. When a YAML file fails parsing or validation, we'll suggest that the user upgrade to the newest api_version, with one condition. We'll only make this suggestion if the file actually does parse and validate successfully under the newest api_version. For example, suppose you try to use the new `if` feature in a YAML file whose `api_version` is `v1alpha`. The error message will say (paraphrasing) `your YAML file isn't valid, but if you change the api_version field to v1beta1 instead it will be valid.`
- Loading branch information
Showing
2 changed files
with
75 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters