resources

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDashboardInstallerSets added in v0.55.0

func AssertDashboardInstallerSets(t *testing.T, clients *utils.Clients)

AssertTektonInstallerSets verifies if the TektonInstallerSets are created.

func AssertTektonAddonCRReadyStatus

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

AssertTektonAddonCRReadyStatus verifies if the TektonAddon reaches the READY status.

func AssertTektonChainCRReadyStatus added in v0.55.0

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

AssertTektonChainCRReadyStatus verifies if the TektonChain 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 AssertTektonHubCRReadyStatus added in v0.63.0

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

AssertTektonHubCRReadyStatus verifies if the TektonHub reaches the READY status.

func AssertTektonInstallerSets added in v0.54.0

func AssertTektonInstallerSets(t *testing.T, clients *utils.Clients)

AssertTektonInstallerSets verifies if the TektonInstallerSets are created.

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 CosignGenerateKeyPair added in v0.57.0

func CosignGenerateKeyPair(namespace, secretName string) error

func CosignVerifyBlobAttestation added in v0.65.0

func CosignVerifyBlobAttestation(key, signature, payload string) error

cosign verify-blob-attestation --insecure-ignore-tlog --key k8s://tekton-chains/signing-secrets --signature sig --type slsaprovenance --check-claims=false /dev/null

func CreateNamespace added in v0.67.0

func CreateNamespace(kubeClient kubernetes.Interface, namespace string) error

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 DeleteChainsPod added in v0.57.0

func DeleteChainsPod(kubeclient kubernetes.Interface, namespace string) error

func DeleteNamespace added in v0.67.0

func DeleteNamespace(kubeClient kubernetes.Interface, namespace string) error

func DeleteNamespaceAndWait added in v0.67.0

func DeleteNamespaceAndWait(kubeClient kubernetes.Interface, namespace string, interval, timeout time.Duration) error

func DeletePodByLabelSelector added in v0.67.0

func DeletePodByLabelSelector(kubeClient kubernetes.Interface, labelSelector, namespace string) error

func EnsureNoTektonConfigInstance added in v0.54.0

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

func EnsureTaskRunExists added in v0.57.0

func EnsureTaskRunExists(client pipelinev1.TektonV1Interface, taskRun *v1.TaskRun) (*v1.TaskRun, error)

EnsureTaskRunExists creates a TaskRun, if it does not exist.

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 EnsureTektonChainExists added in v0.55.0

func EnsureTektonChainExists(clients typedv1alpha1.TektonChainInterface, names utils.ResourceNames) (*v1alpha1.TektonChain, error)

EnsureTektonChainExists creates a TektonChain with the name names.TektonChain, if it does not exist.

func EnsureTektonConfigExists

func EnsureTektonConfigExists(kubeClientSet *kubernetes.Clientset, clients operatorV1alpha1.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 EnsureTektonHubExists added in v0.63.0

func EnsureTektonHubExists(clients typedv1alpha1.TektonHubInterface, hub *v1alpha1.TektonHub) (*v1alpha1.TektonHub, error)

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 ExecuteDebugCommands added in v0.67.0

func ExecuteDebugCommands(logger *zap.SugaredLogger, resourceNames utils.ResourceNames)

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 IsTektonChainReady added in v0.55.0

func IsTektonChainReady(s *v1alpha1.TektonChain, err error) (bool, error)

IsTektonChainReady will check the status conditions of the TektonChain and return true if the TektonChain 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 IsTektonHubReady added in v0.63.0

func IsTektonHubReady(s *v1alpha1.TektonHub, err error) (bool, error)

IsTektonHubReady will check the status conditions of the TektonHub and return true if the TektonHub 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 PrintClusterInformation added in v0.67.0

func PrintClusterInformation(logger *zap.SugaredLogger, resourceNames utils.ResourceNames)

func ReplaceConfigMap added in v0.57.0

func ReplaceConfigMap(kubeClient kubernetes.Interface, configMap *corev1.ConfigMap) (*corev1.ConfigMap, error)

func RunCommand added in v0.67.0

func RunCommand(logger *zap.SugaredLogger, title string, commands []string)

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 TektonChainCRDelete added in v0.55.0

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

TektonChainCRDelete deletes tha TektonChain 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 TektonHubCRDelete added in v0.63.0

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

TektonHubCRDelete deletes tha TektonHub 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 WaitForClusterRole added in v0.67.0

func WaitForClusterRole(kubeClient kubernetes.Interface, name string, interval, timeout time.Duration) error

func WaitForConfigMap added in v0.67.0

func WaitForConfigMap(kubeClient kubernetes.Interface, name, namespace string, interval, timeout time.Duration) error

func WaitForDeploymentDeletion added in v0.67.0

func WaitForDeploymentDeletion(kubeClient kubernetes.Interface, name, namespace string, interval, timeout time.Duration) error

func WaitForDeploymentReady added in v0.67.0

func WaitForDeploymentReady(kubeClient kubernetes.Interface, name, namespace string, interval, timeout time.Duration) error

func WaitForJobCompletion added in v0.67.0

func WaitForJobCompletion(kubeClient kubernetes.Interface, name, namespace string, interval, timeout time.Duration) error

func WaitForJobDeletion added in v0.67.0

func WaitForJobDeletion(kubeClient kubernetes.Interface, name, namespace string, interval, timeout time.Duration) error

func WaitForNamespaceDeletion added in v0.67.0

func WaitForNamespaceDeletion(kubeClient kubernetes.Interface, namespace string, interval, timeout time.Duration) error

func WaitForPodByLabelSelector added in v0.67.0

func WaitForPodByLabelSelector(kubeClient kubernetes.Interface, labelSelector, namespace string, interval, timeout time.Duration) error

func WaitForRoleBinding added in v0.67.0

func WaitForRoleBinding(kubeClient kubernetes.Interface, name, namespace string, interval, timeout time.Duration) error

func WaitForServiceAccount added in v0.67.0

func WaitForServiceAccount(kubeClient kubernetes.Interface, name, namespace string, interval, timeout time.Duration) error

func WaitForTaskRunHappy added in v0.57.0

func WaitForTaskRunHappy(client pipelinev1.TektonV1Interface, namespace, name string, conditionFunc func(taskRun *v1.TaskRun) (bool, error)) error

WaitForTaskRunHappy polls the status of the TaskRun called name from client every `interval` seconds till it becomes happy with the condition function

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 WaitForTektonChainState added in v0.55.0

func WaitForTektonChainState(clients typedv1alpha1.TektonChainInterface, name string,
	inState func(s *v1alpha1.TektonChain, err error) (bool, error)) (*v1alpha1.TektonChain, error)

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

func WaitForTektonConfigReady added in v0.67.0

func WaitForTektonConfigReady(client operatorV1alpha1.TektonConfigInterface, name string, interval, timeout time.Duration) error

func WaitForTektonConfigState

func WaitForTektonConfigState(clients operatorV1alpha1.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 WaitForTektonHubState added in v0.63.0

func WaitForTektonHubState(clients typedv1alpha1.TektonHubInterface, name string,
	inState func(s *v1alpha1.TektonHub, err error) (bool, error)) (*v1alpha1.TektonHub, error)

WaitForTektonHubState polls the status of the TektonHub 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