framework

package
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framework

type Framework struct {
	HelmClientSet *helmcln.Clientset
	ClientSet     *kubernetes.Clientset

	Kubeconfig string
	Name       string
	Namespace  string
	PID        int
	// contains filtered or unexported fields
}

func New

func New() (*Framework, error)

func (*Framework) AfterAll added in v0.15.0

func (f *Framework) AfterAll()

func (*Framework) BeforeAll added in v0.15.0

func (f *Framework) BeforeAll()

func (*Framework) CreateHelmChart

func (f *Framework) CreateHelmChart(chart *v1.HelmChart, namespace string) (*v1.HelmChart, error)

func (*Framework) DeleteHelmChart

func (f *Framework) DeleteHelmChart(name, namespace string) error

func (*Framework) GetChartContent added in v0.15.8

func (f *Framework) GetChartContent(url string) (string, error)

GetChartContent returns the base64-encoded chart tarball, downloaded from the specified URL.

func (*Framework) GetHelmChart

func (f *Framework) GetHelmChart(name, namespace string) (*v1.HelmChart, error)

func (*Framework) GetHelmChartCondition added in v0.15.12

func (f *Framework) GetHelmChartCondition(chart *v1.HelmChart, condition v1.HelmChartConditionType, status corev1.ConditionStatus, reason string) bool

GetHelmChartCondition returns true if there is a condition on the chart matching the selected type, status, and reason

func (*Framework) GetJob added in v0.15.3

func (f *Framework) GetJob(chart *v1.HelmChart) (*batchv1.Job, error)

func (*Framework) ListHelmCharts

func (f *Framework) ListHelmCharts(labelSelector, namespace string) (*v1.HelmChartList, error)

func (*Framework) NewHelmChart

func (f *Framework) NewHelmChart(name, chart, version, helmVersion, valuesContent string, set map[string]intstr.IntOrString) *v1.HelmChart

func (*Framework) UpdateHelmChart

func (f *Framework) UpdateHelmChart(chart *v1.HelmChart, namespace string) (updated *v1.HelmChart, err error)

func (*Framework) WaitForChartApp

func (f *Framework) WaitForChartApp(chart *v1.HelmChart, appName string, timeout time.Duration, count int) (pods []corev1.Pod, err error)

WaitForChartApp will check the for pods created by the chart

func (*Framework) WaitForRelease

func (f *Framework) WaitForRelease(chart *v1.HelmChart, labelSelector labels.Selector, timeout time.Duration, count int) (secrets []corev1.Secret, err error)

Jump to

Keyboard shortcuts

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