From 9de65b683439f4af9d7b8926ffd77d7ecc7526be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 10 Oct 2026 10:25:29 +0000 Subject: [PATCH] modified: .devcontainer/devcontainer.json new file: .vscode/tasks.json modified: services/node-red/README.md deleted: services/node-red/ops-scripts/apply-flux.sh --- .devcontainer/devcontainer.json | 4 +++- .vscode/tasks.json | 21 +++++++++++++++++++++ services/node-red/README.md | 8 -------- services/node-red/ops-scripts/apply-flux.sh | 3 --- 4 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 .vscode/tasks.json delete mode 100755 services/node-red/ops-scripts/apply-flux.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4e304c7..e93b274 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -12,11 +12,13 @@ "source=${localWorkspaceFolder}/../myLimbo.Jellyfin,target=/workspaces/myLimbo.Jellyfin,type=bind", "source=${localWorkspaceFolder}/../kb,target=/workspaces/kb,type=bind", "source=${localWorkspaceFolder}/../pi.bluetooth.speaker,target=/workspaces/pi.bluetooth.speaker,type=bind", - "source=${localWorkspaceFolder}/../myinfra.kubernetes.shared,target=/workspaces/myinfra.kubernetes.shared,type=bind", "source=${localWorkspaceFolder}/.env.d/kube,target=/home/vscode/.kube,type=bind", "source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind,consistency=cached", "source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached" ], + "containerEnv": { + "KUBECONFIG":"${containerWorkspaceFolder}/.env.d/kube.config" + }, "customizations": { "vscode": { "extensions": [ diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..0e1d15b --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,21 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "bash: current file", + "type": "shell", + "command": "bash \"${file}\"", + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [] + }, + { + "label": "Kustomize - Apply Selected", + "type": "shell", + "command": "kubectl apply -k ${fileDirname}", + "problemMatcher": [], + "group": "build" + } +] +} \ No newline at end of file diff --git a/services/node-red/README.md b/services/node-red/README.md index 3f831fd..fc7e11f 100644 --- a/services/node-red/README.md +++ b/services/node-red/README.md @@ -5,14 +5,6 @@ node -e "console.log(require('bcryptjs').hashSync(process.argv[1], 8));" YOUR-PASSWORD ``` -## Setup - -Using flux for reconciliation. - -``` bash -./ops-scripts/apply-flux.sh -``` - **Encrypt secrets:** ``` bash diff --git a/services/node-red/ops-scripts/apply-flux.sh b/services/node-red/ops-scripts/apply-flux.sh deleted file mode 100755 index 3ac1d9d..0000000 --- a/services/node-red/ops-scripts/apply-flux.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -set -e -kubectl kustomize ./deploy/flux | kubectl apply -f - \ No newline at end of file