add aplications to kustomization
This commit is contained in:
parent
fcb41591d6
commit
7739d75450
|
|
@ -2,7 +2,6 @@ apiVersion: argoproj.io/v1alpha1
|
|||
kind: Application
|
||||
metadata:
|
||||
name: applications
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
name: ''
|
||||
|
|
|
|||
|
|
@ -3,9 +3,6 @@ kind: Application
|
|||
metadata:
|
||||
name: external-dns
|
||||
spec:
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
destination:
|
||||
name: ''
|
||||
namespace: external-dns
|
||||
|
|
@ -16,6 +13,8 @@ spec:
|
|||
targetRevision: HEAD
|
||||
project: default
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
automated:
|
||||
prune: true
|
||||
allowEmpty: false
|
||||
|
|
|
|||
|
|
@ -3,9 +3,6 @@ kind: Application
|
|||
metadata:
|
||||
name: haproxy-ingress
|
||||
spec:
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
destination:
|
||||
name: ''
|
||||
namespace: haproxy-ingress
|
||||
|
|
@ -21,6 +18,8 @@ spec:
|
|||
prometheus-port: "9105"
|
||||
project: default
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
automated:
|
||||
prune: true
|
||||
allowEmpty: false
|
||||
|
|
|
|||
|
|
@ -3,9 +3,6 @@ kind: Application
|
|||
metadata:
|
||||
name: ingress-nginx
|
||||
spec:
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
destination:
|
||||
name: ''
|
||||
namespace: ingress-nginx
|
||||
|
|
@ -17,6 +14,8 @@ spec:
|
|||
chart: ingress-nginx
|
||||
project: default
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
automated:
|
||||
prune: true
|
||||
allowEmpty: false
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ kind: Kustomization
|
|||
namespace: argocd
|
||||
|
||||
resources:
|
||||
- applications.yaml
|
||||
- haproxy-ingress.yaml
|
||||
- argocd.yaml
|
||||
- cert-manager.yaml
|
||||
|
|
|
|||
|
|
@ -3,9 +3,6 @@ kind: Application
|
|||
metadata:
|
||||
name: metrics-server
|
||||
spec:
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
destination:
|
||||
name: ''
|
||||
namespace: metrics-server
|
||||
|
|
@ -24,6 +21,8 @@ spec:
|
|||
kubelet-insecure-tls: true
|
||||
project: default
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
automated:
|
||||
prune: true
|
||||
allowEmpty: false
|
||||
|
|
|
|||
|
|
@ -62,9 +62,21 @@ data "kustomization_build" "argocd" {
|
|||
path = "../k8s/argocd/overlays/staging"
|
||||
}
|
||||
|
||||
data "kustomization_build" "applications" {
|
||||
depends_on = [kubernetes_namespace.argocd]
|
||||
path = "../k8s/applications"
|
||||
}
|
||||
|
||||
resource "kustomization_resource" "argocd" {
|
||||
depends_on = [kubernetes_namespace.argocd]
|
||||
for_each = data.kustomization_build.argocd.ids
|
||||
|
||||
manifest = data.kustomization_build.argocd.manifests[each.value]
|
||||
}
|
||||
|
||||
resource "kustomization_resource" "applications" {
|
||||
depends_on = [kustomization_resource.applications]
|
||||
for_each = data.kustomization_build.applications.ids
|
||||
|
||||
manifest = data.kustomization_build.applications.manifests[each.value]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue