Skip to content

Commit 24fbc94

Browse files
Added dummy app
1 parent 8d24021 commit 24fbc94

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: simple-deployment
6+
spec:
7+
replicas: 1
8+
selector:
9+
matchLabels:
10+
app: trivial-go-web-app
11+
template:
12+
metadata:
13+
labels:
14+
app: trivial-go-web-app
15+
spec:
16+
containers:
17+
- name: webserver-simple
18+
image: docker.io/kostiscodefresh/gitops-simple-app:v1.0
19+
ports:
20+
- containerPort: 8080

notifications/dummy-app/service.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: simple-service
5+
spec:
6+
type: ClusterIP
7+
selector:
8+
app: trivial-go-web-app
9+
ports:
10+
- protocol: TCP
11+
port: 80
12+
targetPort: 8080

notifications/webhook-setup/argocd-notifications-cm.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
data:
3-
service.webhook.dummy: |
4-
url: https://webhook.site/fb7d9332-f789-4a5d-b2da-b70bb4c2cb42
3+
service.webhook.tester: |
4+
url: http://notification-internal-service.tester
55
template.app-deployed: |
66
email:
77
subject: New version of an application {{.app.metadata.name}} is up and running.

notifications/webhook-setup/simple-notificationa-app.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ kind: Application
33
metadata:
44
name: simple-nofication-app
55
annotations:
6-
notifications.argoproj.io/subscribe.on-sync-succeeded.dummy: ""
6+
notifications.argoproj.io/subscribe.on-sync-succeeded.tester: ""
77
spec:
88
destination:
99
namespace: demo
1010
server: https://kubernetes.default.svc
1111
project: default
1212
source:
13-
path: ./simple-application
13+
path: ./notifications/dummy-app
1414
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples
1515
targetRevision: HEAD
1616
syncPolicy:

0 commit comments

Comments
 (0)