Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
2080cf4
Change repoURL to user-specific placeholder
talku43 Jul 16, 2026
e198b91
Create kubeview.yaml
talku43 Jul 16, 2026
4240ac5
Add Argo Workflows application manifest
talku43 Jul 16, 2026
ef299bc
Add many-apps.yml for ApplicationSet configuration
talku43 Jul 16, 2026
14b95b1
Create single-app-multiple-clusters.yml
talku43 Jul 16, 2026
270dc1d
Add ApplicationSet configuration for cluster-git
talku43 Jul 16, 2026
a8293fa
Update application set paths and project settings
talku43 Jul 16, 2026
e569e61
Update repoURL for git generator in YAML file
talku43 Jul 16, 2026
6afa14e
Update version.yml
talku43 Jul 16, 2026
c700b37
Enable manual dispatch for promote workflow
talku43 Jul 16, 2026
0e18384
Application promotion
talku43 Jul 16, 2026
30eb444
Application promotion
talku43 Jul 16, 2026
1bc9f9d
test
talku43 Jul 16, 2026
5a51e5a
Update image repository URLs in always-latest.yml
talku43 Jul 22, 2026
95e6ff5
Update image repository URLs in semver.yml
talku43 Jul 22, 2026
d0697bc
Merge pull request #1 from talku43/update-registry-owner-to-talku43
talku43 Jul 22, 2026
f51bce4
Update deployment.yml
talku43 Jul 22, 2026
0dcc0bb
Update image reference for webserver-simple
talku43 Jul 22, 2026
aa2cbb6
Update image reference in version.yml
talku43 Jul 22, 2026
7a602dc
Add PostSync hook annotation to cleanup job
talku43 Jul 22, 2026
d067dd1
Add sync wave annotation to cleanup job
talku43 Jul 22, 2026
6b7e650
Update cleanup.yml
talku43 Jul 22, 2026
f5933c8
Update cleanup.yml
talku43 Jul 22, 2026
5a47ab5
Update db-upgrade.yml
talku43 Jul 22, 2026
c8ce853
Add annotations for ArgoCD sync and hook
talku43 Jul 22, 2026
e98dbef
Update enable-alerts.yml
talku43 Jul 22, 2026
045e10d
Update grafana-notify.yml
talku43 Jul 22, 2026
bf2c248
Add annotations for ArgoCD sync and hook
talku43 Jul 22, 2026
935b71e
Update smoke-tests.yml
talku43 Jul 22, 2026
079db65
Update grafana-notify.yml
talku43 Jul 22, 2026
ebd3a11
Add ignoreDifferences to with-hpa.yml
talku43 Jul 23, 2026
055b6d0
Update with-hpa.yml
talku43 Jul 23, 2026
b94c81d
Update external-helm-app.yml
talku43 Jul 23, 2026
b75e365
Update external-helm-app.yml with ignoreDifferences
talku43 Jul 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

name: Promote application


# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
Expand Down
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.yaml
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 ).

4 changes: 2 additions & 2 deletions 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/<your user>/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./app-of-apps/my-app-list

Expand All @@ -31,4 +31,4 @@ 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 ).


29 changes: 29 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,29 @@
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/talku43/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/argoproj/argo-cd.git
targetRevision: HEAD
path: '{{path}}'
destination:
server: '{{server}}'
namespace: '{{path.basename}}'
38 changes: 38 additions & 0 deletions application-sets/my-application-sets/many-apps.yml
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
@@ -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 ).

12 changes: 10 additions & 2 deletions 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/talku43/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./custom-diff/02-external-app

Expand All @@ -20,5 +20,13 @@ spec:
# Sync policy
syncPolicy:
syncOptions:
- CreateNamespace=true
- CreateNamespace=true
ignoreDifferences:
- group: apps
kind: Deployment
jsonPointers:
- /metadata/annotations/creation
- group: Secret
jsonPointers:
- /data/my-password

8 changes: 6 additions & 2 deletions 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/talku43/gitops-cert-level-2-examples.git
targetRevision: HEAD
path: ./custom-diff/01-with-hpa

Expand All @@ -21,4 +21,8 @@ spec:
syncPolicy:
syncOptions:
- CreateNamespace=true

ignoreDifferences:
- group: apps
kind: Deployment
jsonPointers:
- /spec/replicas
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/talku43/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/talku43/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/talku43/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/talku43/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/talku43/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/talku43/gitops-cert-level-2-examples:1.0
2 changes: 1 addition & 1 deletion image-updater/example-app/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: ghcr.io/codefresh-contrib/gitops-cert-level-2-examples:1.0
image: ghcr.io/talku43/gitops-cert-level-2-examples:1.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
3 changes: 3 additions & 0 deletions sync-hooks-waves/06-waves-and-hooks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
generateName: cleanup-after-sync-
labels:
codefresh.io/cert: cleanup-job
annotations:
argocd.argoproj.io/sync-wave: "20"
argocd.argoproj.io/hook: PostSync
spec:
template:
spec:
Expand Down
3 changes: 3 additions & 0 deletions sync-hooks-waves/06-waves-and-hooks/db-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
generateName: my-db-upgrade-
labels:
codefresh.io/cert: db-job
annotations:
argocd.argoproj.io/sync-wave: "10"
argocd.argoproj.io/hook: PreSync
spec:
template:
spec:
Expand Down
3 changes: 3 additions & 0 deletions sync-hooks-waves/06-waves-and-hooks/disable-alerts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
generateName: disable-alerts-
labels:
codefresh.io/cert: disable-job
annotations:
argocd.argoproj.io/sync-wave: "20"
argocd.argoproj.io/hook: PreSync
spec:
template:
spec:
Expand Down
3 changes: 3 additions & 0 deletions sync-hooks-waves/06-waves-and-hooks/enable-alerts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
generateName: enable-alerts-
labels:
codefresh.io/cert: enable-job
annotations:
argocd.argoproj.io/sync-wave: "20"
argocd.argoproj.io/hook: PostSync
spec:
template:
spec:
Expand Down
3 changes: 3 additions & 0 deletions sync-hooks-waves/06-waves-and-hooks/grafana-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
generateName: grafana-notify-
labels:
codefresh.io/cert: grafana-job
annotations:
argocd.argoproj.io/sync-wave: "-10"
argocd.argoproj.io/hook: Sync
spec:
template:
spec:
Expand Down
Loading