github.com/argoproj/argo-events@v1.9.1/examples/event-sources/bitbucketserver.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: EventSource 3 metadata: 4 name: bitbucketserver 5 spec: 6 service: 7 ports: 8 - port: 12000 9 targetPort: 12000 10 bitbucketserver: 11 example: 12 # Bitbucket Server repository list 13 repositories: 14 - projectKey: "PROJECTKEY1" # key of the project 15 repositorySlug: "name-of-repository1" # repository slug 16 - projectKey: "PROJECTKEY2" 17 repositorySlug: "name-of-repository2" 18 19 # Bitbucket Server will send events to following port and endpoint 20 webhook: 21 # endpoint to listen to events on 22 endpoint: /push 23 # port to run internal HTTP server on 24 port: "12000" 25 # HTTP request method to allow. In this case, only POST requests are accepted 26 method: POST 27 # url the event-source will use to register in Bitbucket Server. 28 # This url must be reachable from outside the cluster. 29 # The name for the service is in `<event-source-name>-eventsource-svc` format. 30 # You will need to create an Ingress or Openshift Route for the event-source service so that it can be reached from Bitbucket Server. 31 url: http://url-that-is-reachable-from-Bitbucket-Server 32 # events to listen to 33 # Visit https://confluence.atlassian.com/bitbucketserver/event-payload-938025882.html 34 events: 35 - repo:refs_changed 36 # accessToken refers to K8s secret that stores the bitbucket personal api token 37 accessToken: 38 # Name of the K8s secret that contains the access token 39 name: bitbucketserver-access 40 # Key within the K8s secret whose corresponding value (must be base64 encoded) is access token 41 key: token 42 webhookSecret: 43 # Name of the K8s secret that contains the webhook secret 44 name: bitbucketserver-access 45 # Key within the K8s secret whose corresponding value (must be base64 encoded) is the webhook secret 46 key: secret 47 # Delete the webhook when the eventsource is deleted 48 deleteHookOnFinish: true 49 # Bitbucket Base url to the REST API. This URL should include the "/rest" path. 50 bitbucketserverBaseURL: https://my-bitbucket-server.com/rest 51 52 # example-with-deprecated-repo-syntax: 53 # # key of the project 54 # projectKey: "PROJECTKEY" 55 # # repository slug 56 # repositorySlug: "name-of-repository" 57 # # Bitbucket Server will send events to following port and endpoint 58 # webhook: 59 # # endpoint to listen to events on 60 # endpoint: /push 61 # # port to run internal HTTP server on 62 # port: "12000" 63 # # HTTP request method to allow. In this case, only POST requests are accepted 64 # method: POST 65 # # url the event-source will use to register in Bitbucket Server. 66 # # This url must be reachable from outside the cluster. 67 # # The name for the service is in `<event-source-name>-eventsource-svc` format. 68 # # You will need to create an Ingress or Openshift Route for the event-source service so that it can be reached from Bitbucket Server. 69 # url: http://url-that-is-reachable-from-Bitbucket-Server 70 # # events to listen to 71 # # Visit https://confluence.atlassian.com/bitbucketserver/event-payload-938025882.html 72 # events: 73 # - repo:refs_changed 74 # # accessToken refers to K8s secret that stores the bitbucket personal api token 75 # accessToken: 76 # # Name of the K8s secret that contains the access token 77 # name: bitbucketserver-access 78 # # Key within the K8s secret whose corresponding value (must be base64 encoded) is access token 79 # key: token 80 # webhookSecret: 81 # # Name of the K8s secret that contains the webhook secret 82 # name: bitbucketserver-access 83 # # Key within the K8s secret whose corresponding value (must be base64 encoded) is the webhook secret 84 # key: secret 85 # # Delete the webhook when the eventsource is deleted 86 # deleteHookOnFinish: true 87 # # Bitbucket Base url to the REST API. This URL should include the "/rest" path. 88 # bitbucketserverBaseURL: https://my-bitbucket-server.com/rest