Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Labels ¶
Labels returns map which holds the label of "knative-eventing-source" and "knative-eventing-source-name".
func MakeService ¶
func MakeService(args *ServiceArgs) *v1.Service
MakeService generates, but does not create, a Service for the given DockerHubSource.
Types ¶
type ServiceArgs ¶
type ServiceArgs struct { ReceiveAdapterImage string Source *sourcesv1alpha1.DockerHubSource EventSource string AdditionalEnvs []corev1.EnvVar Context context.Context }
ServiceArgs contains what the kservice needs.
func (*ServiceArgs) GetEnv ¶
func (args *ServiceArgs) GetEnv() []corev1.EnvVar
GetEnv return EnvVar used by the ksvc.
Click to show internal directories.
Click to hide internal directories.