Skip to content

Commit

Permalink
fix: update file paths
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Jan 10, 2025
1 parent ab1edf5 commit 35b34b7
Show file tree
Hide file tree
Showing 389 changed files with 74 additions and 90 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/flux-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
args: >-
diff ${{ matrix.resources }}
--unified 6
--path /github/workspace/pull/kubernetes/flux/config
--path-orig /github/workspace/default/kubernetes/flux/config
--path /github/workspace/pull/kubernetes/flux/cluster
--path-orig /github/workspace/default/kubernetes/flux/cluster
--strip-attrs "helm.sh/chart,checksum/config,app.kubernetes.io/version,chart"
--limit-bytes 10000
--all-namespaces
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-pull-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
with:
args: >-
get cluster
--path /github/workspace/kubernetes/flux
--path /github/workspace/kubernetes/flux/cluster
--enable-images
--output yaml
--output-file images.yaml
Expand Down
16 changes: 8 additions & 8 deletions .taskfiles/bootstrap/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tasks:

talos:
desc: Bootstrap Talos
dotenv: ['{{.CLUSTER_DIR}}/cluster.env']
dotenv: ['{{.BOOTSTRAP_DIR}}/.cluster.env']
cmds:
- for: { var: TALOS_NODES }
cmd: >
Expand All @@ -18,7 +18,7 @@ tasks:
TALOS_CONTROLLER:
sh: talosctl config info --output json | jq --raw-output '.endpoints[]' | shuf -n 1
TALOS_NODES:
sh: ls {{.CLUSTER_DIR}}/talos/*.j2
sh: ls {{.BOOTSTRAP_DIR}}/talos/*.j2
preconditions:
- talosctl config info
- test -f {{.CLUSTER_DIR}}/talosconfig
Expand All @@ -29,9 +29,9 @@ tasks:
prompt: Bootstrap apps into the Talos cluster?
cmds:
- until kubectl wait nodes --for=condition=Ready=False --all --timeout=10m; do sleep 5; done
- op run --env-file {{.CLUSTER_DIR}}/bootstrap/bootstrap.env --no-masking -- minijinja-cli {{.CLUSTER_DIR}}/bootstrap/templates/resources.yaml.j2 | kubectl apply --server-side --filename -
- helmfile --quiet --file {{.CLUSTER_DIR}}/bootstrap/helmfile.yaml apply --skip-diff-on-install --suppress-diff
- helmfile --quiet --file {{.CLUSTER_DIR}}/bootstrap/helmfile.yaml destroy --selector release=wipe-rook
- op run --env-file {{.BOOTSTRAP_DIR}}/.secrets.env --no-masking -- minijinja-cli {{.BOOTSTRAP_DIR}}/apps/templates/resources.yaml.j2 | kubectl apply --server-side --filename -
- helmfile --quiet --file {{.BOOTSTRAP_DIR}}/apps/helmfile.yaml apply --skip-diff-on-install --suppress-diff
- helmfile --quiet --file {{.BOOTSTRAP_DIR}}/apps/helmfile.yaml destroy --selector name=wipe-rook
env:
FLUX_GITHUB_PUBLIC_KEYS:
sh: curl -fsSL https://api.github.com/meta | jq --raw-output '"github.com "+.ssh_keys[]'
Expand All @@ -45,7 +45,7 @@ tasks:
- op user get --me
- talosctl config info
- test -f {{.CLUSTER_DIR}}/talosconfig
- test -f {{.CLUSTER_DIR}}/bootstrap/helmfile.yaml
- test -f {{.CLUSTER_DIR}}/bootstrap/templates/resources.yaml.j2
- test -f {{.CLUSTER_DIR}}/bootstrap/templates/wipe-rook.yaml.gotmpl
- test -f {{.BOOTSTRAP_DIR}}/apps/helmfile.yaml
- test -f {{.BOOTSTRAP_DIR}}/apps/templates/resources.yaml.j2
- test -f {{.BOOTSTRAP_DIR}}/apps/templates/wipe-rook.yaml.gotmpl
- which curl jq helmfile kubectl op talosctl
18 changes: 9 additions & 9 deletions .taskfiles/talos/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ tasks:

apply-node:
desc: Apply Talos config to a node [IP=required]
dotenv: ['{{.CLUSTER_DIR}}/cluster.env']
dotenv: ['{{.BOOTSTRAP_DIR}}/.cluster.env']
cmds:
- task: down
- sops exec-file --input-type yaml --output-type yaml {{.CLUSTER_DIR}}/talos/{{.IP}}.sops.yaml.j2 "minijinja-cli {}" | talosctl --nodes {{.IP}} apply-config --mode={{.MODE}} --file /dev/stdin
- sops exec-file --input-type yaml --output-type yaml {{.BOOTSTRAP_DIR}}/talos/{{.IP}}.sops.yaml.j2 "minijinja-cli {}" | talosctl --nodes {{.IP}} apply-config --mode={{.MODE}} --file /dev/stdin
- talosctl --nodes {{.IP}} health
- task: up
vars:
Expand All @@ -18,14 +18,14 @@ tasks:
vars: [IP]
preconditions:
- talosctl --nodes {{.IP}} get machineconfig
- test -f {{.CLUSTER_DIR}}/cluster.env
- test -f {{.CLUSTER_DIR}}/talos/{{.IP}}.sops.yaml.j2
- test -f {{.BOOTSTRAP_DIR}}/.cluster.env
- test -f {{.BOOTSTRAP_DIR}}/talos/{{.IP}}.sops.yaml.j2
- test -f {{.CLUSTER_DIR}}/talosconfig
- which minijinja-cli sops talosctl

upgrade-node:
desc: Upgrade Talos on a single node [IP=required]
dotenv: ['{{.CLUSTER_DIR}}/cluster.env']
dotenv: ['{{.BOOTSTRAP_DIR}}/.cluster.env']
cmds:
- task: down
- talosctl --nodes {{.IP}} upgrade --image="factory.talos.dev/installer/{{.TALOS_SCHEMATIC_ID}}:$TALOS_VERSION" --timeout=10m
Expand All @@ -40,13 +40,13 @@ tasks:
- curl -fsSL -o /dev/null --fail https://github.com/siderolabs/talos/releases/tag/$TALOS_VERSION
- talosctl --nodes {{.IP}} get machineconfig
- talosctl config info
- test -f {{.CLUSTER_DIR}}/cluster.env
- test -f {{.BOOTSTRAP_DIR}}/.cluster.env
- test -f {{.CLUSTER_DIR}}/talosconfig
- which jq kubectl talosctl

upgrade-k8s:
desc: Upgrade Kubernetes across the whole cluster [VERSION=required]
dotenv: ['{{.CLUSTER_DIR}}/cluster.env']
dotenv: ['{{.BOOTSTRAP_DIR}}/.cluster.env']
cmds:
- task: down
- talosctl --nodes {{.TALOS_CONTROLLER}} upgrade-k8s --to $KUBERNETES_VERSION
Expand All @@ -58,7 +58,7 @@ tasks:
- curl -fsSL -o /dev/null --fail https://github.com/siderolabs/kubelet/releases/tag/$KUBERNETES_VERSION
- talosctl --nodes {{.TALOS_CONTROLLER}} get machineconfig
- talosctl config info
- test -f {{.CLUSTER_DIR}}/cluster.env
- test -f {{.BOOTSTRAP_DIR}}/.cluster.env
- test -f {{.CLUSTER_DIR}}/talosconfig
- which jq talosctl

Expand All @@ -76,7 +76,7 @@ tasks:
preconditions:
- talosctl --nodes {{.IP}} get machineconfig
- talosctl config info
- test -f {{.CLUSTER_DIR}}/cluster.env
- test -f {{.BOOTSTRAP_DIR}}/.cluster.env
- test -f {{.CLUSTER_DIR}}/talosconfig
- which talosctl

Expand Down
1 change: 1 addition & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ shopt: [globstar]

vars:
CLUSTER_DIR: '{{.ROOT_DIR}}/kubernetes'
BOOTSTRAP_DIR: '{{.CLUSTER_DIR}}/bootstrap'

env:
KUBECONFIG: '{{.CLUSTER_DIR}}/kubeconfig'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
configMapGenerator:
- name: autobrr-loki-rules
files:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
configMapGenerator:
- name: bazarr-scripts
files:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../templates/gatus/guarded
configMapGenerator:
- name: go2rtc-configmap
files:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ resources:
- ./externalsecret.yaml
- ./pvc.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/external
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/external
- ../../../../templates/volsync
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ resources:
- ./externalsecret.yaml
- ./pvc.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/external
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/external
- ../../../../templates/volsync
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions kubernetes/apps/default/pinchflat/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ kind: Kustomization
resources:
- ./pvc.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/external
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/external
- ../../../../templates/volsync
configMapGenerator:
- name: plex-loki-rules
files:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
configMapGenerator:
- name: qbittorrent-loki-rules
files:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ resources:
- ./externalsecret.yaml
- ./pvc.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
configMapGenerator:
- name: radarr-configmap
files:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/volsync
- ../../../../templates/volsync
configMapGenerator:
- name: recyclarr-configmap
files:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
configMapGenerator:
- name: sabnzbd-scripts
files:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resources:
- ./externalsecret.yaml
- ./pvc.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../templates/gatus/guarded
configMapGenerator:
- name: slskd-configmap
files:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ resources:
- ./externalsecret.yaml
- ./pvc.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
configMapGenerator:
- name: sonarr-configmap
files:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ kind: Kustomization
resources:
- ./pvc.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
configMapGenerator:
- name: zigbee-loki-rules
files:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ kind: Kustomization
resources:
- ./pvc.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../../shared/templates/volsync
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ instance:
kind: GitRepository
url: ssh://[email protected]/onedr0p/home-ops
ref: refs/heads/main
path: kubernetes/main/flux/config
path: kubernetes/flux/cluster
pullSecret: github-deploy-key
commonMetadata:
labels:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../templates/gatus/external
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../templates/gatus/guarded
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ../../../../../shared/templates/gatus/external
- ../../../../templates/gatus/external
configMapGenerator:
- name: kromgo-configmap
files:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ./scrapeconfig.yaml
- ../../../../../shared/templates/gatus/guarded
- ../../../../templates/gatus/guarded
File renamed without changes.
Loading

0 comments on commit 35b34b7

Please sign in to comment.