Documentation ¶
Index ¶
- Constants
- func MakeChannelServiceName(name string) string
- func MakeDispatcher(args DispatcherArgs) *appsv1.Deployment
- func MakeDispatcherService(namespace string) *corev1.Service
- func MakeK8sService(kc *v1alpha1.KinesisChannel, opts ...ServiceOption) (*corev1.Service, error)
- func MakeRoleBinding(ns, name string, sa *corev1.ServiceAccount, roleName string) *rbacv1.RoleBinding
- func MakeServiceAccount(namespace, name string) *corev1.ServiceAccount
- func MakeServiceExternalName(namespace, service string) string
- type DispatcherArgs
- type ServiceOption
Constants ¶
const ( MessagingRoleLabel = "messaging.triggermesh.dev/role" MessagingRole = "kinesis-channel" )
Variables ¶
This section is empty.
Functions ¶
func MakeChannelServiceName ¶
func MakeDispatcher ¶
func MakeDispatcher(args DispatcherArgs) *appsv1.Deployment
MakeDispatcher generates the dispatcher deployment for the Kinesis channel.
func MakeDispatcherService ¶
MakeDispatcherService creates the Kinesis dispatcher service.
func MakeK8sService ¶
func MakeK8sService(kc *v1alpha1.KinesisChannel, opts ...ServiceOption) (*corev1.Service, error)
MakeK8sService creates a new K8s Service for a Channel resource. It also sets the appropriate OwnerReferences on the resource so handleObject can discover the Channel resource that 'owns' it. As well as being garbage collected when the Channel is deleted.
func MakeRoleBinding ¶
func MakeRoleBinding(ns, name string, sa *corev1.ServiceAccount, roleName string) *rbacv1.RoleBinding
MakeRoleBinding creates a RoleBinding object for the Kinesis dispatcher service account 'sa' in the Namespace 'ns'.
func MakeServiceAccount ¶
func MakeServiceAccount(namespace, name string) *corev1.ServiceAccount
MakeServiceAccount creates a ServiceAccount.
func MakeServiceExternalName ¶ added in v1.5.0
Types ¶
type DispatcherArgs ¶
type ServiceOption ¶
ServiceOption can be used to optionally modify the K8s service in MakeK8sService.
func ExternalService ¶
func ExternalService(namespace, service string) ServiceOption
ExternalService is a functional option for MakeK8sService to create a K8s service of type ExternalName pointing to the specified service in a namespace.