Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
0967379
change user
Jun 6, 2026
17b5b16
rm foldres
Jun 6, 2026
89e0533
change qa
Jun 6, 2026
5e40354
change qa
Jun 6, 2026
4af6ab9
change qa
Jun 6, 2026
31995f8
Update version.yml
Amikh Jun 7, 2026
3340e04
Update image version for webserver-simple
Amikh Jun 7, 2026
43027b4
fix
Jun 7, 2026
40fb4f4
fix
Jun 7, 2026
a3a8532
Delete argocd-apps-structure/apps/fake-invoices/envs/qa directory
Amikh Jun 7, 2026
8e11648
Delete argocd-apps-structure/apps/payments/envs/prod-eu directory
Amikh Jun 14, 2026
ccf6f44
Create envs
Amikh Jun 14, 2026
eb40cbf
Create deployment.yml
Amikh Jun 14, 2026
3b67539
Create kustomization.yml
Amikh Jun 14, 2026
2d2d652
Create replicas.yml
Amikh Jun 14, 2026
b02ea03
Create settings.yml
Amikh Jun 14, 2026
2858744
Create version.yml
Amikh Jun 14, 2026
053f6cb
Create test.yml
Amikh Jun 14, 2026
46bc2bf
fix
Jun 14, 2026
654d800
add prod
Jun 15, 2026
bb7be51
one
Jun 15, 2026
f57cc06
one
Jun 15, 2026
0536a04
cluster 2
Jun 15, 2026
e2b3a78
cluster 2
Jun 15, 2026
4aec07a
cluster 2
Jun 15, 2026
4162e05
add good commit
Jun 21, 2026
721d8ea
fix branch
Jun 21, 2026
85b7a65
bad
Jun 21, 2026
197ef4f
Merge pull request #1 from Amikh/my-billing-feature
Amikh Jun 21, 2026
1c0ad17
Merge branch 'main' into fix-queue-size
Amikh Jun 21, 2026
da5f4d7
Merge pull request #2 from Amikh/fix-queue-size
Amikh Jun 21, 2026
0eb6df7
test
Jun 21, 2026
ca56d9c
preview
Jun 21, 2026
0174f97
Merge branch 'main' into my-billing-feature
Amikh Jun 21, 2026
0a1f7b4
Merge pull request #4 from Amikh/my-billing-feature
Amikh Jun 21, 2026
6fbb19a
fix
Jun 21, 2026
f19d089
Merge branch 'my-billing-feature' of https://github.com/Amikh/gitops-…
Jun 21, 2026
c2ad380
Merge pull request #5 from Amikh/my-billing-feature
Amikh Jun 21, 2026
3df6545
fix location
Jun 21, 2026
b492b3a
PR3
Jun 21, 2026
06a3827
aaa
Jun 21, 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
Binary file added .DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ Codefresh GitOps Certification examples - Level 3 - GitOps Enterprise
This repository contains examples for the ArgoCD/GitOps certification workshops (Level 3)

