Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GitOpsWebhookSecret is the name of the generated secret for hooks from // the GitOps repository. GitOpsWebhookSecret = "gitops-webhook-secret" //nolint:gosec // WebhookSecretKey is the name of the generated secret for hooks from the // bootstrapped application. WebhookSecretKey = "webhook-secret-key" )
Filters for interceptors
View Source
const GitOpsWebhookEventListenerRouteName = "gitops-webhook-event-listener-route"
GitOpsWebhookEventListenerRouteName is the OpenShift Route name for GitOps Webhook Listener
Variables ¶
This section is empty.
Functions ¶
func CreateELFromTriggers ¶
func CreateELFromTriggers(cicdNS, saName string, triggers []triggersv1.EventListenerTrigger) *triggersv1.EventListener
CreateELFromTriggers creates an EventListener from a supplied set of trigger, with the provided namespace and name.
func Generate ¶
func Generate(repo scm.Repository, ns, saName, secretName string) triggersv1.EventListener
Generate will create the required eventlisteners.
func GenerateRoute ¶ added in v0.0.19
GenerateRoute generates an OpenShift route for the EventListener.
It strips out the Status field from the route as this causes issues when being created in a cluster.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.