Skip to content

Commit 9bf0de0

Browse files
App of apps for image updater example
1 parent 88a0be7 commit 9bf0de0

File tree

6 files changed

+54
-6
lines changed

6 files changed

+54
-6
lines changed

image-updater/semver-example/deployment.yaml renamed to image-updater/01-always-latest/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ spec:
1515
spec:
1616
containers:
1717
- name: webserver-simple
18-
image: docker.io/kostiscodefresh/gitops-simple-app:v1.0
18+
image: ghcr.io/codefresh-contrib/gitops-cert-level-2-examples:latest
1919
ports:
2020
- containerPort: 8080
File renamed without changes.

image-updater/always-latest/deployment.yaml renamed to image-updater/02-semver-example/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ spec:
1515
spec:
1616
containers:
1717
- name: webserver-simple
18-
image: docker.io/kostiscodefresh/gitops-simple-app:v1.0
18+
image: ghcr.io/codefresh-contrib/gitops-cert-level-2-examples:2.0
1919
ports:
2020
- containerPort: 8080

image-updater/semver-example/service.yaml renamed to image-updater/02-semver-example/service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ kind: Service
33
metadata:
44
name: simple-service
55
spec:
6-
type: NodePort
6+
type: ClusterIP
77
selector:
88
app: trivial-go-web-app
99
ports:
10-
- nodePort: 31000
11-
protocol: TCP
12-
port: 8080
10+
- protocol: TCP
11+
port: 80
12+
targetPort: 8080
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: always-latest01
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
11+
source:
12+
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
13+
targetRevision: HEAD
14+
path: ./image-updater/01-always-latest
15+
16+
destination:
17+
server: https://kubernetes.default.svc
18+
namespace: example02
19+
20+
# Sync policy
21+
syncPolicy:
22+
syncOptions:
23+
- CreateNamespace=true
24+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: follow-semver02
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
11+
source:
12+
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
13+
targetRevision: HEAD
14+
path: ./image-updater/02-semver-example
15+
16+
destination:
17+
server: https://kubernetes.default.svc
18+
namespace: example01
19+
20+
# Sync policy
21+
syncPolicy:
22+
syncOptions:
23+
- CreateNamespace=true
24+

0 commit comments

Comments
 (0)