framework

package
v0.16.18 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 32 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
	ClientExt     *extclient.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) CreateHelmChartConfig added in v0.16.7

func (f *Framework) CreateHelmChartConfig(chartConfig *v1.HelmChartConfig, namespace string) (*v1.HelmChartConfig, error)

func (*Framework) CreateNamespace added in v0.16.18

func (f *Framework) CreateNamespace(name string, activate bool) error

CreateNamespace creates a namespace with the given name. If no error occurred and activate is true, the new namespace will be activated in Framework

func (*Framework) DeleteHelmChart

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

func (*Framework) DeleteHelmChartConfig added in v0.16.7

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

func (*Framework) DeleteNamespace added in v0.16.18

func (f *Framework) DeleteNamespace(name string, deactivate bool) error

DeleteNamespace removes the namespace with the given name from the cluster. If deactivate is true, the active namespace of Framework will be reset to default

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) ListChartPods added in v0.16.7

func (f *Framework) ListChartPods(chart *v1.HelmChart, appName string) ([]corev1.Pod, error)

func (*Framework) ListHelmCharts

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

func (*Framework) ListNamespaces added in v0.16.18

func (f *Framework) ListNamespaces(filterName string) ([]corev1.Namespace, error)

ListNamespaces returns a slice of namespaces from the cluster. If filterName is not empty, only matching namespaces will be returned

func (*Framework) ListReleases added in v0.16.7

func (f *Framework) ListReleases(chart *v1.HelmChart) ([]corev1.Secret, error)

func (*Framework) NewHelmChart

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

func (*Framework) NewHelmChartConfig added in v0.16.7

func (f *Framework) NewHelmChartConfig(name, valuesContent string) *v1.HelmChartConfig

func (*Framework) UpdateHelmChart

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

Jump to

Keyboard shortcuts

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