config changes

This commit is contained in:
2026-08-28 19:38:06 -03:00
parent c08ef0d4c8
commit 8ef62b6aa7
2 changed files with 3 additions and 13 deletions
+3 -7
View File
@@ -11,14 +11,11 @@ spec:
repoURL: https://git.ivanch.me/ivanch/haven-ops.git repoURL: https://git.ivanch.me/ivanch/haven-ops.git
revision: main revision: main
files: files:
# one Application per <app>.yaml under apps/<ns>/
- path: "apps/*/*.yaml" - path: "apps/*/*.yaml"
# never generate apps for the bootstrap/root manifests themselves
- path: "apps/root/*.yaml" - path: "apps/root/*.yaml"
exclude: true exclude: true
template: template:
metadata: metadata:
# apps/default/notepad.yaml -> Application "notepad"
name: '{{ .path.filename | trimSuffix ".yaml" }}' name: '{{ .path.filename | trimSuffix ".yaml" }}'
namespace: argocd namespace: argocd
finalizers: finalizers:
@@ -28,13 +25,12 @@ spec:
source: source:
repoURL: https://git.ivanch.me/ivanch/haven-ops.git repoURL: https://git.ivanch.me/ivanch/haven-ops.git
targetRevision: main targetRevision: main
# in the git files generator .path.path IS the containing directory path: "{{ .path.path }}"
path: '{{ .path.path }}'
directory: directory:
include: '{{ .path.filename }}' include: "{{ .path.filename }}"
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: '{{ index .path.segments 1 }}' namespace: "{{ index .path.segments 1 }}"
syncPolicy: syncPolicy:
automated: automated:
prune: true prune: true
@@ -4,14 +4,8 @@ kind: Kustomization
namespace: argocd namespace: argocd
resources: resources:
# cluster-install already includes ALL CRDs (applications, appprojects,
# applicationsets). Do NOT also add manifests/crds — kustomize fails with
# "may not add resource with an already registered id".
- https://github.com/argoproj/argo-cd.git/manifests/cluster-install?ref=stable - https://github.com/argoproj/argo-cd.git/manifests/cluster-install?ref=stable
- ingress.yaml - ingress.yaml
# Serve plain HTTP behind the nginx ingress (TLS terminates at nothing —
# internal-only app convention). Applied live via kubectl patch on first
# install; this file keeps git as the source of truth.
patches: patches:
- path: server-insecure-patch.yaml - path: server-insecure-patch.yaml