cloud-code-intellij icon indicating copy to clipboard operation
cloud-code-intellij copied to clipboard

Allow passing arguments to skaffold

Open sbaier1 opened this issue 3 years ago • 5 comments

Expected Behavior

I want to be able to specify custom arguments to skaffold so i can customize its behavior in different run configurations.

Actual Behavior

It is not possible to add custom arguments like --auto-sync to the run configuration in order to debug with hot-reload for frameworks where this is applicable.

Additional Information

  • IDE type (e.g. IntelliJ, Pycharm): IntelliJ
  • IDE version: 2021.2.3
  • Cloud Code version (Settings > Plugins > Cloud Code): 21.10.1

sbaier1 avatar Oct 26 '21 07:10 sbaier1

FWIW some search through the code of skaffold i found there are env vars for these at least:

SKAFFOLD_AUTO_BUILD=true
SKAFFOLD_AUTO_DEPLOY=true
SKAFFOLD_AUTO_SYNC=true

still valid for others though i suppose.

sbaier1 avatar Oct 26 '21 13:10 sbaier1

Those Skaffold environment variables are valid, and there actually should be environment variable equivalents for every Skaffold flag. https://skaffold.dev/docs/references/cli/ has the comprehensive list.

We are limited in what direct UI support we provide for configuring Skaffold but you're right that you can use those environment variables to provide additional configuration.

I'm going to close this, but feel free to re-open if you have a use case where one of the existing environment variables don't work.

matthewmichihara avatar Oct 26 '21 14:10 matthewmichihara

It is not possible to add custom arguments like --auto-sync to the run configuration in order to debug with hot-reload for frameworks where this is applicable.

Specifically for this I wanted to mention that we are finishing up a feature that will allow you to iteratively debug you application (e.g. tell Skaffold to reload while the debugger is running) without having to hack around with environment variables. This will be available in the next insider build when ready.

etanshaul avatar Oct 26 '21 14:10 etanshaul

Re-opening to track this feature request. Environment variables work, but this could be made more intuitive.

matthewmichihara avatar Oct 26 '21 14:10 matthewmichihara

Specifically for this I wanted to mention that we are finishing up a feature that will allow you to iteratively debug you application (e.g. tell Skaffold to reload while the debugger is running) without having to hack around with environment variables. This will be available in the next insider build when ready.

sounds great, it really does seem quite complicated right now

Re-opening to track this feature request. Environment variables work, but this could be made more intuitive.

i suppose some documentation or hints somewhere should work, it was a bit of searching around for me to actually find the env vars for this

sbaier1 avatar Oct 26 '21 14:10 sbaier1