Help us shape the future of Go! Take the 2026 Go Developer Survey

resources

package
v0.50.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Interval specifies the time between two polls.
	Interval = 10 * time.Second
	// Timeout specifies the timeout for the function PollImmediate to reach a certain status.
	Timeout = 5 * time.Minute
)

Variables

This section is empty.

Functions

func AssertClusterRole

func AssertClusterRole(t *testing.T, clients *utils.Clients, clusterRoleName string)

func AssertConfigMap

func AssertConfigMap(t *testing.T, clients *utils.Clients, ns, configMapName string)

func AssertRoleBinding

func AssertRoleBinding(t *testing.T, clients *utils.Clients, ns, roleBindingName string)

func AssertServiceAccount

func AssertServiceAccount(t *testing.T, clients *utils.Clients, ns, targetSA string)

func AssertTektonAddonCRReadyStatus

func AssertTektonAddonCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)

AssertTektonAddonCRReadyStatus verifies if the TektonAddon reaches the READY status.

func AssertTektonConfigCRReadyStatus

func AssertTektonConfigCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)

AssertTektonConfigCRReadyStatus verifies if the TektonConfig reaches the READY status.

func AssertTektonDashboardCRReadyStatus

func AssertTektonDashboardCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)

AssertTektonDashboardCRReadyStatus verifies if the TektonDashboard reaches the READY status.

func AssertTektonPipelineCRReadyStatus

func AssertTektonPipelineCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)

AssertTektonPipelineCRReadyStatus verifies if the TektonPipeline reaches the READY status.

func AssertTektonResultCRReadyStatus

func AssertTektonResultCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)

AssertTektonResultCRReadyStatus verifies if the TektonResult reaches the READY status.

func AssertTektonTriggerCRReadyStatus

func AssertTektonTriggerCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)

AssertTektonTriggerCRReadyStatus verifies if the TektonTrigger reaches the READY status.

func DeleteAndVerifyDeployments

func DeleteAndVerifyDeployments(t *testing.T, clients *utils.Clients, namespace, labelSelector string)

DeleteAndVerifyDeployments verify whether all the deployments for tektonpipelines are able to recreate, when they are deleted.

func EnsureTektonAddonExists

func EnsureTektonAddonExists(clients addonv1alpha1.TektonAddonInterface, names utils.ResourceNames) (*v1alpha1.TektonAddon, error)

EnsureTektonAddonExists creates a TektonAddon with the name names.TektonAddon, if it does not exist.

func EnsureTektonConfigExists

func EnsureTektonConfigExists(kubeClientSet *kubernetes.Clientset, clients configv1alpha1.TektonConfigInterface, names utils.ResourceNames) (*v1alpha1.TektonConfig, error)

EnsureTektonConfigExists creates a TektonConfig with the name names.TektonConfig, if it does not exist.

func EnsureTektonDashboardExists

func EnsureTektonDashboardExists(clients dashboardv1alpha1.TektonDashboardInterface, names utils.ResourceNames) (*v1alpha1.TektonDashboard, error)

EnsureTektonDashboardExists creates a TektonDashboard with the name names.TektonDashboard, if it does not exist.

func EnsureTektonPipelineExists

func EnsureTektonPipelineExists(clients pipelinev1alpha1.TektonPipelineInterface, names utils.ResourceNames) (*v1alpha1.TektonPipeline, error)

EnsureTektonPipelineExists creates a TektonPipeline with the name names.TektonPipeline, if it does not exist.

func EnsureTektonResultExists

func EnsureTektonResultExists(clients resultv1alpha1.TektonResultInterface, names utils.ResourceNames) (*v1alpha1.TektonResult, error)

EnsureTektonResultExists creates a TektonResult with the name names.TektonResult, if it does not exist.

func EnsureTektonTriggerExists

func EnsureTektonTriggerExists(clients triggerv1alpha1.TektonTriggerInterface, names utils.ResourceNames) (*v1alpha1.TektonTrigger, error)

EnsureTektonTriggerExists creates a TektonTrigger with the name names.TektonTrigger, if it does not exist.

func EnsureTestNamespaceExists

func EnsureTestNamespaceExists(clients *utils.Clients, name string) (*corev1.Namespace, error)

EnsureTestNamespaceExists creates a Test Namespace

func IsDeploymentAvailable

func IsDeploymentAvailable(d *appsv1.Deployment) (bool, error)

