cloudfoundry / cloudfoundry/multiapps-cli-plugin
CLI parameter to overwrite MTA parameters
@ddonchev ci sta già lavorando.
Dal 27/11/2020.
- Lingua principale
- Go
- Stelle
- 87
- Fork
- 42
- Merge medio
- 17g 21h
- PR unite (30g)
- 1
Descrizione
Description
Hi everyone,
In my project, I have a resource which needs to be passed a secret token during deployment. This is why I wouldn't want to put the token into the repository as part of mta or extension (even if putting credentials into the extension seems to be recommended), but inject it to the cf deploy command from the CD pipeline.
As a workaround, we've currently modeled the resource as existing-service and manually create the service instance. For dev-spaces, however, we'd like to use a development plan of the service, which doesn't need the secret token. However, we still have to manually create the service, as we can't change the resource type to managed-service from the mta extension.
In an ideal world, I would be able to, in my mta.yaml (or any extension), specify a parameter like this:
ID: test
_schema-version: 3.3.0
version: 0.0.0
parameters:
secret: fillme
resources:
...
In the CLI, I would only now need to be able to overwrite the parameters via an additional CLI parameter, e.g.:
cf deploy my.mtar --parameter secret=thesecret
Would it be possible to add such a feature?
I've checked cf help deploy but didn't find any hint into this direction...
I don't know if server-side support is necessary here, but in the worst case the CLI could generate an transient mta extension with the parameters and just send it along.
Thank you very much for your support!
Kind regards
Lukas
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.