eventlisteners

package
v0.0.47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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, error)

Generate will create the required eventlisteners.

func GenerateRoute added in v0.0.19

func GenerateRoute(ns string) (interface{}, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL