diff --git a/clustertool/embed/generic/root/DOTREPLACEenvrc b/clustertool/embed/generic/root/DOTREPLACEenvrc new file mode 100644 index 000000000000..caad1eb70406 --- /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 79d483059644..1d373627877f 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 000000000000..004dc0a45e8e --- /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 000000000000..47f83adc156e --- /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" +}