From fc12862e12fcf20d80f942a110795774a656843e Mon Sep 17 00:00:00 2001 From: Richard Robert Reitz Date: Fri, 6 Jun 2025 11:29:46 +0200 Subject: [PATCH] feat(forgejo,argocd): Fixed the Forgejo ingress and moved argocd and forgejo ingresses into the argocd and forgejo application manifests folder --- .../manifests/argocd-server-ingress.yaml} | 0 template/stacks/core/ingress-apps.yaml | 22 ------------------- .../{forgejo.yaml => forgejo-server.yaml} | 3 +++ .../manifests/forgejo-ingress.yaml} | 0 template/stacks/forgejo/ingress-apps.yaml | 22 ------------------- 5 files changed, 3 insertions(+), 44 deletions(-) rename template/stacks/core/{ingress-apps/argocd-server.yaml => argocd/manifests/argocd-server-ingress.yaml} (100%) delete mode 100644 template/stacks/core/ingress-apps.yaml rename template/stacks/forgejo/{forgejo.yaml => forgejo-server.yaml} (77%) rename template/stacks/forgejo/{ingress-apps/forgejo.yaml => forgejo-server/manifests/forgejo-ingress.yaml} (100%) delete mode 100644 template/stacks/forgejo/ingress-apps.yaml diff --git a/template/stacks/core/ingress-apps/argocd-server.yaml b/template/stacks/core/argocd/manifests/argocd-server-ingress.yaml similarity index 100% rename from template/stacks/core/ingress-apps/argocd-server.yaml rename to template/stacks/core/argocd/manifests/argocd-server-ingress.yaml diff --git a/template/stacks/core/ingress-apps.yaml b/template/stacks/core/ingress-apps.yaml deleted file mode 100644 index bc33556..0000000 --- a/template/stacks/core/ingress-apps.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: ingress-apps - namespace: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - destination: - server: "https://kubernetes.default.svc" - source: - repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}} - targetRevision: HEAD - path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/ingress-apps" - project: default - syncPolicy: - automated: - selfHeal: true - syncOptions: - - CreateNamespace=true - retry: - limit: -1 diff --git a/template/stacks/forgejo/forgejo.yaml b/template/stacks/forgejo/forgejo-server.yaml similarity index 77% rename from template/stacks/forgejo/forgejo.yaml rename to template/stacks/forgejo/forgejo-server.yaml index 9957f55..bbca0aa 100644 --- a/template/stacks/forgejo/forgejo.yaml +++ b/template/stacks/forgejo/forgejo-server.yaml @@ -27,3 +27,6 @@ spec: - repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}} targetRevision: HEAD ref: values + - repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}} + targetRevision: HEAD + path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/forgejo/forgejo-server/manifests" \ No newline at end of file diff --git a/template/stacks/forgejo/ingress-apps/forgejo.yaml b/template/stacks/forgejo/forgejo-server/manifests/forgejo-ingress.yaml similarity index 100% rename from template/stacks/forgejo/ingress-apps/forgejo.yaml rename to template/stacks/forgejo/forgejo-server/manifests/forgejo-ingress.yaml diff --git a/template/stacks/forgejo/ingress-apps.yaml b/template/stacks/forgejo/ingress-apps.yaml deleted file mode 100644 index 5129526..0000000 --- a/template/stacks/forgejo/ingress-apps.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: ingress-apps - namespace: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - destination: - server: "https://kubernetes.default.svc" - source: - repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}} - targetRevision: HEAD - path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/forgejo/ingress-apps" - project: default - syncPolicy: - automated: - selfHeal: true - syncOptions: - - CreateNamespace=true - retry: - limit: -1