CLI parameter to overwrite MTA parameters
@ddonchev arbeitet bereits daran.
Seit 27.11.2020.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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
- Vorherrschende Sprache
- Go
- Sterne
- 87
- Forks
- 42
- Ø Merge
- 17 T. 21 Std.
- Gemergte PRs (30 T.)
- 1
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus cloudfoundry/multiapps-cli-plugin
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
cloudfoundry/multiapps-cli-plugin#257 · 1 Kommentar ·
-
in progress
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
cloudfoundry/multiapps-cli-plugin#220 · 1 Kommentar ·
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
cloudfoundry/multiapps-cli-plugin#218 · 2 Kommentare ·
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
cloudfoundry/multiapps-cli-plugin#196 · 1 Kommentar ·
Alle Issues in cloudfoundry/multiapps-cli-plugin
Ähnliche Issues
-
optimization optimization:agents-md-curator
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
githubnext/gh-aw-cao#13143 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
blinklabs-io/bursa#904 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 Kommentare ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 90/100