Documentation
¶
Index ¶
Constants ¶
View Source
const StatusDeployed = common.StatusDeployed
StatusDeployed is exported for use in tests and provider
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultHelmFactory ¶
type DefaultHelmFactory struct{}
DefaultHelmFactory creates real helm clients using kubernetes config
func (*DefaultHelmFactory) GetStatusRunner ¶
func (f *DefaultHelmFactory) GetStatusRunner(kubeContext, namespace string, log *slog.Logger) (StatusRunner, error)
type HelmClientFactory ¶
type HelmClientFactory interface {
GetStatusRunner(kubeContext, namespace string, log *slog.Logger) (StatusRunner, error)
}
HelmClientFactory creates helm status runners
var ClientFactory HelmClientFactory = &DefaultHelmFactory{}
ClientFactory is the global factory - replaceable for testing
type MockHelmFactory ¶
type MockHelmFactory struct {
Runner StatusRunner
Err error
}
MockHelmFactory for testing - allows injecting mock status runners
func (*MockHelmFactory) GetStatusRunner ¶
func (f *MockHelmFactory) GetStatusRunner(kubeContext, namespace string, log *slog.Logger) (StatusRunner, error)
type MockStatusRunner ¶
MockStatusRunner for testing
Click to show internal directories.
Click to hide internal directories.