From 8f4354065c35cf1a8f12a12e81dd96040e955ad7 Mon Sep 17 00:00:00 2001 From: alfi0812 <43101280+alfi0812@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:52:58 +0100 Subject: [PATCH] Create extensions.json (#28902) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning - [ ] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Signed-off-by: alfi0812 <43101280+alfi0812@users.noreply.github.com> --- .../embed/generic/root/DOTREPLACEenvrc | 13 ++++++++++++ .../embed/generic/root/DOTREPLACEgitignore | 1 + .../root/DOTREPLACEvscode/extensions.json | 18 +++++++++++++++++ .../root/DOTREPLACEvscode/settings.json | 20 +++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 clustertool/embed/generic/root/DOTREPLACEenvrc create mode 100644 clustertool/embed/generic/root/DOTREPLACEvscode/extensions.json create mode 100644 clustertool/embed/generic/root/DOTREPLACEvscode/settings.json diff --git a/clustertool/embed/generic/root/DOTREPLACEenvrc b/clustertool/embed/generic/root/DOTREPLACEenvrc new file mode 100644 index 00000000000..caad1eb7040 --- /dev/null +++ b/clustertool/embed/generic/root/DOTREPLACEenvrc @@ -0,0 +1,13 @@ +#shellcheck disable=SC2148,SC2155 +export KUBECONFIG="$(expand_path ./kubeconfig)" +export SOPS_AGE_KEY_FILE="$(expand_path ./age.key)" +# Venv +PATH_add "$(expand_path ./.venv/bin)" +export VIRTUAL_ENV="$(expand_path ./.venv)" +export PYTHONDONTWRITEBYTECODE="1" +# Talos +export TALOSCONFIG="$(expand_path ./kubernetes/bootstrap/talos/clusterconfig/talosconfig)" +# Bin +PATH_add "$(expand_path ./.bin)" +# Krew +PATH_add "$HOME/.krew/bin" diff --git a/clustertool/embed/generic/root/DOTREPLACEgitignore b/clustertool/embed/generic/root/DOTREPLACEgitignore index 79d48305964..1d373627877 100644 --- a/clustertool/embed/generic/root/DOTREPLACEgitignore +++ b/clustertool/embed/generic/root/DOTREPLACEgitignore @@ -8,3 +8,4 @@ clustertool sopssecret.yaml sopssecret* *sopssecret* +mounts/ diff --git a/clustertool/embed/generic/root/DOTREPLACEvscode/extensions.json b/clustertool/embed/generic/root/DOTREPLACEvscode/extensions.json new file mode 100644 index 00000000000..004dc0a45e8 --- /dev/null +++ b/clustertool/embed/generic/root/DOTREPLACEvscode/extensions.json @@ -0,0 +1,18 @@ +{ + "recommendations": [ + "albert.TabOut", + "mikestead.dotenv", + "mitchdenny.ecdc", + "signageos.signageos-vscode-sops", + "EditorConfig.editorconfig", + "PKief.material-icon-theme", + "usernamehw.errorlens", + "redhat.vscode-yaml", + "weaveworks.vscode-gitops-tools", + "Tim-Koehler.helm-intellisense", + "ms-kubernetes-tools.vscode-kubernetes-tools", + "sandipchitale.vscode-kubernetes-helm-extras", + "VadzimNestsiarenka.helm-template-preview-and-more", + "karyan40024.helmix" + ] +} diff --git a/clustertool/embed/generic/root/DOTREPLACEvscode/settings.json b/clustertool/embed/generic/root/DOTREPLACEvscode/settings.json new file mode 100644 index 00000000000..47f83adc156 --- /dev/null +++ b/clustertool/embed/generic/root/DOTREPLACEvscode/settings.json @@ -0,0 +1,20 @@ +{ + "files.associations": { + "*.json5": "jsonc", + "./kubernetes/**/*.sops.toml": "plaintext" + }, + "sops.defaults.ageKeyFile": "age.key", + "yaml.schemas": { + "Kubernetes": "./kubernetes/*.yaml" + }, + "vs-kubernetes": { + "vs-kubernetes.kubeconfig": "/workspaces/cluster/kubeconfig", + "vs-kubernetes.knownKubeconfigs": ["/workspaces/cluster/kubeconfig"] + }, + "terminal.integrated.profiles.linux": { + "bash": { + "path": "/usr/bin/fish" + } + }, + "terminal.integrated.defaultProfile.linux": "fish" +}