util

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Copyright Contributors to the Open Cluster Management project

Copyright Contributors to the Open Cluster Management project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteClusterCSRs added in v0.3.1

func DeleteClusterCSRs(kubeconfigpath string, ctx string) error

func DeleteClusterFinalizers added in v0.5.0

func DeleteClusterFinalizers(kubeconfigpath string, ctx string) error

func WaitCRDDeleted added in v0.3.1

func WaitCRDDeleted(kubeconfigpath string, ctx string, name string) error

func WaitNamespaceDeleted added in v0.3.0

func WaitNamespaceDeleted(kubeconfigpath string, ctx string, namespace string) error

WaitNamespaceDeleted receive a kubeconfigpath, a context name and a namespace name, then poll until the specific namespace is fully deleted or an error occurs.

Types

type HandledOutput

type HandledOutput struct {
	// contains filtered or unexported fields
}

func (*HandledOutput) Host

func (h *HandledOutput) Host() string

Host return the hub-apiserver

func (*HandledOutput) RawCommand

func (h *HandledOutput) RawCommand() string

RawCommand return the clusteradm join command

func (*HandledOutput) Token

func (h *HandledOutput) Token() string

Token return the hub-token

type TestE2eConfig

type TestE2eConfig struct {
	Kubeconfigpath string

	ClearEnv func() error
	// contains filtered or unexported fields
}

func NewTestE2eConfig

func NewTestE2eConfig(
	kubeconfigpath string,
	hub string,
	hubctx string,
	mcl1 string,
	mcl1ctx string,
	mcl2 string,
	mcl2ctx string,
) *TestE2eConfig

func PrepareE2eEnvironment

func PrepareE2eEnvironment() (*TestE2eConfig, error)

PrepareE2eEnvironment will init the e2e environment and join managedcluster1 to hub.

func (*TestE2eConfig) Cluster

func (tec *TestE2eConfig) Cluster() *clusterValues

func (*TestE2eConfig) Clusteradm

func (tec *TestE2eConfig) Clusteradm() clusteradmInterface

func (*TestE2eConfig) CommandResult

func (tec *TestE2eConfig) CommandResult() *HandledOutput

func (*TestE2eConfig) ResetEnv

func (tec *TestE2eConfig) ResetEnv() error

Jump to

Keyboard shortcuts

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