utils

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Interval = 10 * time.Second
	Timeout  = 10 * time.Minute
)
View Source
var (
	TektonPipelineDeploymentLabel  = labelString(v1alpha1.OperandTektoncdPipeline)
	TektonTriggerDeploymentLabel   = labelString(v1alpha1.OperandTektoncdTriggers)
	TektonDashboardDeploymentLabel = labelString(v1alpha1.OperandTektoncdDashboard)
	TektonChainDeploymentLabel     = labelString(v1alpha1.OperandTektoncdChains)
	TektonHubDeploymentLabel       = labelString(v1alpha1.OperandTektoncdHub)
	TektonResultsDeploymentLabel   = labelString(v1alpha1.OperandTektoncdResults)
	TektonAddonDeploymentLabel     = labelString(openshift.OperandOpenShiftPipelinesAddons)
)

Functions

func CleanupOnInterrupt

func CleanupOnInterrupt(cleanup func())

CleanupOnInterrupt will execute the function cleanup if an interrupt signal is caught

func TearDownAddon

func TearDownAddon(clients *Clients, name string)

TearDownAddon will delete created TektonAddon CRs using clients.

func TearDownChain added in v0.55.0

func TearDownChain(clients *Clients, name string)

TearDownChain will delete created TektonChain CRs using clients.

func TearDownConfig

func TearDownConfig(clients *Clients, name string)

TearDownConfig will delete created TektonConfig CRs using clients.

func TearDownDashboard

func TearDownDashboard(clients *Clients, name string)

TearDownDashboard will delete created TektonDashboard CRs using clients.

func TearDownNamespace

func TearDownNamespace(clients *Clients, name string)

TearDownNamespace will delete created test Namespace

func TearDownPipeline

func TearDownPipeline(clients *Clients, name string)

TearDownPipeline will delete created TektonPipeline CRs using clients.

func TearDownResult

func TearDownResult(clients *Clients, name string)

TearDownResult will delete created TektonResult CRs using clients.

func TearDownTrigger

func TearDownTrigger(clients *Clients, name string)

TearDownTrigger will delete created TektonTrigger CRs using clients.

func WaitForCondition added in v0.59.0

func WaitForCondition(ctx context.Context, condition wait.ConditionFunc) error

Types

type Clients

type Clients struct {
	KubeClient    kubernetes.Interface
	Dynamic       dynamic.Interface
	Operator      operatorv1alpha1.OperatorV1alpha1Interface
	TektonClient  v1beta1.TektonV1beta1Interface
	Config        *rest.Config
	KubeClientSet *kubernetes.Clientset
}

Clients holds instances of interfaces for making requests to Tekton Pipelines.

func NewClients

func NewClients(configPath string, clusterName string, namespace string) (*Clients, error)

NewClients instantiates and returns several clientsets required for making request to the TektonPipeline cluster specified by the combination of clusterName and configPath.

func (*Clients) TektonAddon

func (*Clients) TektonAddonAll

func (c *Clients) TektonAddonAll() operatorv1alpha1.TektonAddonInterface

func (*Clients) TektonChains added in v0.55.0

func (c *Clients) TektonChains() operatorv1alpha1.TektonChainInterface

func (*Clients) TektonChainsAll added in v0.55.0

func (c *Clients) TektonChainsAll() operatorv1alpha1.TektonChainInterface

func (*Clients) TektonConfig

func (*Clients) TektonConfigAll

func (c *Clients) TektonConfigAll() operatorv1alpha1.TektonConfigInterface

func (*Clients) TektonDashboard

func (c *Clients) TektonDashboard() operatorv1alpha1.TektonDashboardInterface

func (*Clients) TektonDashboardAll

func (c *Clients) TektonDashboardAll() operatorv1alpha1.TektonDashboardInterface

func (*Clients) TektonHub added in v0.63.0

func (*Clients) TektonHubAll added in v0.63.0

func (c *Clients) TektonHubAll() operatorv1alpha1.TektonHubInterface

func (*Clients) TektonInstallerSet added in v0.54.0

func (c *Clients) TektonInstallerSet() operatorv1alpha1.TektonInstallerSetInterface

func (*Clients) TektonInstallerSetAll added in v0.54.0

func (c *Clients) TektonInstallerSetAll() operatorv1alpha1.TektonInstallerSetInterface

func (*Clients) TektonPipeline

func (c *Clients) TektonPipeline() operatorv1alpha1.TektonPipelineInterface

func (*Clients) TektonPipelineAll

func (c *Clients) TektonPipelineAll() operatorv1alpha1.TektonPipelineInterface

func (*Clients) TektonResult

func (*Clients) TektonResultAll

func (c *Clients) TektonResultAll() operatorv1alpha1.TektonResultInterface

func (*Clients) TektonTrigger

func (c *Clients) TektonTrigger() operatorv1alpha1.TektonTriggerInterface

func (*Clients) TektonTriggerAll

func (c *Clients) TektonTriggerAll() operatorv1alpha1.TektonTriggerInterface

type ResourceNames

type ResourceNames struct {
	TektonPipeline  string
	TektonTrigger   string
	TektonDashboard string
	TektonAddon     string
	TektonConfig    string
	TektonResult    string
	TektonChain     string
	TektonHub       string
	Namespace       string
	TargetNamespace string
}

ResourceNames holds names of various resources.

Jump to

Keyboard shortcuts

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