Documentation ¶
Index ¶
- func AddTektonResources(clientset *fakekubeclientset.Clientset)
- func CollectPodLogsWithLabel(c kubernetes.Interface, namespace, labelSelector string) (string, error)
- func CompareParams(x, y pipelinev1.Param) bool
- func ToUnstructured(t *testing.T, in interface{}) *unstructured.Unstructured
- func WaitFor(waitFunc wait.ConditionFunc) error
- type Assets
- type Clients
- type Resources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTektonResources ¶ added in v0.2.0
func AddTektonResources(clientset *fakekubeclientset.Clientset)
AddTektonResources will update clientset to know it knows about the types it is expected to be able to interact with.
func CollectPodLogsWithLabel ¶
func CollectPodLogsWithLabel(c kubernetes.Interface, namespace, labelSelector string) (string, error)
CollectPodLogsWithLabel will get the logs of all the Pods given a labelSelector
func CompareParams ¶ added in v0.2.0
func CompareParams(x, y pipelinev1.Param) bool
CompareParams can be used with comparison options such as `cmpopts.SortSlices` so we can ignore the ordering of params.
func ToUnstructured ¶ added in v0.2.0
func ToUnstructured(t *testing.T, in interface{}) *unstructured.Unstructured
ToUnstructured returns an Unstructured object from interface in.
func WaitFor ¶
func WaitFor(waitFunc wait.ConditionFunc) error
WaitFor waits for the specified ConditionFunc every internal until the timeout.
Types ¶
type Assets ¶ added in v0.2.0
type Assets struct { Controller *controller.Impl Clients Clients }
Assets holds references to the controller and clients.
type Clients ¶
type Clients struct { Kube *fakekubeclientset.Clientset Triggers *faketriggersclientset.Clientset Pipeline *fakepipelineclientset.Clientset }
Clients holds references to clients which are useful for reconciler tests.
type Resources ¶ added in v0.2.0
type Resources struct { Namespaces []*corev1.Namespace EventListeners []*v1alpha1.EventListener TriggerBindings []*v1alpha1.TriggerBinding TriggerTemplates []*v1alpha1.TriggerTemplate Deployments []*appsv1.Deployment Services []*corev1.Service ConfigMaps []*corev1.ConfigMap }
Resources represents the desired state of the system (i.e. existing resources) to seed controllers with.
func GetResourcesFromClients ¶ added in v0.2.0
GetResourcesFromClients returns the Resources in the Clients provided Precondition: all Namespaces used in Resources must be listed in Resources.Namespaces nolint: golint