clientpair

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type ClientPair

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

func NewClientPair

func NewClientPair(config ClientPairConfig) (*ClientPair, error)

func (*ClientPair) Get

func (cp *ClientPair) Get(ctx context.Context, cr v1alpha1.Chart, privateClient bool) helmclient.Interface

Get determines which client to use based on the namespace the corresponding App CR is located in. For Workload Cluster, chart operator is permitted to operate under cluster-wide permissions, so there is only prvHelmClient used.

type ClientPairConfig

type ClientPairConfig struct {
	Logger micrologger.Logger

	NamespaceWhitelist []string

	PrvHelmClient helmclient.Interface
	PubHelmClient helmclient.Interface
}

Jump to

Keyboard shortcuts

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