refactor(bootstrap): let bootstrap ApplicationSet to create the root app

This commit is contained in:
Khue Doan 2021-12-14 09:57:57 +07:00
parent 1ee0954655
commit b505e66d67
8 changed files with 5 additions and 20 deletions

View File

@ -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 -

View File

@ -21,5 +21,4 @@ spec:
path: '{{path}}'
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@ -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

View File

@ -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

View File

@ -1,8 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: system
spec:
description: System Project
sourceRepos:
- '*'