Documentation ¶
Index ¶
- Constants
- func ConfigMapPropagationOwnedLabels() map[string]string
- func InjectionDisabledLabels() map[string]string
- func InjectionEnabledLabels() map[string]string
- func MakeBroker(ns *corev1.Namespace) *v1beta1.Broker
- func MakeConfigMapPropagation(namespace *corev1.Namespace) *v1alpha1.ConfigMapPropagation
- func MakeRoleBinding(name string, ns *corev1.Namespace, nsName string, sa *corev1.ServiceAccount, ...) *rbacv1.RoleBinding
- func MakeSecret(name string) *corev1.Secret
- func MakeServiceAccount(namespace *corev1.Namespace, name 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" 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
ConfigMapPropagationOwnedLabels generates the labels present on injected broker resources.
func InjectionDisabledLabels ¶
func InjectionEnabledLabels ¶
func MakeBroker ¶
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
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 ¶
OwnedLabels generates the labels present on injected broker resources.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.