common_config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FailedToParseContext = func(err error) error {
		return eris.Wrap(err, "Could not parse target kube context information")
	}
	NoSmhInstallationFound = func(path string) error {
		return eris.Errorf("Could not find a Service Mesh Hub installation in the cluster pointed "+
			"to by the kube config %s", path)
	}
	CouldNotVerifyMaster = func(err error, path string) error {
		return eris.Wrapf(err, "Could not verify whether a Service Mesh Hub installation is present "+
			"in the cluster pointed to by the kube config %s", path)
	}
	FileDoesNotExist = func(err error, path string) error {
		return eris.Wrapf(err, "Kube config at %s does not exist", path)
	}
)

Functions

This section is empty.

Types

type MasterKubeConfigVerifier

type MasterKubeConfigVerifier interface {
	Verify(masterKubeConfigPath string, masterContext string) (err error)
}

Verify that the cluster pointed to by the given kube config is actually a Service Mesh Hub installation

func NewMasterKubeConfigVerifier

func NewMasterKubeConfigVerifier(kubeLoader kubeconfig.KubeLoader) MasterKubeConfigVerifier

type OnMasterVerificationSuccess

type OnMasterVerificationSuccess func(masterKubeConfig *rest.Config)

Accepts the validated master kube REST config

Jump to

Keyboard shortcuts

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