resources

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 5 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"
)
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"

	ConfigClusterRoleName = "eventing-config-reader"
)

Variables

This section is empty.

Functions

func ConfigRoleBindingName added in v0.7.0

func ConfigRoleBindingName(saName, ns string) string

ConfigRoleBindingName returns a name for a RoleBinding allowing access to the shared ConfigMaps from a service account in another namespace. Because these are all created in the system namespace, they must be named for their subject namespace.

func InjectionDisabledLabels

func InjectionDisabledLabels() map[string]string

func InjectionEnabledLabels

func InjectionEnabledLabels() map[string]string

func MakeBroker

func MakeBroker(namespace string) *v1alpha1.Broker

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

func MakeRoleBinding

func MakeRoleBinding(name string, ns 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 MakeServiceAccount

func MakeServiceAccount(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