Skip to content
Open
2 changes: 1 addition & 1 deletion app-of-apps/more-apps/argo-workflows.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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/manifests

Expand Down
2 changes: 1 addition & 1 deletion app-of-apps/more-apps/kubeview.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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/manifests

Expand Down
2 changes: 1 addition & 1 deletion app-of-apps/my-app-list/argo-rollouts.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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/manifests

Expand Down
2 changes: 1 addition & 1 deletion app-of-apps/my-app-list/cert-manager.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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/manifests

Expand Down
2 changes: 1 addition & 1 deletion app-of-apps/my-app-list/grafana.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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/manifests

Expand Down
2 changes: 1 addition & 1 deletion app-of-apps/my-app-list/linkerd.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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/manifests

Expand Down
2 changes: 1 addition & 1 deletion app-of-apps/my-app-list/nginx.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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/manifests

Expand Down
2 changes: 1 addition & 1 deletion app-of-apps/my-app-list/prometheus.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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/manifests

Expand Down
2 changes: 1 addition & 1 deletion app-of-apps/my-app-list/sealed-secrets.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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/manifests

Expand Down
37 changes: 16 additions & 21 deletions app-of-apps/root-app/my-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,28 @@ apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: root-application
# 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/my-app-list

# directory
directory:
recurse: false
# Destination cluster and namespace to deploy the application
# Use 'sources' (plural) instead of 'source' (singular)
sources:
- repoURL: https://github.com/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/my-app-list
directory:
recurse: false
- repoURL: https://github.com/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/more-apps
directory:
recurse: false
destination:
server: https://kubernetes.default.svc
namespace: default

# Sync policy
syncPolicy:
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 ).
allowEmpty: false # Allows deleting all application resources during automatic syncing ( false by default ).

automated:
prune: true
selfHeal: true
allowEmpty: false
4 changes: 2 additions & 2 deletions application-sets/generators/many-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
generators:
- git:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
repoURL: https://github.com/it-rubenrebelo/gitops-cert-level-2-examples.git
revision: HEAD
directories:
- path: application-sets/example-apps/*
Expand All @@ -19,7 +19,7 @@ spec:

# Source of the application manifests
source:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
repoURL: https://github.com/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: '{{path}}'

Expand Down
2 changes: 1 addition & 1 deletion application-sets/generators/single-app-many-times.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:

# Source of the application manifests
source:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
repoURL: https://github.com/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./application-sets/manifests

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:

# Source of the application manifests
source:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
repoURL: https://github.com/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./application-sets/manifests

Expand Down
36 changes: 36 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,36 @@
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/it-rubenrebelo/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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: '{{path}}'
# 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 ).
destination:
server: '{{server}}'
namespace: '{{path.basename}}'
38 changes: 38 additions & 0 deletions application-sets/my-application-sets/many-apps.yaml
Original file line number Diff line number Diff line change
@@ -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 ).

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:

# Source of the application manifests
source:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
repoURL: https://github.com/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./application-sets/manifests

Expand Down
Original file line number Diff line number Diff line change
@@ -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 ).

2 changes: 1 addition & 1 deletion custom-diff/applications/external-helm-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
project: default

source:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
repoURL: https://github.com/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./custom-diff/02-external-app

Expand Down
2 changes: 1 addition & 1 deletion custom-diff/applications/with-hpa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
project: default

source:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
repoURL: https://github.com/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./custom-diff/01-with-hpa

Expand Down
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 image-updater/applications/always-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ 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/it-rubenrebelo/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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./image-updater/example-app/envs/qa/

Expand Down
4 changes: 2 additions & 2 deletions image-updater/applications/semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ 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/it-rubenrebelo/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/it-rubenrebelo/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./image-updater/example-app/envs/staging/

Expand Down
2 changes: 1 addition & 1 deletion image-updater/example-app/base/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
containers:
- name: webserver-simple
imagePullPolicy: Always
image: ghcr.io/codefresh-contrib/gitops-cert-level-2-examples:latest
image: ghcr.io/it-rubenrebelo/gitops-cert-level-2-examples:latest
ports:
- containerPort: 8080

Expand Down
2 changes: 1 addition & 1 deletion image-updater/example-app/envs/qa/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: ghcr.io/codefresh-contrib/gitops-cert-level-2-examples:1.0
image: ghcr.io/it-rubenrebelo/gitops-cert-level-2-examples:1.0
Loading