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 ¶
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 ¶
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 ¶
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 ¶
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 Resource *fakeresourceclientset.Clientset Dynamic *dynamicclientset.Clientset }
Clients holds references to clients which are useful for reconciler tests.
type Resources ¶
type Resources struct { Namespaces []*corev1.Namespace ClusterTriggerBindings []*v1alpha1.ClusterTriggerBinding EventListeners []*v1alpha1.EventListener TriggerBindings []*v1alpha1.TriggerBinding TriggerTemplates []*v1alpha1.TriggerTemplate Deployments []*appsv1.Deployment Services []*corev1.Service ConfigMaps []*corev1.ConfigMap Secrets []*corev1.Secret ServiceAccounts []*corev1.ServiceAccount }
Resources represents the desired state of the system (i.e. existing resources) to seed controllers with.
func GetResourcesFromClients ¶
GetResourcesFromClients returns the Resources in the Clients provided Precondition: all Namespaces used in Resources must be listed in Resources.Namespaces nolint: golint