kubeshop / vscode-monokle

An extension for Visual Studio Code to validate your Kubernetes configuration
https://marketplace.visualstudio.com/items?itemName=kubeshop.monokle
MIT License
6 stars 0 forks source link

Support primitive Dry-Run workflow #10

Open WitoDelnat opened 1 year ago

WitoDelnat commented 1 year ago

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 commented 1 year ago

Some quick suggestions I had when thinking about this:

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 👍