Take the certification yourself at [https://codefresh.io/courses/get-gitops-certified/](https://learning.codefresh.io/)

"bad commit -test "

"good commit"

"bad commit"

Binary file added argocd-apps-structure/.DS_Store
Binary file not shown.
Binary file added argocd-apps-structure/apps/.DS_Store
Binary file not shown.
Binary file added argocd-apps-structure/apps/billing/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ resources:
patchesStrategicMerge:
- deployment.yml
- version.yml
- replicas.yml
- settings.yml


7 changes: 7 additions & 0 deletions argocd-apps-structure/apps/billing/envs/qa/replicas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 2
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ spec:
- name: webserver-simple
env:
- name: UI_THEME
value: "light"
value: "dark"
- name: CACHE_SIZE
value: "2048kb"
value: "1024kb"
- name: PAGE_LIMIT
value: "25"
- name: SORTING
Expand Down
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:2.0
Binary file added argocd-apps-structure/apps/orders/.DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
- name: webserver-simple
env:
- name: ENV
value: "qa"
value: "prod-eu"
- name: GPU_ENABLED
value: "1"

Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization


resources:
- ../../base


patchesStrategicMerge:
- deployment.yml
- version.yml
- replicas.yml
- settings.yml


Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
template:
spec:
containers:
- name: webserver-simple
env:
- name: ENV
value: "prod-us"
- name: GPU_ENABLED
value: "1"

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base


patchesStrategicMerge:
- deployment.yml
- version.yml
- replicas.yml
- settings.yml

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 10
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
template:
spec:
containers:
- name: webserver-simple
env:
- name: UI_THEME
value: "dark"
- name: CACHE_SIZE
value: "1024kb"
- name: PAGE_LIMIT
value: "25"
- name: SORTING
value: "ascending"
- name: N_BUCKETS
value: "42"
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:2.0
7 changes: 7 additions & 0 deletions argocd-apps-structure/apps/orders/envs/prod-eu/replicas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 10
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
- name: webserver-simple
env:
- name: UI_THEME
value: "light"
value: "dark"
- name: CACHE_SIZE
value: "2048kb"
- name: PAGE_LIMIT
Expand Down
11 changes: 11 additions & 0 deletions argocd-apps-structure/apps/orders/envs/prod-eu/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
spec:
template:
spec:
containers:
- name: webserver-simple
image: docker.io/kostiscodefresh/simple-env-app:2.0
1 change: 1 addition & 0 deletions argocd-apps-structure/apps/payments/base/envs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ spec:
value: "prod-eu"
- name: GPU_ENABLED
value: "1"

Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ patchesStrategicMerge:
- version.yml
- replicas.yml
- settings.yml

Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ kind: Deployment
metadata:
name: simple-deployment
spec:
replicas: 8
replicas: 8
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ spec:
- name: SORTING
value: "ascending"
- name: N_BUCKETS
value: "42"
value: "42"
8 changes: 4 additions & 4 deletions argocd-apps-structure/appsets/my-prod-appset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
goTemplateOptions: ["missingkey=error"]
generators:
- git:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-3-examples.git
repoURL: https://github.com/Amikh/gitops-cert-level-3-examples.git
revision: HEAD
directories:
- path: argocd-apps-structure/apps/*/envs/prod-us
Expand All @@ -22,14 +22,14 @@ spec:

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

# Destination cluster and namespace to deploy the application
destination:
server: https://kubernetes.default.svc
namespace: '{{index .path.segments 2}}-{{index .path.segments 4}}'

name: cluster-2

# Sync policy
syncPolicy:
Expand Down
6 changes: 3 additions & 3 deletions argocd-apps-structure/appsets/my-qa-appset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ spec:
goTemplateOptions: ["missingkey=error"]
generators:
- git:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-3-examples.git
repoURL: https://github.com/Amikh/gitops-cert-level-3-examples.git
revision: HEAD
directories:
- path: argocd-apps-structure/apps/*/envs/qa
- path: argocd-apps-structure/apps/*/envs/
template:
metadata:
name: '{{index .path.segments 2}}-{{index .path.segments 4}}'
Expand All @@ -21,7 +21,7 @@ spec:

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

Expand Down
4 changes: 2 additions & 2 deletions argocd-apps-structure/appsets/my-staging-appset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
goTemplateOptions: ["missingkey=error"]
generators:
- git:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-3-examples.git
repoURL: https://github.com/Amikh/gitops-cert-level-3-examples.git
revision: HEAD
directories:
- path: argocd-apps-structure/apps/*/envs/staging
Expand All @@ -21,7 +21,7 @@ spec:

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

Expand Down
2 changes: 1 addition & 1 deletion argocd-apps-structure/root-argocd-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
project: default
source:
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-3-examples.git
repoURL: https://github.com/amikh/gitops-cert-level-3-examples.git
targetRevision: HEAD
path: argocd-apps-structure/appsets
destination:
Expand Down
23 changes: 14 additions & 9 deletions preview-environments/pr-generator/pr-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,28 @@ apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: my-preview-apps
namespace: argocd

namespace: argocd
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- pullRequest:
github:
owner: codefresh-contrib
owner: amikh
repo: gitops-cert-level-3-examples
requeueAfterSeconds: 180
tokenRef:
secretName: github-token
key: token
requeueAfterSeconds: 1800
template:
metadata:
name: 'myapp-{{.branch}}'
name: 'myapp-{{.branch}}-{{.number}}'
spec:
source:
repoURL: 'https://github.com/codefresh-contrib/gitops-cert-level-3-examples.git'
targetRevision: HEAD
path: preview-environments/kustomize-preview-app/
repoURL: 'https://github.com/amikh/gitops-cert-level-3-examples.git'
targetRevision: '{{.head_sha}}'
path: preview-environments/kustomize-preview-app/
kustomize:
images:
- 'docker.io/kostiscodefresh/my-preview-app:{{.branch_slug}}'
Expand All @@ -29,6 +33,7 @@ spec:
namespace: 'preview-{{.branch_slug}}'
syncPolicy:
automated:
prune: true
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- CreateNamespace=true