the existing infrastructure
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- manifests.yaml
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: shop-admin
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.example.com/shop/admin.git
|
||||
targetRevision: v1.4.0
|
||||
path: deploy
|
||||
destination:
|
||||
namespace: shop
|
||||
server: https://kubernetes.default.svc
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -0,0 +1,7 @@
|
||||
name: shop-admin
|
||||
owner: bob
|
||||
repoURL: https://git.example.com/shop/admin.git
|
||||
path: deploy
|
||||
revision: v1.4.0
|
||||
namespace: shop
|
||||
autoSync: false
|
||||
@@ -0,0 +1,5 @@
|
||||
# An Application on a tag of a team's repository, synced by hand.
|
||||
kind: create
|
||||
params: { name: shop-admin }
|
||||
owner: bob
|
||||
values: { repoURL: "https://git.example.com/shop/admin.git", path: deploy, revision: v1.4.0, namespace: shop, autoSync: false }
|
||||
@@ -0,0 +1,7 @@
|
||||
# Deleting an Application removes its directory; its finalizer deletes what it deployed.
|
||||
kind: delete
|
||||
key: shop-web
|
||||
deleted:
|
||||
- apps/shop-web/kustomization.yaml
|
||||
- apps/shop-web/manifests.yaml
|
||||
- apps/shop-web/quai.yaml
|
||||
Reference in New Issue
Block a user