IsDeploymentAvailable will check the status conditions of the deployment and return true if the deployment is available.

func IsTektonAddonReady

func IsTektonAddonReady(s *v1alpha1.TektonAddon, err error) (bool, error)

IsTektonAddonReady will check the status conditions of the TektonAddon and return true if the TektonAddon is ready.

func IsTektonConfigReady

func IsTektonConfigReady(s *v1alpha1.TektonConfig, err error) (bool, error)

IsTektonConfigReady will check the status conditions of the TektonConfig and return true if the TektonConfig is ready.

func IsTektonDashboardReady

func IsTektonDashboardReady(s *v1alpha1.TektonDashboard, err error) (bool, error)

IsTektonDashboardReady will check the status conditions of the TektonDashboard and return true if the TektonDashboard is ready.

func IsTektonPipelineReady

func IsTektonPipelineReady(s *v1alpha1.TektonPipeline, err error) (bool, error)

IsTektonPipelineReady will check the status conditions of the TektonPipeline and return true if the TektonPipeline is ready.

func IsTektonResultReady

func IsTektonResultReady(s *v1alpha1.TektonResult, err error) (bool, error)

IsTektonResultReady will check the status conditions of the TektonResult and return true if the TektonResult is ready.

func IsTektonTriggerReady

func IsTektonTriggerReady(s *v1alpha1.TektonTrigger, err error) (bool, error)

IsTektonTriggerReady will check the status conditions of the TektonTrigger and return true if the TektonTrigger is ready.

func TektonAddonCRDelete

func TektonAddonCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)

TektonAddonCRDelete deletes tha TektonAddon to see if all resources will be deleted

func TektonConfigCRDelete

func TektonConfigCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)

TektonConfigCRDelete deletes tha TektonConfig to see if all resources will be deleted

func TektonDashboardCRDelete

func TektonDashboardCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)

TektonDashboardCRDelete deletes tha TektonDashboard to see if all resources will be deleted

func TektonPipelineCRDelete

func TektonPipelineCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)

TektonPipelineCRDelete deletes tha TektonPipeline to see if all resources will be deleted

func TektonResultCRDDelete

func TektonResultCRDDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)

TektonResultCRDDelete deletes tha TektonResult to see if all resources will be deleted

func TektonTriggerCRDelete

func TektonTriggerCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)

TektonTriggerCRDelete deletes tha TektonTrigger to see if all resources will be deleted

func WaitForTektonAddonState

func WaitForTektonAddonState(clients addonv1alpha1.TektonAddonInterface, name string,
	inState func(s *v1alpha1.TektonAddon, err error) (bool, error)) (*v1alpha1.TektonAddon, error)

WaitForTektonAddonState polls the status of the TektonAddon called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

func WaitForTektonConfigState

func WaitForTektonConfigState(clients configv1alpha1.TektonConfigInterface, name string,
	inState func(s *v1alpha1.TektonConfig, err error) (bool, error)) (*v1alpha1.TektonConfig, error)

WaitForTektonConfigState polls the status of the TektonConfig called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

func WaitForTektonDashboardState

func WaitForTektonDashboardState(clients dashboardv1alpha1.TektonDashboardInterface, name string,
	inState func(s *v1alpha1.TektonDashboard, err error) (bool, error)) (*v1alpha1.TektonDashboard, error)

WaitForTektonDashboardState polls the status of the TektonDashboard called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

func WaitForTektonPipelineState

func WaitForTektonPipelineState(clients pipelinev1alpha1.TektonPipelineInterface, name string,
	inState func(s *v1alpha1.TektonPipeline, err error) (bool, error)) (*v1alpha1.TektonPipeline, error)

WaitForTektonPipelineState polls the status of the TektonPipeline called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

func WaitForTektonResultState

func WaitForTektonResultState(clients resultv1alpha1.TektonResultInterface, name string,
	inState func(s *v1alpha1.TektonResult, err error) (bool, error)) (*v1alpha1.TektonResult, error)

WaitForTektonResultState polls the status of the TektonResult called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

func WaitForTektonTriggerState

func WaitForTektonTriggerState(clients triggerv1alpha1.TektonTriggerInterface, name string,
	inState func(s *v1alpha1.TektonTrigger, err error) (bool, error)) (*v1alpha1.TektonTrigger, error)

WaitForTektonTriggerState polls the status of the TektonTrigger called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL