Documentation ¶
Index ¶
- Variables
- type ActionClientGetter
- type ActionClientGetterFunc
- type ActionClientGetterOption
- func AppendGetOptions(opts ...GetOption) ActionClientGetterOption
- func AppendInstallFailureUninstallOptions(opts ...UninstallOption) ActionClientGetterOption
- func AppendInstallOptions(opts ...InstallOption) ActionClientGetterOption
- func AppendPostRenderers(postRendererFns ...PostRendererProvider) ActionClientGetterOption
- func AppendUninstallOptions(opts ...UninstallOption) ActionClientGetterOption
- func AppendUpgradeFailureRollbackOptions(opts ...RollbackOption) ActionClientGetterOption
- func AppendUpgradeOptions(opts ...UpgradeOption) ActionClientGetterOption
- type ActionConfigGetter
- type ActionConfigGetterOption
- func ClientNamespaceMapper(m ObjectToStringMapper) ActionConfigGetterOption
- func DisableStorageOwnerRefInjection(v bool) ActionConfigGetterOption
- func RestConfigMapper(f func(context.Context, client.Object, *rest.Config) (*rest.Config, error)) ActionConfigGetterOption
- func StorageNamespaceMapper(m ObjectToStringMapper) ActionConfigGetterOption
- type ActionInterface
- type GetOption
- type InstallOption
- type ObjectToStringMapper
- type PostRendererFunc
- type PostRendererProvider
- type RollbackOption
- type UninstallOption
- type UpgradeOption
Constants ¶
This section is empty.
Variables ¶
var DefaultPostRendererFunc = func(rm meta.RESTMapper, kubeClient kube.Interface, owner client.Object) postrender.PostRenderer {
return &ownerPostRenderer{rm, kubeClient, owner}
}
DefaultPostRendererFunc returns a post-renderer that applies owner references to compatible objects in a helm release manifest. This is the default post-renderer used by ActionClients created with NewActionClientGetter.
Functions ¶
This section is empty.
Types ¶
type ActionClientGetter ¶
type ActionClientGetter interface {
ActionClientFor(ctx context.Context, obj client.Object) (ActionInterface, error)
}
func NewActionClientGetter ¶
func NewActionClientGetter(acg ActionConfigGetter, opts ...ActionClientGetterOption) (ActionClientGetter, error)
type ActionClientGetterFunc ¶
func (ActionClientGetterFunc) ActionClientFor ¶
func (acgf ActionClientGetterFunc) ActionClientFor(ctx context.Context, obj client.Object) (ActionInterface, error)
type ActionClientGetterOption ¶ added in v0.1.0
type ActionClientGetterOption func(*actionClientGetter) error
func AppendGetOptions ¶ added in v0.1.0
func AppendGetOptions(opts ...GetOption) ActionClientGetterOption
func AppendInstallFailureUninstallOptions ¶ added in v0.1.0
func AppendInstallFailureUninstallOptions(opts ...UninstallOption) ActionClientGetterOption
func AppendInstallOptions ¶ added in v0.1.0
func AppendInstallOptions(opts ...InstallOption) ActionClientGetterOption
func AppendPostRenderers ¶ added in v0.1.0
func AppendPostRenderers(postRendererFns ...PostRendererProvider) ActionClientGetterOption
func AppendUninstallOptions ¶ added in v0.1.0
func AppendUninstallOptions(opts ...UninstallOption) ActionClientGetterOption
func AppendUpgradeFailureRollbackOptions ¶ added in v0.1.0
func AppendUpgradeFailureRollbackOptions(opts ...RollbackOption) ActionClientGetterOption
func AppendUpgradeOptions ¶ added in v0.1.0
func AppendUpgradeOptions(opts ...UpgradeOption) ActionClientGetterOption
type ActionConfigGetter ¶
type ActionConfigGetter interface {
ActionConfigFor(ctx context.Context, obj client.Object) (*action.Configuration, error)
}
func NewActionConfigGetter ¶
func NewActionConfigGetter(baseRestConfig *rest.Config, rm meta.RESTMapper, opts ...ActionConfigGetterOption) (ActionConfigGetter, error)
type ActionConfigGetterOption ¶ added in v0.1.0
type ActionConfigGetterOption func(getter *actionConfigGetter)
func ClientNamespaceMapper ¶ added in v0.1.0
func ClientNamespaceMapper(m ObjectToStringMapper) ActionConfigGetterOption
func DisableStorageOwnerRefInjection ¶ added in v0.1.0
func DisableStorageOwnerRefInjection(v bool) ActionConfigGetterOption
func RestConfigMapper ¶ added in v0.2.0
func StorageNamespaceMapper ¶ added in v0.1.0
func StorageNamespaceMapper(m ObjectToStringMapper) ActionConfigGetterOption
type ActionInterface ¶
type ActionInterface interface { Get(name string, opts ...GetOption) (*release.Release, error) Install(name, namespace string, chrt *chart.Chart, vals map[string]interface{}, opts ...InstallOption) (*release.Release, error) Upgrade(name, namespace string, chrt *chart.Chart, vals map[string]interface{}, opts ...UpgradeOption) (*release.Release, error) Uninstall(name string, opts ...UninstallOption) (*release.UninstallReleaseResponse, error) Reconcile(rel *release.Release) error }
type InstallOption ¶
func AppendInstallPostRenderer ¶ added in v0.1.0
func AppendInstallPostRenderer(pr postrender.PostRenderer) InstallOption
AppendInstallPostRenderer appends a post-renderer to the existing chain of post-renderers configured for the install. This function should be used instead of WithInstallPostRenderer if you want to inherit the default set of post-renderers configured by an ActionClientGetter.
func WithInstallPostRenderer ¶ added in v0.1.0
func WithInstallPostRenderer(pr postrender.PostRenderer) InstallOption
WithInstallPostRenderer sets the post-renderer to use for the install. It overrides any post-renderer that may already be configured or set as a default.
type ObjectToStringMapper ¶ added in v0.1.0
type PostRendererFunc ¶ added in v0.1.0
PostRendererFunc defines a function signature that implements helm's PostRenderer interface.
type PostRendererProvider ¶ added in v0.1.0
type PostRendererProvider func(rm meta.RESTMapper, kubeClient kube.Interface, obj client.Object) postrender.PostRenderer
PostRendererProvider is a function that returns a post-renderer for a given object. obj represents the custom resource that is being reconciled.
type RollbackOption ¶ added in v0.1.0
type UninstallOption ¶
type UpgradeOption ¶
func AppendUpgradePostRenderer ¶ added in v0.1.0
func AppendUpgradePostRenderer(pr postrender.PostRenderer) UpgradeOption
AppendUpgradePostRenderer appends a post-renderer to the existing chain of post-renderers configured for the upgrade. This function should be used instead of WithUpgradePostRenderer if you want to inherit the default set of post-renderers configured by an ActionClientGetter.
func WithUpgradePostRenderer ¶ added in v0.1.0
func WithUpgradePostRenderer(pr postrender.PostRenderer) UpgradeOption
WithUpgradePostRenderer sets the post-renderer to use for the upgrade. It overrides any post-renderer that may already be configured or set as a default.