Skip to content

Commit

Permalink
github-jira-proxy, prow, plugin: add plugin that checks github webhooks
Browse files Browse the repository at this point in the history
Signed-off-by: avlitman <alitman@redhat.com>
  • Loading branch information
avlitman committed Aug 29, 2024
1 parent fb5890c commit 494a794
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
2 changes: 2 additions & 0 deletions github/ci/prow-deploy/kustom/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ resources:
- manifests/local/prow-phased-service.yaml
- manifests/local/referee-deployment.yaml
- manifests/local/referee-service.yaml
- manifests/local/github-jira-proxy-deployment.yaml
- manifests/local/github-jira-proxy-service.yaml
- manifests/local/referee-servicemonitor.yaml
- manifests/local/release-blocker_deployment.yaml
- manifests/local/release-blocker_service.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: github-jira-proxy
labels:
app: github-jira-proxy
spec:
replicas: 1
selector:
matchLabels:
app: github-jira-proxy
template:
metadata:
labels:
app: github-jira-proxy
spec:
containers:
- name: github-jira-proxy
image: quay.io/alitman_storage_ocs/github-proxy:v0.0.3
args:
- '--github-webhook-secret-path=/etc/webhook-github/secret'
- '--jira-webhook-secret-path=/etc/webhook-jira/url'
ports:
- containerPort: 9900
volumeMounts:
- name: github-webhook-secret
mountPath: /etc/webhook-github
readOnly: true
- name: jira-webhook-url
mountPath: /etc/webhook-jira
readOnly: true
volumes:
- name: github-webhook-secret
secret:
secretName: github-webhook-secret
- name: jira-webhook-url
secret:
secretName: jira-webhook-url
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
name: github-jira-proxy
namespace: default
spec:
tls:
- hosts:
- prow.ci.kubevirt.io
secretName: github-jira-proxy-tls
rules:
- host: prow.ci.kubevirt.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: github-jira-proxy
port:
number: 80
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: github-jira-proxy-service
spec:
selector:
app: github-jira-proxy
ports:
- protocol: TCP
port: 80
targetPort: 9900

0 comments on commit 494a794

Please sign in to comment.