Bladeren bron

Creates app project

Simon Kaiser 3 jaren geleden
bovenliggende
commit
040aa79aae

+ 1
- 1
gitops-kaisers-info/apps/Chart.yaml Bestand weergeven

@@ -1,5 +1,5 @@
1 1
 apiVersion: v2
2
-name: applications
2
+name: gitops-kaisers-info
3 3
 description: Applications
4 4
 
5 5
 # A chart can be either an 'application' or a 'library' chart.

+ 25
- 0
gitops-kaisers-info/apps/templates/appproject.yaml Bestand weergeven

@@ -0,0 +1,25 @@
1
+apiVersion: argoproj.io/v1alpha1
2
+kind: AppProject
3
+metadata:
4
+  name: gitops-kaisers-info-int
5
+  namespace: argocd
6
+  # Finalizer that ensures that project is not deleted until it is not referenced by any application
7
+  finalizers:
8
+    - resources-finalizer.argocd.argoproj.io
9
+spec:
10
+  # Project description
11
+  description: The app bundle POC project
12
+
13
+  # Allow manifests to deploy from any Git repos
14
+  sourceRepos:
15
+  - '*'
16
+
17
+  # Only permit applications to deploy to the guestbook namespace in the same cluster
18
+  destinations:
19
+  - namespace: '*'
20
+    server: '*'
21
+
22
+  # Deny all cluster-scoped resources from being created, except for Namespace
23
+  clusterResourceWhitelist:
24
+  - group: '*'
25
+    kind: '*'

+ 2
- 2
gitops-kaisers-info/apps/templates/argo-cd.yaml Bestand weergeven

@@ -8,8 +8,8 @@ metadata:
8 8
 spec:
9 9
   destination:
10 10
     namespace: argocd
11
-    server: {{ .Values.spec.destination.server }}
12
-  project: default
11
+    name: {{ .Values.spec.destination.name }}
12
+  project: {{ .Values.spec.project }}
13 13
   source:
14 14
     path: argo-cd
15 15
     repoURL: {{ .Values.spec.source.repoURL }}

+ 2
- 2
gitops-kaisers-info/apps/templates/crossplane.yaml Bestand weergeven

@@ -8,8 +8,8 @@ metadata:
8 8
 spec:
9 9
   destination:
10 10
     namespace: crossplane-system
11
-    server: {{ .Values.spec.destination.server }}
12
-  project: default
11
+    name: {{ .Values.spec.destination.name }}
12
+  project: {{ .Values.spec.project }}
13 13
   source:
14 14
     path: crossplane
15 15
     repoURL: {{ .Values.spec.source.repoURL }}

+ 2
- 2
gitops-kaisers-info/apps/templates/gitea.yaml Bestand weergeven

@@ -8,8 +8,8 @@ metadata:
8 8
 spec:
9 9
   destination:
10 10
     namespace: gitea
11
-    server: {{ .Values.spec.destination.server }}
12
-  project: default
11
+    name: {{ .Values.spec.destination.name }}
12
+  project: {{ .Values.spec.project }}
13 13
   source:
14 14
     path: gitea
15 15
     repoURL: {{ .Values.spec.source.repoURL }}

+ 2
- 2
gitops-kaisers-info/apps/templates/syncwaves.yaml Bestand weergeven

@@ -8,8 +8,8 @@ metadata:
8 8
 spec:
9 9
   destination:
10 10
     namespace: sync-waves
11
-    server: {{ .Values.spec.destination.server }}
12
-  project: default
11
+    name: {{ .Values.spec.destination.name }}
12
+  project: {{ .Values.spec.project }}
13 13
   source:
14 14
     path: sync-waves
15 15
     repoURL: {{ .Values.spec.source.repoURL }}

+ 1
- 1
gitops-kaisers-info/apps/values.yaml Bestand weergeven

@@ -1,6 +1,6 @@
1 1
 spec:
2 2
   destination:
3
-    server: https://kubernetes.default.svc
3
+    name: in-cluster
4 4
   source:
5 5
     repoURL: https://git.kaisers.info/simonkaiser/k8s-kaisers-info.git
6 6
     targetRevision: HEAD