Documentation ¶
Index ¶
- func AssertClusterRole(t *testing.T, clients *utils.Clients, clusterRoleName string)
- func AssertConfigMap(t *testing.T, clients *utils.Clients, ns, configMapName string)
- func AssertDashboardInstallerSets(t *testing.T, clients *utils.Clients)
- func AssertRoleBinding(t *testing.T, clients *utils.Clients, ns, roleBindingName string)
- func AssertServiceAccount(t *testing.T, clients *utils.Clients, ns, targetSA string)
- func AssertTektonAddonCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func AssertTektonChainCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func AssertTektonConfigCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func AssertTektonDashboardCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func AssertTektonInstallerSets(t *testing.T, clients *utils.Clients)
- func AssertTektonPipelineCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func AssertTektonResultCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func AssertTektonTriggerCRReadyStatus(t *testing.T, clients *utils.Clients, names utils.ResourceNames)
- func CosignGenerateKeyPair(namespace, secretName string) error
- func CosignVerifyBlob(key, signature, payload string) error
- func DeleteAndVerifyDeployments(t *testing.T, clients *utils.Clients, namespace, labelSelector string)
- func DeleteChainsPod(kubeclient kubernetes.Interface, namespace string) error
- func EnsureNoTektonConfigInstance(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func EnsureTaskRunExists(client pipelinev1beta1.TaskRunInterface, taskRun *v1beta1.TaskRun) (*v1beta1.TaskRun, error)
- func EnsureTektonAddonExists(clients addonv1alpha1.TektonAddonInterface, names utils.ResourceNames) (*v1alpha1.TektonAddon, error)
- func EnsureTektonChainExists(clients typedv1alpha1.TektonChainInterface, names utils.ResourceNames) (*v1alpha1.TektonChain, error)
- func EnsureTektonConfigExists(kubeClientSet *kubernetes.Clientset, ...) (*v1alpha1.TektonConfig, error)
- func EnsureTektonDashboardExists(clients dashboardv1alpha1.TektonDashboardInterface, names utils.ResourceNames) (*v1alpha1.TektonDashboard, error)
- func EnsureTektonPipelineExists(clients pipelinev1alpha1.TektonPipelineInterface, names utils.ResourceNames) (*v1alpha1.TektonPipeline, error)
- func EnsureTektonResultExists(clients resultv1alpha1.TektonResultInterface, names utils.ResourceNames) (*v1alpha1.TektonResult, error)
- func EnsureTektonTriggerExists(clients triggerv1alpha1.TektonTriggerInterface, names utils.ResourceNames) (*v1alpha1.TektonTrigger, error)
- func EnsureTestNamespaceExists(clients *utils.Clients, name string) (*corev1.Namespace, error)
- func IsDeploymentAvailable(d *appsv1.Deployment) (bool, error)
- func IsTektonAddonReady(s *v1alpha1.TektonAddon, err error) (bool, error)
- func IsTektonChainReady(s *v1alpha1.TektonChain, err error) (bool, error)
- func IsTektonConfigReady(s *v1alpha1.TektonConfig, err error) (bool, error)
- func IsTektonDashboardReady(s *v1alpha1.TektonDashboard, err error) (bool, error)
- func IsTektonPipelineReady(s *v1alpha1.TektonPipeline, err error) (bool, error)
- func IsTektonResultReady(s *v1alpha1.TektonResult, err error) (bool, error)
- func IsTektonTriggerReady(s *v1alpha1.TektonTrigger, err error) (bool, error)
- func ReplaceConfigMap(kubeClient kubernetes.Interface, configMap *v1.ConfigMap) (*v1.ConfigMap, error)
- func TektonAddonCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func TektonChainCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func TektonConfigCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func TektonDashboardCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func TektonPipelineCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func TektonResultCRDDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func TektonTriggerCRDelete(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func WaitForTaskRunHappy(client pipelinev1beta1.TaskRunInterface, name string, ...) error
- func WaitForTektonAddonState(clients addonv1alpha1.TektonAddonInterface, name string, ...) (*v1alpha1.TektonAddon, error)
- func WaitForTektonChainState(clients typedv1alpha1.TektonChainInterface, name string, ...) (*v1alpha1.TektonChain, error)
- func WaitForTektonConfigState(clients configv1alpha1.TektonConfigInterface, name string, ...) (*v1alpha1.TektonConfig, error)
- func WaitForTektonDashboardState(clients dashboardv1alpha1.TektonDashboardInterface, name string, ...) (*v1alpha1.TektonDashboard, error)
- func WaitForTektonPipelineState(clients pipelinev1alpha1.TektonPipelineInterface, name string, ...) (*v1alpha1.TektonPipeline, error)
- func WaitForTektonResultState(clients resultv1alpha1.TektonResultInterface, name string, ...) (*v1alpha1.TektonResult, error)
- func WaitForTektonTriggerState(clients triggerv1alpha1.TektonTriggerInterface, name string, ...) (*v1alpha1.TektonTrigger, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertClusterRole ¶
func AssertConfigMap ¶
func AssertDashboardInstallerSets ¶ added in v0.55.0
AssertTektonInstallerSets verifies if the TektonInstallerSets are created.
func AssertRoleBinding ¶
func AssertServiceAccount ¶
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 AssertTektonInstallerSets ¶ added in v0.54.0
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 CosignVerifyBlob ¶ added in v0.57.0
cosign verify-blob --key k8s://tekton-chains/signing-secrets --signature ./signature ./payload
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 EnsureNoTektonConfigInstance ¶ added in v0.54.0
func EnsureTaskRunExists ¶ added in v0.57.0
func EnsureTaskRunExists(client pipelinev1beta1.TaskRunInterface, taskRun *v1beta1.TaskRun) (*v1beta1.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 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 ¶
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 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 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 ReplaceConfigMap ¶ added in v0.57.0
func TektonAddonCRDelete ¶
TektonAddonCRDelete deletes tha TektonAddon to see if all resources will be deleted
func TektonChainCRDelete ¶ added in v0.55.0
TektonChainCRDelete deletes tha TektonChain to see if all resources will be deleted
func TektonConfigCRDelete ¶
TektonConfigCRDelete deletes tha TektonConfig to see if all resources will be deleted
func TektonDashboardCRDelete ¶
TektonDashboardCRDelete deletes tha TektonDashboard to see if all resources will be deleted
func TektonPipelineCRDelete ¶
TektonPipelineCRDelete deletes tha TektonPipeline to see if all resources will be deleted
func TektonResultCRDDelete ¶
TektonResultCRDDelete deletes tha TektonResult to see if all resources will be deleted
func TektonTriggerCRDelete ¶
TektonTriggerCRDelete deletes tha TektonTrigger to see if all resources will be deleted
func WaitForTaskRunHappy ¶ added in v0.57.0
func WaitForTaskRunHappy(client pipelinev1beta1.TaskRunInterface, name string, conditionFunc func(taskRun *v1beta1.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 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.