Documentation ¶
Index ¶
- Constants
- func ConfigRoleBindingName(saName, ns string) string
- func InjectionDisabledLabels() map[string]string
- func InjectionEnabledLabels() map[string]string
- func MakeBroker(namespace string) *v1alpha1.Broker
- func MakeRoleBinding(name string, ns string, sa *corev1.ServiceAccount, clusterRoleName string) *rbacv1.RoleBinding
- func MakeSecret(name string) *corev1.Secret
- func MakeServiceAccount(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" )
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
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 InjectionEnabledLabels ¶
func MakeBroker ¶
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 MakeSecret ¶ added in v0.12.0
MakeSecret creates a Secret object.
func MakeServiceAccount ¶
func MakeServiceAccount(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.