Date
1 - 7 of 7
CF CLI v6.37.0 Released Today: Variable Substitution
Abby Chau
Hi all, Highlights include:
Bug Fixes:
Let us know if you have any comments or feedback, thanks! Best, Abby Chau Product Manager, CF CLI |
|
Hi Abby,
In the documentation for variable substitution, when it’s said: Template variables can also be used as partial values, such as in: It’s quite unclear what is meant by “partial values”, and the example doesn’t bring an illustration to this. Indeed, correct me if I’m wrong but this second example looks the same as the first one, because using --vars-file <(cat secrets.yml) should be quite the same as writing --vars-file secrets.yml. Maybe “partial values” was a way to say that multiple --vars-file arguments can be used? Benjamin
|
|
Abby Chau
Hi Benjamin, Thanks for reaching out; we will update the documentation for clarification. The partial value use case, for example, is a manifest.yml with the following: and a variable.yml file which invokes the value by passing in the hostname: When you push with the manifest and variable file, the route test.example.com will be created. Hope that makes sense. Best, Abby On Wed, May 30, 2018 at 7:30 AM, Benjamin Gandon <benjamin@...> wrote:
|
|
Carlo Alberto Ferraris
Abby, Is inserting arrays/hashes also supported? If that's the case it may be a good idea to show it in the examples. Carlo On Thu, May 31, 2018, 09:37 Abby Chau <achau@...> wrote:
|
|
Abby Chau
Hey Carlo, thanks for reaching out. Arrays and hashes are not supported for the Variable Substitution feature. Let us know if you have any additional questions. Thanks. Best, Abby On Wed, May 30, 2018 at 7:48 PM, Carlo Alberto Ferraris <carloalberto.ferraris@...> wrote:
|
|
Ronak Banka
Hi Abby, Going forward is there something on roadmap to use ops files for cf CLI too, like we do for Bosh CLI or yaml patch? Use case can be CI/CD pipelines where part of manifest can be injected for different environment. Thanks Ronak On Thu, 31 May 2018 at 7:37 AM, Abby Chau <achau@...> wrote:
|
|
Abby Chau
Hi Ronak, We don't currently have that prioritised currently for the CF CLI, but please create a github issue for visibility and future consideration. Thanks, Abby On Thu, May 31, 2018 at 11:44 PM, Ronak Banka <ronakbanka.cse@...> wrote:
|
|