resourcemanager

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Package resourcemanager provides utility functions for managing resources in the testing cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyStepActionYAML

func ApplyStepActionYAML(stepActionFilePath, namespace string) error

ApplyStepActionYAML applies the Tekton StepAction YAML file to the kubernetes cluster

func CreateNamespace added in v0.0.3

func CreateNamespace(namespace string) error

CreateNamespace creates a namespace for testing in the kubernetes cluster

func DeleteNamespace added in v0.0.3

func DeleteNamespace(namespace string) error

DeleteNamespace deletes the namespace and all resources in it

func WaitForTektonRunCompletion

func WaitForTektonRunCompletion(t *testing.T, tektonClient *versioned.Clientset, tektonRun TektonRun, watchTimeout time.Duration, expectedCondition, namespace string)

WaitForTektonRunCompletion waits for the Tekton TaskRun or PipelineRun to complete with the expected condition within the timeout

Types

type TektonRun

type TektonRun struct {
	Name string
	Kind string
}

TektonRun represents a Tekton TaskRun or PipelineRun

func ApplyTestYAML

func ApplyTestYAML(t *testing.T, testFilePath, namespace string) TektonRun

ApplyTestYAML applies the Test YAML file to the kubernetes cluster and returns the Tekton TaskRun or PipelineRun

Jump to

Keyboard shortcuts

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