helm

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultReleaseHooks

type DefaultReleaseHooks struct {
	Object    v1.Object
	Chart     *chart.Chart
	Uninstall bool
}

func (*DefaultReleaseHooks) ConfigureInstall

func (d *DefaultReleaseHooks) ConfigureInstall(*action.Install)

func (*DefaultReleaseHooks) ConfigureUninstall

func (d *DefaultReleaseHooks) ConfigureUninstall(*action.Uninstall)

func (*DefaultReleaseHooks) ConfigureUpgrade

func (d *DefaultReleaseHooks) ConfigureUpgrade(*action.Upgrade)

func (*DefaultReleaseHooks) GetName

func (d *DefaultReleaseHooks) GetName() string

func (*DefaultReleaseHooks) GetNamespace

func (d *DefaultReleaseHooks) GetNamespace() string

func (*DefaultReleaseHooks) GetValues

func (d *DefaultReleaseHooks) GetValues() (map[string]interface{}, error)

func (*DefaultReleaseHooks) IsReady

func (d *DefaultReleaseHooks) IsReady() (bool, error)

func (*DefaultReleaseHooks) RegisterWatches

func (d *DefaultReleaseHooks) RegisterWatches(*builder.Builder)

func (*DefaultReleaseHooks) ShouldUninstall

func (d *DefaultReleaseHooks) ShouldUninstall() bool

type GenericHelmReconciler

type GenericHelmReconciler struct {
	// contains filtered or unexported fields
}

GenericHelmReconciler implements reconciler.ComponentReconciler from github.com/banzaicloud/operator-tools/pkg/reconciler without depending on it explicitly

func Init

func Init(helmChart http.File, opts ...InitializerOption) (*GenericHelmReconciler, error)

func (*GenericHelmReconciler) Reconcile

func (hr *GenericHelmReconciler) Reconcile(object runtime.Object) (*reconcile.Result, error)

func (*GenericHelmReconciler) RegisterWatches

func (hr *GenericHelmReconciler) RegisterWatches(b *builder.Builder)

func (*GenericHelmReconciler) SetReleaseHooks

type HelmReleaseHooks

type HelmReleaseHooks interface {
	GetName() string
	GetNamespace() string
	GetValues() (map[string]interface{}, error)
	IsReady() (bool, error)
	ShouldUninstall() bool
	ConfigureUpgrade(*action.Upgrade)
	ConfigureInstall(*action.Install)
	ConfigureUninstall(*action.Uninstall)
}

HelmReleaseHooks implements a custom helm release strategy that can be used to fine tune the installation and removal of components based on helm charts

type Initializer

type Initializer struct {
	ClientConfig    clientcmd.ClientConfig
	RestConfig      *rest.Config
	DiscoveryClient discovery.CachedDiscoveryInterface
	RestMapper      meta.RESTMapper
	Namespace       string
	Log             logr.Logger
}

func (*Initializer) ToDiscoveryClient

func (i *Initializer) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*Initializer) ToRESTConfig

func (i *Initializer) ToRESTConfig() (*rest.Config, error)

func (*Initializer) ToRESTMapper

func (i *Initializer) ToRESTMapper() (meta.RESTMapper, error)

func (*Initializer) ToRawKubeConfigLoader

func (i *Initializer) ToRawKubeConfigLoader() clientcmd.ClientConfig

type InitializerOption

type InitializerOption func(*Initializer) error

func CreateAllFromClientConfig

func CreateAllFromClientConfig() InitializerOption

func InitializerOptions

func InitializerOptions(opts ...InitializerOption) InitializerOption

func SetLog

func SetLog(logger logr.Logger) InitializerOption

func SetMapper

func SetMapper(m meta.RESTMapper) InitializerOption

func SetRestConfig

func SetRestConfig(r *rest.Config) InitializerOption

func WithLog

func WithLog(name string) InitializerOption

func WithNamespace

func WithNamespace(namespace string) InitializerOption

type NonCachedDiscovery

type NonCachedDiscovery struct {
	discovery.DiscoveryInterface
}

func (*NonCachedDiscovery) Fresh

func (n *NonCachedDiscovery) Fresh() bool

func (*NonCachedDiscovery) Invalidate

func (n *NonCachedDiscovery) Invalidate()

Jump to

Keyboard shortcuts

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