Closed Phillezi closed 3 weeks ago
I have made a component for this: InitCommandManager.tsx
it is pretty similar to ImageManager.tsx
but it splits the commands by space into a string array and warns the user if they exceed 100 commands (100 was specified as max in the go-deploy model).
I'm just unsure if splitting by space is correct,
should mongod --auth
be treated as one command or as two commands?
If i split by space the it becomes
...
"initCommands": [
"mongod",
"--auth"
]
Here's how it looks:
The text should probably be changed to be more descriptive, let me know what you think.
Also let me know if you think if it is better to handle it like the EnvManager does with environment variables (in a table)
I believe this is a duplicate of https://github.com/kthcloud/console/issues/198?
oh yeah, sorry
The current version is pretty bare bones however so feel free to refine it :D
I'll merge it to main so you can check it out on a local branch
Is your feature request related to a problem? Please describe. It would be nice to be able to set init commands using the console, if you for example want to use keycloak with the start command.
Describe the solution you'd like A text field similar to the one in the ImageManager would be nice, that on save updates the initCommands field on the deployment.
Describe alternatives you've considered It could work like the EnvManager otherwise, where the user can insert each command manually and it being displayed as a Table.
It could look something like this![image](https://github.com/kthcloud/console/assets/112874974/2289a0dc-4b75-4c07-af9b-fb335329c8bf)