Documentation ¶
Index ¶
- Constants
- func InjectionDisabledLabels() map[string]string
- func InjectionEnabledLabels() map[string]string
- func MakeBroker(namespace string) *v1alpha1.Broker
- func MakeRoleBinding(sa *corev1.ServiceAccount) *rbacv1.RoleBinding
- func MakeServiceAccount(namespace string) *corev1.ServiceAccount
- func OwnedLabels() map[string]string
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" ServiceAccountName = "eventing-broker-filter" RoleBindingName = "eventing-broker-filter" ClusterRoleName = "eventing-broker-filter" )
Variables ¶
This section is empty.
Functions ¶
func InjectionDisabledLabels ¶
func InjectionEnabledLabels ¶
func MakeBroker ¶
MakeBroker creates a default Broker object for Namespace 'ns'.
func MakeRoleBinding ¶
func MakeRoleBinding(sa *corev1.ServiceAccount) *rbacv1.RoleBinding
MakeRoleBinding creates a RoleBinding object for the Broker's filter service account 'sa' in the Namespace 'ns'.
func MakeServiceAccount ¶
func MakeServiceAccount(namespace string) *corev1.ServiceAccount
MakeServiceAccount creates a ServiceAccount object for the Namespace 'ns'.
func OwnedLabels ¶
OwnedLabels generates the labels present on injected broker resources.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.