driver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHelm

func NewHelm(log logr.Logger, secretAuth auth.Authenticator, tcc auth.TargetClusterClient) *helmDriver

Types

type PackageDriver

type PackageDriver interface {
	// Initialize the package driver
	Initialize(ctx context.Context, clusterName string) error

	// Install or upgrade an package.
	Install(ctx context.Context, name string, namespace string, createNamespace bool, source api.PackageOCISource, values map[string]interface{}) error

	// Uninstall an package.
	Uninstall(ctx context.Context, name string) error

	// IsConfigChanged indicates that the values passed differ from
	// those currently running.
	IsConfigChanged(ctx context.Context, name string,
		values map[string]interface{}) (bool, error)
}

PackageDriver is an interface for converting a CRD to a series of Kubernetes objects.

Its first implementation will be Helm, but the interface is used to enhance and simplify testing as well as abstract the details of Helm.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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