mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-07 01:28:42 +07:00
refactor(bootstrap): let bootstrap ApplicationSet to create the root app
This commit is contained in:
parent
1ee0954655
commit
b505e66d67
@ -3,13 +3,8 @@
|
||||
|
||||
KUBECONFIG = ../metal/kubeconfig.yaml
|
||||
|
||||
default: argocd root
|
||||
default: argocd
|
||||
|
||||
.PHONY: argocd
|
||||
argocd:
|
||||
kustomize build ./argocd | kubectl apply -f -
|
||||
# TODO wait for argocd
|
||||
|
||||
.PHONY: root
|
||||
root:
|
||||
kustomize build ./root | kubectl apply -f -
|
||||
|
@ -21,5 +21,4 @@ spec:
|
||||
path: '{{path}}'
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
@ -6,6 +6,7 @@ resources:
|
||||
- https://raw.githubusercontent.com/argoproj/argo-cd/v2.2.0-rc1/manifests/install.yaml # TODO switch back to stable
|
||||
- https://raw.githubusercontent.com/argoproj-labs/applicationset/master/manifests/install.yaml # TODO switch back to stable
|
||||
- ingress.yaml
|
||||
- bootstrap.yaml
|
||||
|
||||
patches:
|
||||
- path: argocd-server-deployment-patch.yaml
|
||||
|
@ -2,10 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# - projects/system.yaml
|
||||
- applicationsets/bootstrap.yaml
|
||||
- applicationsets/system.yaml
|
||||
- applicationsets/platform.yaml
|
||||
- applicationsets/apps.yaml
|
||||
- system.yaml
|
||||
- platform.yaml
|
||||
- apps.yaml
|
||||
|
||||
namespace: argocd
|
||||
|
@ -1,8 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: system
|
||||
spec:
|
||||
description: System Project
|
||||
sourceRepos:
|
||||
- '*'
|
Loading…
Reference in New Issue
Block a user