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

Support primitive Dry-Run workflow #10

Open
WitoDelnat opened this issue Jul 10, 2023 · 1 comment
Open

Support primitive Dry-Run workflow #10

WitoDelnat opened this issue Jul 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@WitoDelnat
Copy link

I was playing around a bit with the extension and I'd like to get it working with a tool like Kustomize or Helm. These tools often run in the CLI so part one of the challenge is getting the content within a VSCode model. I discovered that you can use helm template blue-helm-cert-manager | code - to open it in a tmp file (e.g. the output for that command is Reading from stdin via: /var/folders/7_/54m525216j753qdynl70gjjh0000gn/T/code-stdin-MkG for me). However, since this is not part of my workspace it will not get validated.

On a deeper level, I think we should consider to create a separate Log for Dry Run validations? This keeps the Kubernetes objects separate from ones in the workspace (they act in isolation).

@f1ames f1ames added the enhancement New feature or request label Jul 10, 2023
@f1ames
Copy link
Contributor

f1ames commented Jul 10, 2023

Some quick suggestions I had when thinking about this:

  • From what I found it's not possible to directly read output of terminal in VSC. There are some workarounds, like https://stackoverflow.com/a/74530249/646871.
  • We can provide a configuration option when user can define what command to run to generate resources (be it Helm or Kustomize) and run it on every change. Since the extension will manage when and how it is run it should be possible to capture output.

On a deeper level, I think we should consider to create a separate Log for Dry Run validations? This keeps the Kubernetes objects separate from ones in the workspace (they act in isolation).

Agree 👍

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

No branches or pull requests

2 participants