-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Deprecate vars #4049
Copy link
Copy link
Open
Labels
kind/deprecationCategorizes issue or PR as related to a feature/enhancement marked for deprecation.Categorizes issue or PR as related to a feature/enhancement marked for deprecation.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.triage/under-consideration
Metadata
Metadata
Assignees
Labels
kind/deprecationCategorizes issue or PR as related to a feature/enhancement marked for deprecation.Categorizes issue or PR as related to a feature/enhancement marked for deprecation.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.triage/under-consideration
The new replacements field is intended to be the replacement for the vars feature. Now that its implementation is complete, we should look into deprecating vars.
Some outstanding migration issues:
#3978
#4012
#4337
#4359
These issues have the same underlying problem that users are adding vars in strings where the var is not delimited, e.g.
Host(www-$(NAMESPACE).example.com).We should also take a look at use cases such as #4080 where the user wants to replace a string in an array without having to rely on the order of items in the array.
Generators for service accounts have been proposed as the solution for the first issue, but does not easily resolve the second.
options.prefixandoptions.suffixhave been proposed for the third (more details in the issue).Additionally, #4120 requests a way to replace a template variable.