Documentation ¶
Index ¶
- type DefaultReleaseHooks
- func (d *DefaultReleaseHooks) ConfigureInstall(*action.Install)
- func (d *DefaultReleaseHooks) ConfigureUninstall(*action.Uninstall)
- func (d *DefaultReleaseHooks) ConfigureUpgrade(*action.Upgrade)
- func (d *DefaultReleaseHooks) GetName() string
- func (d *DefaultReleaseHooks) GetNamespace() string
- func (d *DefaultReleaseHooks) GetValues() (map[string]interface{}, error)
- func (d *DefaultReleaseHooks) IsReady() (bool, error)
- func (d *DefaultReleaseHooks) RegisterWatches(*builder.Builder)
- func (d *DefaultReleaseHooks) ShouldUninstall() bool
- type GenericHelmReconciler
- func (hr *GenericHelmReconciler) Reconcile(object runtime.Object) (*reconcile.Result, error)
- func (hr *GenericHelmReconciler) RegisterWatches(b *builder.Builder)
- func (hr *GenericHelmReconciler) SetReleaseHooks(hooks func(runtime.Object, *chart.Chart) (HelmReleaseHooks, error)) *GenericHelmReconciler
- type HelmReleaseHooks
- type Initializer
- type InitializerOption
- func CreateAllFromClientConfig() InitializerOption
- func InitializerOptions(opts ...InitializerOption) InitializerOption
- func Preset(c clientcmd.ClientConfig) InitializerOption
- func SetCachedDiscovery(d discovery.CachedDiscoveryInterface) InitializerOption
- func SetClientConfig(c clientcmd.ClientConfig) InitializerOption
- func SetLog(logger logr.Logger) InitializerOption
- func SetMapper(m meta.RESTMapper) InitializerOption
- func SetNonCachedDiscovery(d discovery.DiscoveryInterface) InitializerOption
- func SetRestConfig(r *rest.Config) InitializerOption
- func WithLog(name string) InitializerOption
- func WithNamespace(namespace string) InitializerOption
- type NonCachedDiscovery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultReleaseHooks ¶
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) RegisterWatches ¶
func (hr *GenericHelmReconciler) RegisterWatches(b *builder.Builder)
func (*GenericHelmReconciler) SetReleaseHooks ¶
func (hr *GenericHelmReconciler) SetReleaseHooks(hooks func(runtime.Object, *chart.Chart) (HelmReleaseHooks, error)) *GenericHelmReconciler
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 Preset ¶
func Preset(c clientcmd.ClientConfig) InitializerOption
func SetCachedDiscovery ¶
func SetCachedDiscovery(d discovery.CachedDiscoveryInterface) InitializerOption
func SetClientConfig ¶
func SetClientConfig(c clientcmd.ClientConfig) InitializerOption
func SetLog ¶
func SetLog(logger logr.Logger) InitializerOption
func SetMapper ¶
func SetMapper(m meta.RESTMapper) InitializerOption
func SetNonCachedDiscovery ¶
func SetNonCachedDiscovery(d discovery.DiscoveryInterface) 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()
Click to show internal directories.
Click to hide internal directories.