Skip to content

Commit 1997845

Browse files
committed
ci: Use python specific naming on GH PR eventlistener & co
Signed-off-by: Ferenc Géczi <[email protected]>
1 parent a14d364 commit 1997845

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.tekton/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,6 @@ Ensure that the ping is received from GitHub, and that it is filtered out so
267267
a simple ping event does not trigger any `PipelineRun` unnecessarily.
268268

269269
````bash
270-
eventlistener_pod=$(kubectl get pods -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' | grep el-github-pr)
271-
kubectl logs "${eventlistener_pod}" | grep 'event type ping is not allowed'
270+
eventlistener_pod=$(kubectl get pods -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' | grep el-github-pr-python-eventlistener-)
271+
kubectl logs -f "${eventlistener_pod}" | grep 'event type ping is not allowed'
272272
````

.tekton/github-pr-eventlistener.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: triggers.tekton.dev/v1beta1
22
kind: TriggerTemplate
33
metadata:
4-
name: github-pr-pipeline-template
4+
name: github-pr-python-tracer-pipeline-template
55
spec:
66
params:
77
- description: The git branch name
@@ -41,7 +41,7 @@ spec:
4141
apiVersion: triggers.tekton.dev/v1beta1
4242
kind: TriggerBinding
4343
metadata:
44-
name: github-pr-binding
44+
name: github-pr-python-tracer-binding
4545
spec:
4646
params:
4747
- name: git-branch
@@ -56,7 +56,7 @@ spec:
5656
apiVersion: triggers.tekton.dev/v1beta1
5757
kind: EventListener
5858
metadata:
59-
name: github-pr-eventlistener
59+
name: github-pr-python-eventlistener
6060
spec:
6161
serviceAccountName: tekton-triggers-eventlistener-serviceaccount
6262
triggers:
@@ -97,6 +97,6 @@ spec:
9797
# The git branch name shortened and converted to RFC 1123 subdomain names
9898
expression: 'body.pull_request.head.ref.truncate(38).lowerAscii().translate("_", "-")'
9999
bindings:
100-
- ref: github-pr-binding
100+
- ref: github-pr-python-tracer-binding
101101
template:
102-
ref: github-pr-pipeline-template
102+
ref: github-pr-python-tracer-pipeline-template
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: networking.k8s.io/v1
22
kind: Ingress
33
metadata:
4-
name: github-webhook-ingress
4+
name: github-pr-python-webhook-ingress
55
spec:
66
ingressClassName: public-iks-k8s-nginx
77
tls:
@@ -11,10 +11,10 @@ spec:
1111
- host: <ENTER_YOUR_DOMAIN_NAME_HERE>
1212
http:
1313
paths:
14-
- path: /hooks
14+
- path: /github-pr-python-hooks
1515
pathType: Exact
1616
backend:
1717
service:
18-
name: el-github-pr-eventlistener
18+
name: el-github-pr-python-eventlistener
1919
port:
2020
number: 8080

0 commit comments

Comments
 (0)