Documentation ¶
Index ¶
- func AssertDashboardInstallerSets(t *testing.T, clients *utils.Clients)
- 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 AssertTektonHubCRReadyStatus(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 CosignVerifyBlobAttestation(key, signature, payload string) error
- func CreateNamespace(kubeClient kubernetes.Interface, namespace string) error
- func DeleteAndVerifyDeployments(t *testing.T, clients *utils.Clients, namespace, labelSelector string)
- func DeleteChainsPod(kubeclient kubernetes.Interface, namespace string) error
- func DeleteNamespace(kubeClient kubernetes.Interface, namespace string) error
- func DeleteNamespaceAndWait(kubeClient kubernetes.Interface, namespace string, ...) error
- func DeletePodByLabelSelector(kubeClient kubernetes.Interface, labelSelector, namespace string) error
- func EnsureNoTektonConfigInstance(t *testing.T, clients *utils.Clients, crNames utils.ResourceNames)
- func EnsureTaskRunExists(client pipelinev1.TektonV1Interface, taskRun *v1.TaskRun) (*v1.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 EnsureTektonHubExists(clients typedv1alpha1.TektonHubInterface, hub *v1alpha1.TektonHub) (*v1alpha1.TektonHub, 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 ExecuteDebugCommands(logger *zap.SugaredLogger, resourceNames utils.ResourceNames)
- 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 IsTektonHubReady(s *v1alpha1.TektonHub, 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 PrintClusterInformation(logger *zap.SugaredLogger, resourceNames utils.ResourceNames)
- func ReplaceConfigMap(kubeClient kubernetes.Interface, configMap *corev1.ConfigMap) (*corev1.ConfigMap, error)
- func RunCommand(logger *zap.SugaredLogger, title string, commands []string)
- 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 TektonHubCRDelete(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 WaitForClusterRole(kubeClient kubernetes.Interface, name string, interval, timeout time.Duration) error
- func WaitForConfigMap(kubeClient kubernetes.Interface, name, namespace string, ...) error
- func WaitForDeploymentDeletion(kubeClient kubernetes.Interface, name, namespace string, ...) error
- func WaitForDeploymentReady(kubeClient kubernetes.Interface, name, namespace string, ...) error
- func WaitForJobCompletion(kubeClient kubernetes.Interface, name, namespace string, ...) error
- func WaitForJobDeletion(kubeClient kubernetes.Interface, name, namespace string, ...) error
- func WaitForNamespaceDeletion(kubeClient kubernetes.Interface, namespace string, ...) error
- func WaitForPodByLabelSelector(kubeClient kubernetes.Interface, labelSelector, namespace string, ...) error
- func WaitForRoleBinding(kubeClient kubernetes.Interface, name, namespace string, ...) error
- func WaitForServiceAccount(kubeClient kubernetes.Interface, name, namespace string, ...) error
- func WaitForTaskRunHappy(client pipelinev1.TektonV1Interface, namespace, name string, ...) error
- func WaitForTektonAddonState(clients addonv1alpha1.TektonAddonInterface, name string, ...) (*v1alpha1.TektonAddon, error)
- func WaitForTektonChainState(clients typedv1alpha1.TektonChainInterface, name string, ...) (*v1alpha1.TektonChain, error)
- func WaitForTektonConfigReady(client operatorV1alpha1.TektonConfigInterface, name string, ...) error
- func WaitForTektonConfigState(clients operatorV1alpha1.TektonConfigInterface, name string, ...) (*v1alpha1.TektonConfig, error)
- func WaitForTektonDashboardState(clients dashboardv1alpha1.TektonDashboardInterface, name string, ...) (*v1alpha1.TektonDashboard, error)
- func WaitForTektonHubState(clients typedv1alpha1.TektonHubInterface, name string, ...) (*v1alpha1.TektonHub, 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 AssertDashboardInstallerSets ¶ added in v0.55.0
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
AssertTektonHubCRReadyStatus verifies if the TektonHub 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 CosignVerifyBlobAttestation ¶ added in v0.65.0
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 DeletePodByLabelSelector ¶ added in v0.67.0
func DeletePodByLabelSelector(kubeClient kubernetes.Interface, labelSelector, namespace string) error
func EnsureNoTektonConfigInstance ¶ added in v0.54.0
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 ¶
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
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 RunCommand ¶ added in v0.67.0
func RunCommand(logger *zap.SugaredLogger, title string, commands []string)
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 TektonHubCRDelete ¶ added in v0.63.0
TektonHubCRDelete deletes tha TektonHub 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 WaitForClusterRole ¶ added in v0.67.0
func WaitForConfigMap ¶ added in v0.67.0
func WaitForDeploymentDeletion ¶ added in v0.67.0
func WaitForDeploymentReady ¶ added in v0.67.0
func WaitForJobCompletion ¶ added in v0.67.0
func WaitForJobDeletion ¶ added in v0.67.0
func WaitForNamespaceDeletion ¶ added in v0.67.0
func WaitForPodByLabelSelector ¶ added in v0.67.0
func WaitForRoleBinding ¶ added in v0.67.0
func WaitForServiceAccount ¶ added in v0.67.0
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.