Skip to content
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

Upgrate CF CLI to support variable substitution #188

Open
o-orand opened this issue Aug 8, 2018 · 4 comments · May be fixed by #234
Open

Upgrate CF CLI to support variable substitution #188

o-orand opened this issue Aug 8, 2018 · 4 comments · May be fixed by #234
Assignees

Comments

@o-orand
Copy link
Member

o-orand commented Aug 8, 2018

Is your feature request related to a problem? Please describe.
As operator, I want to able to leverage new CF CLI syntax, see https://github.com/orange-cloudfoundry/paas-templates/issues/71

and https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html#variable-substitution

Given a vars.yml file such as

instances: 2
memory: 1G

Given an app manifest file using the following format: ((VARIABLE-NAME)) such as 🔢

---
applications:
- name: test-app
  instances: ((instances))
  memory: ((memory))
  buildpacks:
  - go_buildpack
  env:
    GOPACKAGENAME: go_calls_ruby
  command: go_calls_ruby

and CF CLI invoked with cf push --vars-file /PATH/vars.yml
then CF CLI pushes an interpolated manifest file.

@poblin-orange
Copy link
Member

use 6.38 with cf-deployment 1.40

@poblin-orange
Copy link
Member

use 6.41 with cf-deployment 2.7 paas templates 36

o-orand added a commit that referenced this issue Jan 18, 2019
 - document usage in reference dataset
 - add minimal tests
WIP-tasks(cf_push): support variable substitution for cf apps

a file ending with `vars.yml` in application template dir is detected as
file with `variables` to be injected into application manifest.

fix #188
@o-orand o-orand linked a pull request Jan 18, 2019 that will close this issue
3 tasks
o-orand added a commit that referenced this issue Jan 18, 2019
 - document usage in reference dataset
 - add minimal tests
WIP-tasks(cf_push): support variable substitution for cf apps

a file ending with `vars.yml` in application template dir is detected as
file with `variables` to be injected into application manifest.

fix #188
o-orand added a commit that referenced this issue Jan 18, 2019
 - document usage in reference dataset
 - add minimal tests
WIP-tasks(cf_push): support variable substitution for cf apps

a file ending with `vars.yml` in application template dir is detected as
file with `variables` to be injected into application manifest.

fix #188
@gberche-orange
Copy link
Member

Potentially useful in orange-cloudfoundry/cf-services-bench#2

@poblin-orange
Copy link
Member

bosh deployment with scripting release can compensate this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: On Hold
Development

Successfully merging a pull request may close this issue.

4 participants