resources

package
v0.14.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label to enable knative-eventing in a namespace.
	InjectionLabelKey           = "knative-eventing-injection"
	InjectionEnabledLabelValue  = "enabled"
	InjectionDisabledLabelValue = "disabled"
	InjectedResourceLabel       = "eventing.knative.dev/namespaceInjected"
	CmpDefaultLabelKey          = "knative.dev/config-category"
	CmpDefaultLabelValue        = "eventing"
)
View Source
const (
	DefaultBrokerName = "default"

	FilterServiceAccountName = "eventing-broker-filter"
	FilterRoleBindingName    = "eventing-broker-filter"
	FilterClusterRoleName    = "eventing-broker-filter"

	IngressServiceAccountName = "eventing-broker-ingress"
	IngressRoleBindingName    = "eventing-broker-ingress"
	IngressClusterRoleName    = "eventing-broker-ingress"

	DefaultConfigMapPropagationName = "eventing"
)

Variables

This section is empty.

Functions

func ConfigMapPropagationOwnedLabels added in v0.13.0

func ConfigMapPropagationOwnedLabels() map[string]string

ConfigMapPropagationOwnedLabels generates the labels present on injected broker resources.

func InjectionDisabledLabels

func InjectionDisabledLabels() map[string]string

func InjectionEnabledLabels

func InjectionEnabledLabels() map[string]string

func MakeBroker

func MakeBroker(ns *corev1.Namespace) *v1beta1.Broker

MakeBroker creates a default Broker object for Namespace 'namespace'.

func MakeConfigMapPropagation added in v0.13.0

func MakeConfigMapPropagation(namespace *corev1.Namespace) *v1alpha1.ConfigMapPropagation

MakeConfigMapPropagation creates a default ConfigMapPropagation object for Namespace 'namespace'.

func MakeRoleBinding

func MakeRoleBinding(name string, ns *corev1.Namespace, nsName string, sa *corev1.ServiceAccount, clusterRoleName string) *rbacv1.RoleBinding

MakeRoleBinding creates a RoleBinding object for the Broker's filter service account 'sa' in the Namespace 'ns'.

func MakeSecret added in v0.12.0

func MakeSecret(name string) *corev1.Secret

MakeSecret creates a Secret object.

func MakeServiceAccount

func MakeServiceAccount(namespace *corev1.Namespace, name string) *corev1.ServiceAccount

MakeServiceAccount creates a ServiceAccount object for the Namespace 'ns'.

func OwnedLabels

func OwnedLabels() map[string]string

OwnedLabels generates the labels present on injected broker resources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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