Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
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 }
Click to show internal directories.
Click to hide internal directories.