restructure

This commit is contained in:
2024-07-15 01:04:19 +10:00
parent 7b087c9fb0
commit f75c1258ee
8 changed files with 2 additions and 82 deletions

View File

@@ -1,49 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
annotations:
argocd.argoproj.io/sync-wave: "0"
creationTimestamp: null
name: cluster-resources
namespace: argocd
spec:
generators:
- git:
files:
- path: bootstrap/cluster-resources/*.json
repoURL: https://github.com/3dwardch3ng/home-cluster-ops.git
requeueAfterSeconds: 20
revision: ""
template:
metadata: {}
spec:
destination: {}
project: ""
source:
repoURL: ""
syncPolicy:
preserveResourcesOnDeletion: true
template:
metadata:
labels:
app.kubernetes.io/managed-by: argocd-autopilot
app.kubernetes.io/name: cluster-resources-{{name}}
name: cluster-resources-{{name}}
namespace: argocd
spec:
destination:
server: '{{server}}'
ignoreDifferences:
- group: argoproj.io
jsonPointers:
- /status
kind: Application
project: default
source:
path: bootstrap/cluster-resources/{{name}}
repoURL: https://github.com/3dwardch3ng/home-cluster-ops.git
syncPolicy:
automated:
allowEmpty: true
selfHeal: true
status: {}

View File

@@ -1 +0,0 @@
{"name":"in-cluster","server":"https://kubernetes.default.svc"}

View File

@@ -1,3 +0,0 @@
# Cluster Resources
This directory contains all cluster resources that should be applied to cluster: `in-cluster`.
For example `Namespace` resources that are shared by multiple applications on the same namespace.

View File

@@ -1,9 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-options: Prune=false
creationTimestamp: null
name: argocd
spec: {}
status: {}

View File

@@ -68,7 +68,7 @@ spec:
template:
metadata:
labels:
app.kubernetes.io/managed-by: argocd-autopilot
app.kubernetes.io/managed-by: argocd
app.kubernetes.io/name: '{{ appName }}'
name: k3s-cluster-{{ userGivenName }}
namespace: argocd

View File

@@ -5,7 +5,7 @@ metadata:
finalizers:
- resources-finalizer.argocd.argoproj.io
labels:
app.kubernetes.io/managed-by: argocd-autopilot
app.kubernetes.io/managed-by: argocd
app.kubernetes.io/name: root
name: root
namespace: argocd

View File

@@ -1,14 +0,0 @@
#!/bin/bash
set -e
# get the latest version or change to a specific version
VERSION=$(curl --silent "https://api.github.com/repos/argoproj-labs/argocd-autopilot/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/')
# download and extract the binary
curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/"$VERSION"/argocd-autopilot-linux-arm64.tar.gz | tar zx
# move the binary to your $PATH
mv ./argocd-autopilot-* /usr/local/bin/argocd-autopilot
# check the installation
argocd-autopilot version

View File

@@ -1,4 +0,0 @@
#!/bin/bash
set -e
argocd-autopilot repo bootstrap --app https://github.com/argoproj-labs/argocd-autopilot/manifests/ha