Documentation
¶
Index ¶
- Constants
- Variables
- func CleanupOnInterrupt(cleanup func())
- func GetEnvironment(key, defaultValue string) string
- func GetOSAndArchitecture() string
- func IsOpenShift() bool
- func Logger() *zap.SugaredLogger
- func TearDownAddon(clients *Clients, name string)
- func TearDownChain(clients *Clients, name string)
- func TearDownConfig(clients *Clients, name string)
- func TearDownDashboard(clients *Clients, name string)
- func TearDownManualApprovalGate(clients *Clients, name string)
- func TearDownMulticlusterProxyAAE(clients *Clients, name string)
- func TearDownNamespace(clients *Clients, name string)
- func TearDownPipeline(clients *Clients, name string)
- func TearDownResult(clients *Clients, name string)
- func TearDownScheduler(clients *Clients, name string)
- func TearDownSyncerService(clients *Clients, name string)
- func TearDownTektonPruner(clients *Clients, name string)
- func TearDownTrigger(clients *Clients, name string)
- func WaitForCondition(condition wait.ConditionFunc) error
- type Clients
- func (c *Clients) ManualApprovalGate() operatorv1alpha1.ManualApprovalGateInterface
- func (c *Clients) ManualApprovalGateAll() operatorv1alpha1.ManualApprovalGateInterface
- func (c *Clients) OpenShiftPipelinesAsCode() operatorv1alpha1.OpenShiftPipelinesAsCodeInterface
- func (c *Clients) SyncerServices() operatorv1alpha1.SyncerServiceInterface
- func (c *Clients) SyncerServicesAll() operatorv1alpha1.SyncerServiceInterface
- func (c *Clients) TektonAddon() operatorv1alpha1.TektonAddonInterface
- func (c *Clients) TektonAddonAll() operatorv1alpha1.TektonAddonInterface
- func (c *Clients) TektonChains() operatorv1alpha1.TektonChainInterface
- func (c *Clients) TektonChainsAll() operatorv1alpha1.TektonChainInterface
- func (c *Clients) TektonConfig() operatorv1alpha1.TektonConfigInterface
- func (c *Clients) TektonConfigAll() operatorv1alpha1.TektonConfigInterface
- func (c *Clients) TektonDashboard() operatorv1alpha1.TektonDashboardInterface
- func (c *Clients) TektonDashboardAll() operatorv1alpha1.TektonDashboardInterface
- func (c *Clients) TektonInstallerSet() operatorv1alpha1.TektonInstallerSetInterface
- func (c *Clients) TektonInstallerSetAll() operatorv1alpha1.TektonInstallerSetInterface
- func (c *Clients) TektonMulticlusterProxyAAEs() operatorv1alpha1.TektonMulticlusterProxyAAEInterface
- func (c *Clients) TektonMulticlusterProxyAAEsAll() operatorv1alpha1.TektonMulticlusterProxyAAEInterface
- func (c *Clients) TektonPipeline() operatorv1alpha1.TektonPipelineInterface
- func (c *Clients) TektonPipelineAll() operatorv1alpha1.TektonPipelineInterface
- func (c *Clients) TektonPruner() operatorv1alpha1.TektonPrunerInterface
- func (c *Clients) TektonPrunerAll() operatorv1alpha1.TektonPrunerInterface
- func (c *Clients) TektonResult() operatorv1alpha1.TektonResultInterface
- func (c *Clients) TektonResultAll() operatorv1alpha1.TektonResultInterface
- func (c *Clients) TektonSchedulers() operatorv1alpha1.TektonSchedulerInterface
- func (c *Clients) TektonSchedulersAll() operatorv1alpha1.TektonSchedulerInterface
- func (c *Clients) TektonTrigger() operatorv1alpha1.TektonTriggerInterface
- func (c *Clients) TektonTriggerAll() operatorv1alpha1.TektonTriggerInterface
- type ResourceNames
Constants ¶
const ( // log level of the logger used in e2e tests ENV_LOG_LEVEL = "LOG_LEVEL" ENV_TARGET = "TARGET" ENV_PLATFORM = "PLATFORM" // os/architecture types LinuxPPC64LE = "linux/ppc64le" LinuxS390X = "linux/s390x" )
Variables ¶
var ( Interval = 5 * time.Second Timeout = 10 * time.Minute )
var ( TektonPipelineDeploymentLabel = labelString(v1alpha1.OperandTektoncdPipeline) TektonTriggerDeploymentLabel = labelString(v1alpha1.OperandTektoncdTriggers) TektonDashboardDeploymentLabel = labelString(v1alpha1.OperandTektoncdDashboard) TektonChainDeploymentLabel = labelString(v1alpha1.OperandTektoncdChains) TektonResultsDeploymentLabel = labelString(v1alpha1.OperandTektoncdResults) ManualApprovalGateDeploymentLabel = labelString(v1alpha1.ManualApprovalGates) TektonPrunerDeploymentLabel = labelString(v1alpha1.TektonPrunerResourceName) TektonAddonDeploymentLabel = labelString(openshift.OperandOpenShiftPipelinesAddons) TektonSchedulerDeploymentLabel = labelString(v1alpha1.TektonSchedulerResourceName) TektonMulticlusterProxyAAEDeploymentLabel = labelString(v1alpha1.MultiClusterProxyAAEResourceName) SyncerServiceDeploymentLabel = labelString(v1alpha1.OperandSyncerService) )
Functions ¶
func CleanupOnInterrupt ¶
func CleanupOnInterrupt(cleanup func())
CleanupOnInterrupt will execute the function cleanup if an interrupt signal is caught
func GetEnvironment ¶ added in v0.67.0
func GetOSAndArchitecture ¶ added in v0.67.0
func GetOSAndArchitecture() string
func IsOpenShift ¶ added in v0.67.0
func IsOpenShift() bool
in the development package "PLATFORM" is used to know about cluster environment, ie: OpenShift or kubernetes (v1alpha1.IsOpenShiftPlatform()) but in test uses "TARGET" is used for the same and "PLATFORM" refers os/arch in tests
func TearDownAddon ¶
TearDownAddon will delete created TektonAddon CRs using clients.
func TearDownChain ¶ added in v0.55.0
TearDownChain will delete created TektonChain CRs using clients.
func TearDownConfig ¶
TearDownConfig will delete created TektonConfig CRs using clients.
func TearDownDashboard ¶
TearDownDashboard will delete created TektonDashboard CRs using clients.
func TearDownManualApprovalGate ¶ added in v0.71.0
func TearDownMulticlusterProxyAAE ¶ added in v0.81.0
func TearDownNamespace ¶
TearDownNamespace will delete created test Namespace
func TearDownPipeline ¶
TearDownPipeline will delete created TektonPipeline CRs using clients.
func TearDownResult ¶
TearDownResult will delete created TektonResult CRs using clients.
func TearDownScheduler ¶ added in v0.81.0
func TearDownSyncerService ¶ added in v0.81.0
func TearDownTektonPruner ¶ added in v0.76.0
func TearDownTrigger ¶
TearDownTrigger will delete created TektonTrigger CRs using clients.
func WaitForCondition ¶ added in v0.59.0
func WaitForCondition(condition wait.ConditionFunc) error
Types ¶
type Clients ¶
type Clients struct {
KubeClient kubernetes.Interface
Dynamic dynamic.Interface
Operator operatorv1alpha1.OperatorV1alpha1Interface
TektonClient v1.TektonV1Interface
Config *rest.Config
KubeClientSet *kubernetes.Clientset
}
Clients holds instances of interfaces for making requests to Tekton Pipelines.
func NewClients ¶
NewClients instantiates and returns several clientsets required for making request to the TektonPipeline cluster specified by the combination of clusterName and configPath.
func (*Clients) ManualApprovalGate ¶ added in v0.71.0
func (c *Clients) ManualApprovalGate() operatorv1alpha1.ManualApprovalGateInterface
func (*Clients) ManualApprovalGateAll ¶ added in v0.71.0
func (c *Clients) ManualApprovalGateAll() operatorv1alpha1.ManualApprovalGateInterface
func (*Clients) OpenShiftPipelinesAsCode ¶ added in v0.70.0
func (c *Clients) OpenShiftPipelinesAsCode() operatorv1alpha1.OpenShiftPipelinesAsCodeInterface
func (*Clients) SyncerServices ¶ added in v0.81.0
func (c *Clients) SyncerServices() operatorv1alpha1.SyncerServiceInterface
func (*Clients) SyncerServicesAll ¶ added in v0.81.0
func (c *Clients) SyncerServicesAll() operatorv1alpha1.SyncerServiceInterface
func (*Clients) TektonAddon ¶
func (c *Clients) TektonAddon() operatorv1alpha1.TektonAddonInterface
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 (c *Clients) TektonConfig() operatorv1alpha1.TektonConfigInterface
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) 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) TektonMulticlusterProxyAAEs ¶ added in v0.81.0
func (c *Clients) TektonMulticlusterProxyAAEs() operatorv1alpha1.TektonMulticlusterProxyAAEInterface
func (*Clients) TektonMulticlusterProxyAAEsAll ¶ added in v0.81.0
func (c *Clients) TektonMulticlusterProxyAAEsAll() operatorv1alpha1.TektonMulticlusterProxyAAEInterface
func (*Clients) TektonPipeline ¶
func (c *Clients) TektonPipeline() operatorv1alpha1.TektonPipelineInterface
func (*Clients) TektonPipelineAll ¶
func (c *Clients) TektonPipelineAll() operatorv1alpha1.TektonPipelineInterface
func (*Clients) TektonPruner ¶ added in v0.76.0
func (c *Clients) TektonPruner() operatorv1alpha1.TektonPrunerInterface
func (*Clients) TektonPrunerAll ¶ added in v0.76.0
func (c *Clients) TektonPrunerAll() operatorv1alpha1.TektonPrunerInterface
func (*Clients) TektonResult ¶
func (c *Clients) TektonResult() operatorv1alpha1.TektonResultInterface
func (*Clients) TektonResultAll ¶
func (c *Clients) TektonResultAll() operatorv1alpha1.TektonResultInterface
func (*Clients) TektonSchedulers ¶ added in v0.81.0
func (c *Clients) TektonSchedulers() operatorv1alpha1.TektonSchedulerInterface
func (*Clients) TektonSchedulersAll ¶ added in v0.81.0
func (c *Clients) TektonSchedulersAll() operatorv1alpha1.TektonSchedulerInterface
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
TektonPruner string
TektonResult string
TektonChain string
TektonScheduler string
TektonMulticlusterProxyAAE string
SyncerService string
Namespace string
TargetNamespace string
OperatorPodSelectorLabel string
OpenShiftPipelinesAsCode string
ManualApprovalGate string
}
ResourceNames holds names of various resources.
func GetResourceNames ¶ added in v0.67.0
func GetResourceNames() ResourceNames