Refactor gitops repositories;Move capi manifests to subfolder;Sort components in tty console message;Generalize templates
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-03-31 18:19:13 +02:00
parent 1c60214f5a
commit 933615adeb
6 changed files with 68 additions and 23 deletions

View File

@ -1,15 +1,15 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: {{ _template.name }}
namespace: {{ _template.namespace }}
name: {{ _template.application.name }}
namespace: {{ _template.application.namespace }}
spec:
generators:
- git:
repoURL: https://git.{{ vapp['metacluster.fqdn'] }}/wl/GitOps.Config.git
repoURL: {{ _template.repository.url }}
revision: HEAD
directories:
- path: metacluster-applicationset/*
- path: applicationset/*
template:
metadata:
name: {% raw %}'{{ path.basename }}'{% endraw +%}
@ -20,9 +20,9 @@ spec:
prune: true
selfHeal: true
source:
repoURL: https://git.{{ vapp['metacluster.fqdn'] }}/wl/GitOps.Config.git
repoURL: {{ _template.repository.url }}
targetRevision: HEAD
path: {% raw %}'{{ path }}'{% endraw +%}
destination:
server: https://kubernetes.default.svc
server: {{ _template.cluster.name }}
namespace: default

View File

@ -1,12 +1,12 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ _template.name }}-{{ _template.uid }}
name: {{ _template.name }}
namespace: {{ _template.namespace }}
labels:
argocd.argoproj.io/secret-type: repository
stringData:
url: ssh://git@gitea-ssh.gitea.svc.cluster.local/mc/GitOps.Config.git
url: {{ _template.url }}
name: {{ _template.name }}
insecure: 'true'
sshPrivateKey: |