Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure dev mode in "Cloud Code: Kubernetes" run configuration (enable auto-sync) #3184

Open
simonstratmann opened this issue Feb 22, 2024 · 1 comment

Comments

@simonstratmann
Copy link

We use skaffold, helm and jib to deploy our Spring Boot application. When using the auto-sync functionality the whole image is build and deployed. In our case it would be enough to sync the files and jars as that triggers the SB devtools to automatically reload the application.

I got this working by runing skaffold dev --auto-build=false --auto-deploy=false --auto-sync=true in the terminal so that on a build the changed files are transferred to the container and the application is automatically restarted. I haven't found a way to achieve this when using the run configuration.

The default auto-sync with jib seems a bit over-eager so that it builds and deploys the image when actually syncing the class files and jars would be enough. I have enabled "On demand" and on a rebuild the auto-sync would then sync the changed files.

The command run by the run configuration is this: skaffold.exe dev --filename skaffold.yaml --label ide=cloudcodeintellij --auto-build=false --auto-deploy=false --auto-sync=false --rpc-port 50051 --port-forward=true --wait-for-deletions-max=2m0s --status-check=true. I would like to actually enabled auto-sync in this case.

Additional Information

  • IDE type (e.g. IntelliJ, Pycharm): IntelliJ
  • IDE version: 2023.3
  • Cloud Code version (Settings > Plugins > Cloud Code): 24.2.1-api-version-223
  • Cloud SDK (Settings > Cloud Code > Cloud SDK)
    • Are you allowing the plugin to manage the Cloud SDK: Yes
    • Version of the Cloud SDK: 444.0.0
  • Skaffold version (If you are using Kubernetes features; Settings > Cloud Code > Kubernetes): 2.7.0
  • Operating System: Windows 10
@simonstratmann
Copy link
Author

I tried fixing this by using environment variables but this is overwritten by the command line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant