SAP / SAP/cf-cli-defaultenv-plugin
Support VCAP_SERVICES_FILE_PATH
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 6
- Forks
- 4
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Cloud foundry added support of file-based VCAP services to bypass the size limit of VCAP_SERVICES as explained in the documentation below:
- https://docs.cloudfoundry.org/devguide/services/application-binding.html#file-based-vcap-services
- https://docs.cloudfoundry.org/devguide/deploy-apps/environment-variable.html#VCAP-SERVICES-FILE-PATH
It would be nice to enhance this plugin to automatically read the content of the bindings stored in a file and to store it in the default-env VCAP_SERVICES variable.
Content can be read with cf ssh command:
cf ssh <app-name> -c 'cat $VCAP_SERVICES_FILE_PATH'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the plugin behavior that creates default-env.json and populates VCAP_SERVICES; no source files or tests are named in the issue. Use the documented VCAP_SERVICES_FILE_PATH behavior and the provided cf ssh command as the integration reference, and consider the work done when file-based bindings are read and stored in the default-env VCAP_SERVICES variable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100