Skip to content

Commit

Permalink
fix: update bitbucket es example yaml (#2113)
Browse files Browse the repository at this point in the history
* fix: update bitbucket es example

Signed-off-by: Daniel Soifer <daniel.soifer@codefresh.io>
  • Loading branch information
daniel-codefresh authored and whynowy committed Sep 10, 2022
1 parent b08721f commit e021d48
Showing 1 changed file with 39 additions and 33 deletions.
72 changes: 39 additions & 33 deletions examples/event-sources/bitbucket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ spec:
bitbucket:
# bitbucket eventsource example with basic auth strategy
example:
# key of the project
projectKey: "PROJECTKEY"
# owner of the repository
owner: "name-of-repo-owner"
# repository slug
repositorySlug: "name-of-repository"
# Bitbucket will send events to following port and endpoint
# Bitbucket repository list
repositories:
- owner: "name-of-owner" # owner of the repository
repositorySlug: "name-of-repository1" # repository slug
- owner: "name-of-owner"
repositorySlug: "name-of-repository2"
# events to listen to
# Visit https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/
events:
- repo:push
# Bitbucket will send webhook events to the following port and endpoint
webhook:
# endpoint to listen to events on
endpoint: /push
Expand All @@ -29,11 +33,17 @@ spec:
# The name for the service is in `<event-source-name>-eventsource-svc` format.
# You will need to create an Ingress or Openshift Route for the event-source service so that it can be reached from Bitbucket.
url: http://url-that-is-reachable-from-bitbucket
# events to listen to
# Visit https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/
events:
- repo:push
# Delete the webhook when the eventsource is deleted
deleteHookOnFinish: true
auth:
# # oauthToken refers to K8s secret that stores the bitbucket OAuth bearer token
# # Visit https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/
# oauthToken:
# # Name of the K8s secret that contains the oauth token
# name: bitbucket-access
# # Key within the K8s secret whose corresponding value (must be base64 encoded) is oauth token
# key: token

# basic refers to Basic Auth strategy and can be used with App passwords
# Visit https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/
basic:
Expand All @@ -50,25 +60,13 @@ spec:
# Key within the K8s secret whose corresponding value (must be base64 encoded) is password
key: password

# # oauthToken refers to K8s secret that stores the bitbucket OAuth bearer token
# # Visit https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/
# oauthToken:
# # Name of the K8s secret that contains the oauth token
# name: bitbucket-access
# # Key within the K8s secret whose corresponding value (must be base64 encoded) is oauth token
# key: token

# Delete the webhook when the eventsource is deleted
deleteHookOnFinish: true

# # bitbucket eventsource example with oauth bearer token auth strategy
# example-oauth-token:
# # key of the project
# projectKey: "PROJECTKEY"
# # bitbucket eventsource example with deprecated syntax using basic auth strategy
# example-with-deprecated-repo-syntax:
# # owner of the repository
# owner: "name-of-repo-owner"
# # repository slug
# repositorySlug: "name-of-repo"
# repositorySlug: "name-of-repository"
# # Bitbucket will send events to following port and endpoint
# webhook:
# # endpoint to listen to events on
Expand All @@ -87,12 +85,20 @@ spec:
# events:
# - repo:push
# auth:
# # oauthToken refers to K8s secret that stores the bitbucket oauth bearer token
# # Visit https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/
# oauthToken:
# # Name of the K8s secret that contains the oauth token
# name: bitbucket-access
# # Key within the K8s secret whose corresponding value (must be base64 encoded) is oauth token
# key: token
# # basic refers to Basic Auth strategy and can be used with App passwords
# # Visit https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/
# basic:
# # username refers to K8s secret that stores the bitbucket username
# username:
# # Name of the K8s secret that contains the username
# name: bitbucket-access
# # Key within the K8s secret whose corresponding value (must be base64 encoded) is username
# key: username
# # password refers to K8s secret that stores the bitbucket password (including App passwords)
# password:
# # Name of the K8s secret that contains the password
# name: bitbucket-access
# # Key within the K8s secret whose corresponding value (must be base64 encoded) is password
# key: password
# # Delete the webhook when the eventsource is deleted
# deleteHookOnFinish: true

0 comments on commit e021d48

Please sign in to comment.