util

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 17 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(restcfg *rest.Config) error

func DeleteClusterFinalizers added in v0.5.0

func DeleteClusterFinalizers(restcfg *rest.Config) error

func WaitNamespaceDeleted added in v0.3.0

func WaitNamespaceDeleted(restcfg *rest.Config, 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,
) (*TestE2eConfig, error)

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