Documentation
¶
Index ¶
- func ActionConfigV3(log *zap.Logger, kubeCfg *rest.Config, ns string) (*actionV3.Configuration, error)
- func ChartPathOptions(repository, chart, version string) (*action.ChartPathOptions, string, error)
- func ChartValues(values []string, helmSet []plantypes.HelmValue) (map[string]interface{}, error)
- func Client(log *zap.Logger, kubeCfg *rest.Config, ns string) (*action.Configuration, error)
- func ClientV2(log *zap.Logger, kubeCfg *rest.Config, ns string) (*action.Configuration, error)
- func ConfigureDefaultInstall(client *action.Install) *action.Install
- func ConfigureDefaultUpgrade(client *action.Upgrade) *action.Upgrade
- func DefaultInstall(actionCfg *action.Configuration) *action.Install
- func DefaultUpgrade(actionCfg *action.Configuration) *action.Upgrade
- func GetChart(name string, cpo *action.ChartPathOptions, settings *cli.EnvSettings) (*chart.Chart, string, error)
- func GetChartByPath(urlOrPath string) (*chart.Chart, error)
- func GetManifest(cfg *action.Configuration, name string) (any, error)
- func GetRelease(cfg *action.Configuration, name string) (*release.Release, error)
- func HelmInstallWithLogStreaming(ctx context.Context, client *action.Install, chart *chart.Chart, ...) (*release.Release, error)
- func HelmUpgradeWithLogStreaming(ctx context.Context, client *action.Upgrade, releaseName string, ...) (*release.Release, error)
- func LoadEnvSettings() (*cli.EnvSettings, error)
- func Logger(l *zap.Logger) func(string, ...interface{})
- func NewLogger(debugEnabled DebugEnabledFunc) *slog.Logger
- func ResolveChartName(repository, name string) (string, string, error)
- type DebugCheckHandler
- type DebugEnabledFunc
- type LogStreamer
- type RestClientGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionConfigV3 ¶
func ChartPathOptions ¶
func ChartPathOptions(repository, chart, version string) (*action.ChartPathOptions, string, error)
func ChartValues ¶
func ClientV2 ¶
ClientV2 initializes a new Helm client with the given logger and kube config. NOTE: it doesn't initialise the release store.
func ConfigureDefaultInstall ¶
useful in case we want to configure a client that has already been created NOTE(fd): these default values were yoinked from the runner install code
func DefaultInstall ¶
func DefaultInstall(actionCfg *action.Configuration) *action.Install
func DefaultUpgrade ¶
func DefaultUpgrade(actionCfg *action.Configuration) *action.Upgrade
func GetChart ¶
func GetChart(name string, cpo *action.ChartPathOptions, settings *cli.EnvSettings) (*chart.Chart, string, error)
func GetManifest ¶
func GetManifest(cfg *action.Configuration, name string) (any, error)
func GetRelease ¶
func LoadEnvSettings ¶
func LoadEnvSettings() (*cli.EnvSettings, error)
func NewLogger ¶
func NewLogger(debugEnabled DebugEnabledFunc) *slog.Logger
NewLogger creates a new logger with dynamic debug checking
Types ¶
type DebugCheckHandler ¶
type DebugCheckHandler struct {
// contains filtered or unexported fields
}
DebugCheckHandler checks settings.Debug at log time
type DebugEnabledFunc ¶
type DebugEnabledFunc func() bool
DebugEnabledFunc is a function type that determines if debug logging is enabled We use a function because we want to check the setting at log time, not when the logger is created
type LogStreamer ¶
type LogStreamer struct {
// contains filtered or unexported fields
}
func NewLogStreamer ¶
func NewLogStreamer(clientset *kubernetes.Clientset, l *zap.Logger) *LogStreamer
func (*LogStreamer) StopAllStreams ¶
func (ls *LogStreamer) StopAllStreams()
func (*LogStreamer) StopStream ¶
func (ls *LogStreamer) StopStream(podIdentifier string)
func (*LogStreamer) StreamPodLogs ¶
this is the entrypoint
func (*LogStreamer) Wait ¶
func (ls *LogStreamer) Wait()
type RestClientGetter ¶
type RestClientGetter struct {
Namespace string
RestConfig *rest.Config
Clientset kubernetes.Interface
}
RestClientGetter is a RESTClientGetter interface implementation for the Helm Go packages.
func (*RestClientGetter) ToDiscoveryClient ¶
func (k *RestClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
ToDiscoveryClient implemented interface method
func (*RestClientGetter) ToRESTConfig ¶
func (k *RestClientGetter) ToRESTConfig() (*rest.Config, error)
ToRESTConfig implemented interface method
func (*RestClientGetter) ToRESTMapper ¶
func (k *RestClientGetter) ToRESTMapper() (meta.RESTMapper, error)
ToRESTMapper implemented interface method
func (*RestClientGetter) ToRawKubeConfigLoader ¶
func (k *RestClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
ToRawKubeConfigLoader implemented interface method