resourcemanager

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

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 CreateBundle

func CreateBundle(stepAction string, id string) error

CreateBundle pushes the StepAction to AR as an OCI bundle

func CreateNamespace

func CreateNamespace(namespace string) error

CreateNamespace creates a namespace for testing in the kubernetes cluster

func DeleteBundle

func DeleteBundle(bundlePath string) error

DeleteBundle delete OCI bundle that was previously created

func DeleteNamespace

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