You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some manifests require user input. If you run aspirate generate --non-interactive, the command will fail with this error:
── Handling Inputs ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
(!) Cannot obtain non-generated values for inputs in non-interactive mode. Inputs are required according to the manifest.
(1): Aspirate will now exit.
There should be a way to handle these manifests in non-interactive mode without needing to force an error.
🧰 Possible Solution
Allow extra arguments in the aspirate generate command to be used as inputs for specific fields, for example the set flag could be used: --set Username=myUsername
It would be on the user to figure out what fields they need to add, there just needs to be a mechanism to allow them to be set in non-interactive mode.
✔ Goals
There should be a way to pre-define inputs for manifests that require inputs to be able to use non-interactive mode with those types of libraries.
💼 Business Case
Last week I began using the Aspire.Hosting.RabbitMQ library with my .Net Aspire app and I noticed that this cannot run in non-interactive mode because the manifest calls for inputs.
I've been using this command for CI/CD tools. My current workflow doesn't have the manifest.json file committed to the repo; it's just generated on-the-fly during the build + deployment: aspirate generate --output-format helm --non-interactive --secret-password $SECRET_VALUE --with-dashboard --image-pull-policy IfNotPresent
I'd like to just be able to set the needed inputs upfront, so the values that Aspire.Hosting.RabbitMQ ask for can be handled by CI/CD tools.
For reference, this is the section of the manifest.json file associated to Aspire.Hosting.RabbitMQ. The username and password values are required :
🚀 Feature Description
Some manifests require user input. If you run
aspirate generate --non-interactive
, the command will fail with this error:There should be a way to handle these manifests in non-interactive mode without needing to force an error.
🧰 Possible Solution
aspirate generate
command to be used as inputs for specific fields, for example theset
flag could be used:--set Username=myUsername
It would be on the user to figure out what fields they need to add, there just needs to be a mechanism to allow them to be set in non-interactive mode.
✔ Goals
💼 Business Case
Last week I began using the Aspire.Hosting.RabbitMQ library with my .Net Aspire app and I noticed that this cannot run in non-interactive mode because the manifest calls for inputs.
I've been using this command for CI/CD tools. My current workflow doesn't have the manifest.json file committed to the repo; it's just generated on-the-fly during the build + deployment:
aspirate generate --output-format helm --non-interactive --secret-password $SECRET_VALUE --with-dashboard --image-pull-policy IfNotPresent
I'd like to just be able to set the needed inputs upfront, so the values that Aspire.Hosting.RabbitMQ ask for can be handled by CI/CD tools.
For reference, this is the section of the manifest.json file associated to Aspire.Hosting.RabbitMQ. The username and password values are required :
The text was updated successfully, but these errors were encountered: