Skip to content
Open
32 changes: 32 additions & 0 deletions app-of-apps/my-app-list/argo-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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 ).

32 changes: 32 additions & 0 deletions app-of-apps/my-app-list/kubeview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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 ).

2 changes: 1 addition & 1 deletion app-of-apps/root-app/my-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/larrietacohen/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/my-app-list

Expand Down
35 changes: 35 additions & 0 deletions application-sets/my-application-sets/many-apps-many-cluster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cluster-git
spec:
generators:
# matrix 'parent' generator
- matrix:
generators:
# git generator, 'child' #1
- git:
repoURL: https://github.com/larrietacohen/gitops-cert-level-2-examples.git
revision: HEAD
directories:
- path: application-sets/example-apps/*
# cluster generator, 'child' #2
- clusters: {}
template:
metadata:
name: '{{path.basename}}-{{name}}'
spec:
project: default
source:
repoURL: https://github.com/larrietacohen/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: '{{path}}'
destination:
server: '{{server}}'
namespace: '{{path.basename}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
39 changes: 0 additions & 39 deletions application-sets/my-application-sets/single-app-many-times.yml

This file was deleted.

4 changes: 2 additions & 2 deletions environment-promotion/envs/prod/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ spec:
- name: webserver-simple
env:
- name: UI_THEME
value: "dark"
value: "light"
- name: CACHE_SIZE
value: "1024kb"
- name: PAGE_LIMIT
value: "25"
- name: SORTING
value: "ascending"
- name: N_BUCKETS
value: "12"
value: "24"
2 changes: 1 addition & 1 deletion environment-promotion/envs/prod/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions environment-promotion/envs/qa/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ spec:
- name: UI_THEME
value: "light"
- name: CACHE_SIZE
value: "2048kb"
value: "1024kb"
- name: PAGE_LIMIT
value: "25"
- name: SORTING
value: "ascending"
- name: N_BUCKETS
value: "42"
value: "24"
2 changes: 1 addition & 1 deletion environment-promotion/envs/staging/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions sync-hooks-waves/03-postsync-cleanup/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
generateName: cleanup-after-sync-
labels:
codefresh.io/cert: cleanup-job
#annotations:
#argocd.argoproj.io/hook: PostSync
annotations:
argocd.argoproj.io/hook: PostSync
spec:
template:
spec:
Expand Down