diff --git a/app-of-apps/my-app-list/argo-workflows.yml b/app-of-apps/my-app-list/argo-workflows.yml new file mode 100644 index 0000000000..2b6280bbc6 --- /dev/null +++ b/app-of-apps/my-app-list/argo-workflows.yml @@ -0,0 +1,31 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argo-workflows + # You'll usually want to add your resources to the argocd namespace. + namespace: argocd + # Add a this finalizer ONLY if you want these to cascade delete. + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + # The project the application belongs to. + project: default + + # Source of the application manifests + source: + repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git + targetRevision: HEAD + path: ./app-of-apps/manifests + + # Destination cluster and namespace to deploy the application + destination: + server: https://kubernetes.default.svc + namespace: argo-workflows + + # Sync policy + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: # automated sync by default retries failed attempts 5 times with following delays between attempts ( 5s, 10s, 20s, 40s, 80s ); retry controlled using `retry` field. + prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). + selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). diff --git a/app-of-apps/my-app-list/kubeview.yml b/app-of-apps/my-app-list/kubeview.yml new file mode 100644 index 0000000000..555c936faf --- /dev/null +++ b/app-of-apps/my-app-list/kubeview.yml @@ -0,0 +1,31 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: kubeview + # You'll usually want to add your resources to the argocd namespace. + namespace: argocd + # Add a this finalizer ONLY if you want these to cascade delete. + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + # The project the application belongs to. + project: default + + # Source of the application manifests + source: + repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git + targetRevision: HEAD + path: ./app-of-apps/manifests + + # Destination cluster and namespace to deploy the application + destination: + server: https://kubernetes.default.svc + namespace: kubeview + + # Sync policy + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: # automated sync by default retries failed attempts 5 times with following delays between attempts ( 5s, 10s, 20s, 40s, 80s ); retry controlled using `retry` field. + prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). + selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). diff --git a/app-of-apps/root-app/my-application.yml b/app-of-apps/root-app/my-application.yml index a5bc9b98c3..3250036788 100644 --- a/app-of-apps/root-app/my-application.yml +++ b/app-of-apps/root-app/my-application.yml @@ -13,7 +13,7 @@ spec: # Source of the application manifests source: - repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git + repoURL: https://github.com/mattwilsn/gitops-cert-level-2-examples.git targetRevision: HEAD path: ./app-of-apps/my-app-list @@ -31,4 +31,3 @@ spec: prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). allowEmpty: false # Allows deleting all application resources during automatic syncing ( false by default ). - \ No newline at end of file diff --git a/application-sets/my-application-sets/many-apps.yml b/application-sets/my-application-sets/many-apps.yml new file mode 100644 index 0000000000..31bbcc9793 --- /dev/null +++ b/application-sets/my-application-sets/many-apps.yml @@ -0,0 +1,38 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: many-apps-application-set + namespace: argocd +spec: + generators: + - git: + repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git + revision: HEAD + directories: + - path: application-sets/example-apps/* + template: + metadata: + name: '{{path.basename}}' + spec: + # The project the application belongs to. + project: default + + # Source of the application manifests + source: + repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git + targetRevision: HEAD + path: '{{path}}' + + # Destination cluster and namespace to deploy the application + destination: + server: https://kubernetes.default.svc + namespace: '{{path.basename}}' + + # Sync policy + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: # automated sync by default retries failed attempts 5 times with following delays between attempts ( 5s, 10s, 20s, 40s, 80s ); retry controlled using `retry` field. + prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). + selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). + diff --git a/application-sets/my-application-sets/single-app-multiple-clusters.yml b/application-sets/my-application-sets/single-app-multiple-clusters.yml new file mode 100644 index 0000000000..db9a363033 --- /dev/null +++ b/application-sets/my-application-sets/single-app-multiple-clusters.yml @@ -0,0 +1,34 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: multi-cluster-application-set + namespace: argocd +spec: + generators: + - clusters: {} # Automatically use all clusters defined within Argo CD + template: + metadata: + name: '{{name}}-billing-app' + spec: + # The project the application belongs to. + project: default + + # Source of the application manifests + source: + repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git + targetRevision: HEAD + path: ./application-sets/manifests + + # Destination cluster and namespace to deploy the application + destination: + server: '{{server}}' + namespace: billing + + # Sync policy + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: # automated sync by default retries failed attempts 5 times with following delays between attempts ( 5s, 10s, 20s, 40s, 80s ); retry controlled using `retry` field. + prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). + selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). + diff --git a/environment-promotion/envs/prod/settings.yml b/environment-promotion/envs/prod/settings.yml index 2b94ef8ad9..400ffc97fb 100644 --- a/environment-promotion/envs/prod/settings.yml +++ b/environment-promotion/envs/prod/settings.yml @@ -10,7 +10,7 @@ spec: - name: webserver-simple env: - name: UI_THEME - value: "dark" + value: "light" - name: CACHE_SIZE value: "1024kb" - name: PAGE_LIMIT @@ -18,4 +18,4 @@ spec: - name: SORTING value: "ascending" - name: N_BUCKETS - value: "12" + value: "24" \ No newline at end of file diff --git a/environment-promotion/envs/prod/version.yml b/environment-promotion/envs/prod/version.yml index 51bc5350da..c088376339 100644 --- a/environment-promotion/envs/prod/version.yml +++ b/environment-promotion/envs/prod/version.yml @@ -8,4 +8,4 @@ spec: spec: containers: - name: webserver-simple - image: docker.io/kostiscodefresh/simple-env-app:1.0 + image: docker.io/kostiscodefresh/simple-env-app:3.0 diff --git a/environment-promotion/envs/staging/version.yml b/environment-promotion/envs/staging/version.yml index 0423d0fa0a..c088376339 100644 --- a/environment-promotion/envs/staging/version.yml +++ b/environment-promotion/envs/staging/version.yml @@ -8,4 +8,4 @@ spec: spec: containers: - name: webserver-simple - image: docker.io/kostiscodefresh/simple-env-app:2.0 + image: docker.io/kostiscodefresh/simple-env-app:3.0 diff --git a/image-updater/applications/always-latest.yml b/image-updater/applications/always-latest.yml index 6c53b84d77..d627cba4f6 100644 --- a/image-updater/applications/always-latest.yml +++ b/image-updater/applications/always-latest.yml @@ -4,16 +4,15 @@ metadata: name: always-latest01 namespace: argocd annotations: - argocd-image-updater.argoproj.io/image-list: example=ghcr.io/codefresh-contrib/gitops-cert-level-2-examples + argocd-image-updater.argoproj.io/image-list: example=ghcr.io/mattwilsn/gitops-cert-level-2-examples argocd-image-updater.argoproj.io/example.update-strategy: latest spec: project: default source: - repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git + repoURL: https://github.com/mattwilsn/gitops-cert-level-2-examples.git targetRevision: HEAD path: ./image-updater/example-app/envs/qa/ - destination: server: https://kubernetes.default.svc namespace: qa @@ -21,5 +20,4 @@ spec: # Sync policy syncPolicy: syncOptions: - - CreateNamespace=true - + - CreateNamespace=true diff --git a/image-updater/applications/semver.yml b/image-updater/applications/semver.yml index 6801294bb3..8f2bf7d242 100644 --- a/image-updater/applications/semver.yml +++ b/image-updater/applications/semver.yml @@ -4,15 +4,13 @@ metadata: name: follow-semver02 namespace: argocd annotations: - argocd-image-updater.argoproj.io/image-list: ghcr.io/codefresh-contrib/gitops-cert-level-2-examples:~1 + argocd-image-updater.argoproj.io/image-list: ghcr.io/mattwilsn/gitops-cert-level-2-examples:~1 spec: project: default - source: - repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git + repoURL: https://github.com/mattwilsn/gitops-cert-level-2-examples.git targetRevision: HEAD path: ./image-updater/example-app/envs/staging/ - destination: server: https://kubernetes.default.svc namespace: staging @@ -20,5 +18,4 @@ spec: # Sync policy syncPolicy: syncOptions: - - CreateNamespace=true - + - CreateNamespace=true diff --git a/image-updater/example-app/envs/qa/version.yml b/image-updater/example-app/envs/qa/version.yml index afaa590368..6fc0eb61aa 100644 --- a/image-updater/example-app/envs/qa/version.yml +++ b/image-updater/example-app/envs/qa/version.yml @@ -7,5 +7,5 @@ spec: template: spec: containers: - - name: webserver-simple - image: ghcr.io/codefresh-contrib/gitops-cert-level-2-examples:1.0 + - name: webserver-simple + image: ghcr.io/mattwilsn/gitops-cert-level-2-examples:1.0 diff --git a/image-updater/example-app/envs/staging/version.yml b/image-updater/example-app/envs/staging/version.yml index afaa590368..6fc0eb61aa 100644 --- a/image-updater/example-app/envs/staging/version.yml +++ b/image-updater/example-app/envs/staging/version.yml @@ -7,5 +7,5 @@ spec: template: spec: containers: - - name: webserver-simple - image: ghcr.io/codefresh-contrib/gitops-cert-level-2-examples:1.0 + - name: webserver-simple + image: ghcr.io/mattwilsn/gitops-cert-level-2-examples:1.0