Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChartNotFound = errors.New("chart not found")
Functions ¶
This section is empty.
Types ¶
type ChartLoader ¶
func NewChartLoader ¶
func NewChartLoader(log logrus.FieldLogger) ChartLoader
type ChartSource ¶
type ChartSource struct {
RepoURL string `json:"repoUrl"`
Name string `json:"name"`
Version string `json:"version"`
}
TODO: move?
type Client ¶
type Client interface {
Install(ctx context.Context, opts InstallOptions) (*release.Release, error)
Uninstall(opts UninstallOptions) (*release.UninstallReleaseResponse, error)
Upgrade(ctx context.Context, opts UpgradeOptions) (*release.Release, error)
Rollback(opts RollbackOptions) error
GetRelease(opts GetReleaseOptions) (*release.Release, error)
}
func NewClient ¶
func NewClient(log logrus.FieldLogger, loader ChartLoader, restConfig *rest.Config) Client
type ConfigurationGetter ¶
type ConfigurationGetter interface {
Get(namespace string) (*action.Configuration, error)
}
ConfigurationGetter wraps helm actions configuration setup for mocking in unit tests.
type GetReleaseOptions ¶
type InstallOptions ¶
type InstallOptions struct {
ChartSource *ChartSource
Namespace string
CreateNamespace bool
ReleaseName string
ValuesOverrides map[string]interface{}
}
type RollbackOptions ¶
type UninstallOptions ¶
type UpgradeOptions ¶
Click to show internal directories.
Click to hide internal directories.