util

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 20 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 CleanupTestImagePullCredentialFile added in v0.9.0

func CleanupTestImagePullCredentialFile(fileName string)

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 NewTestImagePullCredentialFile added in v0.9.0

func NewTestImagePullCredentialFile(fileName string) string

func ValidateImagePullSecret added in v0.9.0

func ValidateImagePullSecret(kubeClient kubernetes.Interface, expectedCred string, namespace string) error

func WaitForManagedClusterAvailableStatusToChange added in v0.8.3

func WaitForManagedClusterAvailableStatusToChange(restcfg *rest.Config, clusterName string) 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