eventing

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "eventing.knative.dev"

	// BrokerLabelKey is the label key on Triggers and Subscriptions
	// to indicate to which Broker they belong to.
	BrokerLabelKey = GroupName + "/broker"

	// BrokerClassKey is the annotation key on Brokers to indicate
	// which Controller is responsible for them.
	BrokerClassKey = GroupName + "/broker.class"

	// ChannelBrokerClassValue is the value we use to specify the
	// Broker using channels. As in Broker from this repository
	// pkg/reconciler/broker
	ChannelBrokerClassValue = "ChannelBasedBroker"

	// MTChannelBrokerClassValue is the value we use to specify the
	// Broker using channels, but the resources (ingress,filter) run
	// in the system namespace. As in Broker from this repository
	// pkg/reconciler/mtbroker
	MTChannelBrokerClassValue = "MTChannelBasedBroker"

	// ScopeAnnotationKey is the annotation key to indicate
	// the scope of the component handling a given resource.
	// Valid values are: cluster, namespace, resource.
	ScopeAnnotationKey = GroupName + "/scope"

	// ScopeResource indicates that the resource
	// must be handled by a dedicated component
	ScopeResource = "resource"

	// ScopeNamespace indicates that the resource
	// must be handled by the namespace-scoped component
	ScopeNamespace = "namespace"

	// ScopeCluster indicates the resource must be
	// handled by the cluster-scoped component
	ScopeCluster = "cluster"

	// EventTypesAnnotationKey is the annotation key to specify
	// if a Source has event types defines in its CRD.
	EventTypesAnnotationKey = "registry.knative.dev/eventTypes"
)

Variables

View Source
var (
	// TriggersResource represents a Knative Trigger
	TriggersResource = schema.GroupResource{
		Group:    GroupName,
		Resource: "triggers",
	}
	// BrokersResource represents a Knative Broker
	BrokersResource = schema.GroupResource{
		Group:    GroupName,
		Resource: "brokers",
	}
	// EventTypesResource represents a Knative EventType
	EventTypesResource = schema.GroupResource{
		Group:    GroupName,
		Resource: "eventtypes",
	}
)

Functions

func DefaultBrokerClassIfUnset added in v0.14.0

func DefaultBrokerClassIfUnset(ctx context.Context, obj *metav1.ObjectMeta)

DefaultBrokerClassIfUnset sets default broker class annotation if unset.

Types

This section is empty.

Directories

Path Synopsis
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.
Package v1beta1 is the v1beta1 version of the API.
Package v1beta1 is the v1beta1 version of the API.

Jump to

Keyboard shortcuts

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