diff --git a/app-of-apps.yaml b/app-of-apps.yaml new file mode 100644 index 0000000..0f33e8c --- /dev/null +++ b/app-of-apps.yaml @@ -0,0 +1,27 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: simstrup-app-of-apps + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + name: '' + namespace: default + server: 'https://kubernetes.default.svc' + source: + path: apps + repoURL: 'https://gitbucket.simstrup.dk/git/rolf/simstrup-app.git' + targetRevision: HEAD + directory: + recurse: true + exclude: values.yaml + sources: [] + project: default + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - PruneLast=true + - CreateNamespace=true diff --git a/app-of-apps/application.yaml b/app-of-apps/application.yaml deleted file mode 100644 index 931de05..0000000 --- a/app-of-apps/application.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: simstrup-app-of-apps - namespace: simstrup - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - destination: - namespace: simstrup - server: https://kubernetes.default.svc - project: simstrup-project - source: - path: apps - repoURL: https://gitbucket.simstrup.dk/git/rolf/simstrup-app.git - targetRevision: HEAD - directory: - recurse: true \ No newline at end of file diff --git a/app-of-apps/project.yaml b/app-of-apps/project.yaml deleted file mode 100644 index bf59cb9..0000000 --- a/app-of-apps/project.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - name: simstrup-project - namespace: simstrup - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - description: Simstrup Project - sourceRepos: - - '*' - destinations: - - namespace: '*' - server: '*' - clusterResourceWhitelist: - - group: '*' - kind: '*' \ No newline at end of file diff --git a/apps/argocd/application.yaml b/apps/argocd/application.yaml index e04104c..9ac5f5e 100644 --- a/apps/argocd/application.yaml +++ b/apps/argocd/application.yaml @@ -11,7 +11,7 @@ chart: argo/argo-cd helm: valueFiles: - - apps/argocd/values.yaml + - values.yaml destination: server: 'https://kubernetes.default.svc' namespace: default