-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
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:
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.prefix and options.suffix have been proposed for the third (more details in the issue).
Additionally, #4120 requests a way to replace a template variable.