From 0e5520c36a95803635565b397977bb9d2bf75df4 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 19 Jun 2024 15:30:17 +1000 Subject: [PATCH 1/2] remove unneeded scripts --- scripts/encript-file-by-age.sh | 12 ------------ scripts/encript-file-by-gpg.sh | 10 ---------- 2 files changed, 22 deletions(-) delete mode 100644 scripts/encript-file-by-age.sh delete mode 100644 scripts/encript-file-by-gpg.sh diff --git a/scripts/encript-file-by-age.sh b/scripts/encript-file-by-age.sh deleted file mode 100644 index 5c6bf0d..0000000 --- a/scripts/encript-file-by-age.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/bash -set -e - -filePath=$1 - -AGE_PUB_KEY"age1d47q8mlty404pxx378q49hr93aqexca4mkeqtdm00w4gjd09xd0qhxcdcz" - -sops --age=$AGE_PUB_KEY --encrypt --encrypted-regex '^(data|stringData)$' --in-place $filePath -echo "File encrypted: $filePath." - -git add $filePath -git commit -am "Encrypt file $filePath by Age." \ No newline at end of file diff --git a/scripts/encript-file-by-gpg.sh b/scripts/encript-file-by-gpg.sh deleted file mode 100644 index c46c49f..0000000 --- a/scripts/encript-file-by-gpg.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/bash -set -e - -filePath=$1 - -sops --encrypt --in-place $filePath -echo "File encrypted: $filePath." - -git add $filePath -git commit -am "Encrypt file $filePath by GPG." \ No newline at end of file From 4502e596d1d15019fc923f0fe6214b097f87113b Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 19 Jun 2024 15:33:52 +1000 Subject: [PATCH 2/2] add jellyfin namespace --- kubernetes/infrastructure/kustomization.yaml | 1 + kubernetes/infrastructure/namespaces.yaml | 16 ++++++++++++++++ .../infrastructure/namespaces/jellyfin.yaml | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 kubernetes/infrastructure/namespaces.yaml create mode 100644 kubernetes/infrastructure/namespaces/jellyfin.yaml diff --git a/kubernetes/infrastructure/kustomization.yaml b/kubernetes/infrastructure/kustomization.yaml index f788e2b..7806428 100644 --- a/kubernetes/infrastructure/kustomization.yaml +++ b/kubernetes/infrastructure/kustomization.yaml @@ -12,6 +12,7 @@ resources: - ./namespaces/prometheus-operator.yaml - ./namespaces/snippet-box.yaml - ./namespaces/uptime-kuma.yaml + - ./namespaces.yaml - ./repositories/repositories.yaml # - ./cilium/cilium.yaml - ./ingress-nginx/ingress-nginx-config.yaml diff --git a/kubernetes/infrastructure/namespaces.yaml b/kubernetes/infrastructure/namespaces.yaml new file mode 100644 index 0000000..d013c33 --- /dev/null +++ b/kubernetes/infrastructure/namespaces.yaml @@ -0,0 +1,16 @@ +# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/gitrepository_v1.json +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: namespaces + namespace: flux-system +spec: + interval: 10m + timeout: 1m30s + retryInterval: 30s + path: ./kubernetes/infrastructure/namespaces + prune: true + sourceRef: + kind: GitRepository + namespace: flux-system + name: flux-system diff --git a/kubernetes/infrastructure/namespaces/jellyfin.yaml b/kubernetes/infrastructure/namespaces/jellyfin.yaml new file mode 100644 index 0000000..167a2cb --- /dev/null +++ b/kubernetes/infrastructure/namespaces/jellyfin.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: jellyfin