-
Notifications
You must be signed in to change notification settings - Fork 43
Description
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