diff --git a/manifests/demo.yaml b/manifests/demo.yaml new file mode 100644 index 0000000..1e1d6e4 --- /dev/null +++ b/manifests/demo.yaml @@ -0,0 +1,25 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: shell-demo +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/managed-by: EventListener + app.kubernetes.io/part-of: Triggers + eventlistener: github-event-listener + template: + metadata: + labels: + app.kubernetes.io/managed-by: EventListener + app.kubernetes.io/part-of: Triggers + eventlistener: github-event-listener + spec: + containers: + - name: nginx + image: nginx + imagePullPolicy: "Always" + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/manifests/github-event-listener.yaml b/manifests/github-event-listener.yaml index 25d710a..6e6b844 100644 --- a/manifests/github-event-listener.yaml +++ b/manifests/github-event-listener.yaml @@ -9,9 +9,9 @@ metadata: spec: params: - name: gitrevision - value: $(body) + value: $(body.repository.default_branch) - name: gitrepositoryurl - value: $(body) + value: $(body.repository.clone_url) # - name: prurl # value: $(body.pull_request.html_url) # - name: repo diff --git a/manifests/github-webhook-setup.yaml b/manifests/github-webhook-setup.yaml index bddc912..9f726a8 100644 --- a/manifests/github-webhook-setup.yaml +++ b/manifests/github-webhook-setup.yaml @@ -88,23 +88,10 @@ spec: - name: GitHubSecretStringKey value: secret - name: ExternalDomain - value: "ingress.llocal.host:31040/github" + value: "ingress.llocal.host" timeout: 1000s serviceAccountName: service-acc --- -apiVersion: extensions/v1beta1 -kind: Ingress -metadata: - name: github-ingress -spec: - rules: - - http: - paths: - - path: /github - backend: - serviceName: manual-service - servicePort: 8080 ---- apiVersion: v1 kind: Service metadata: @@ -115,12 +102,11 @@ spec: port: 8080 protocol: TCP targetPort: 8080 - nodePort: 30037 selector: app.kubernetes.io/managed-by: EventListener app.kubernetes.io/part-of: Triggers eventlistener: github-event-listener - type: NodePort + type: LoadBalancer