Documentation ¶
Index ¶
- func ExtractResourceKeys(vals map[string]interface{}) []string
- func NewUncachedClient(getter action.RESTClientGetter) (client.Client, error)
- func NewUncachedClientForConfig(cfg *rest.Config) (client.Client, error)
- func RefillMetadata(kc client.Client, ref, actual map[string]interface{}, ...) error
- type Configuration
- type DeployOptions
- type Deployer
- type InstallOptions
- type Installer
- type ListOptions
- type Lister
- type Renderer
- func (x *Renderer) ForChart(url, name, version string) *Renderer
- func (x *Renderer) ForChartSource(srcRef releasesapi.ChartSourceRef) *Renderer
- func (x *Renderer) Run() (string, map[string][]string, error)
- func (x *Renderer) WithNamespace(ns string) *Renderer
- func (x *Renderer) WithRegistry(reg repo.IRegistry) *Renderer
- func (x *Renderer) WithReleaseName(name string) *Renderer
- type UninstallOptions
- type Uninstaller
- func (x *Uninstaller) Do() error
- func (x *Uninstaller) Result() *release.UninstallReleaseResponse
- func (x *Uninstaller) Run() (*release.UninstallReleaseResponse, error)
- func (x *Uninstaller) WithOptions(opts UninstallOptions) *Uninstaller
- func (x *Uninstaller) WithReleaseName(name string) *Uninstaller
- type UpgradeOptions
- type Upgrader
- func (x *Upgrader) Do() error
- func (x *Upgrader) Result() *release.Release
- func (x *Upgrader) Run() (*release.Release, error)
- func (x *Upgrader) WithOptions(opts UpgradeOptions) *Upgrader
- func (x *Upgrader) WithRegistry(reg repo.IRegistry) *Upgrader
- func (x *Upgrader) WithReleaseName(name string) *Upgrader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractResourceKeys ¶ added in v0.7.0
func NewUncachedClient ¶ added in v0.4.0
func NewUncachedClient(getter action.RESTClientGetter) (client.Client, error)
func NewUncachedClientForConfig ¶ added in v0.4.0
func RefillMetadata ¶
func RefillMetadata(kc client.Client, ref, actual map[string]interface{}, gvr metav1.GroupVersionResource, rls types.NamespacedName) error
Types ¶
type Configuration ¶
type Configuration struct {
ha.Configuration
}
Configuration injects the dependencies that all actions share.
func (*Configuration) Init ¶
func (c *Configuration) Init(getter genericclioptions.RESTClientGetter, namespace, helmDriver string, logger ...ha.DebugLog) error
Init initializes the action configuration
type DeployOptions ¶
type DeployOptions struct { releasesapi.ChartSourceFlatRef `json:",inline,omitempty"` values.Options `json:",inline,omitempty"` ClientOnly bool `json:"clientOnly"` DryRun bool `json:"dryRun"` DisableHooks bool `json:"disableHooks"` Replace bool `json:"replace"` Wait bool `json:"wait"` Devel bool `json:"devel"` Timeout time.Duration `json:"timeout"` Namespace string `json:"namespace"` ReleaseName string `json:"releaseName"` Description string `json:"description"` Atomic bool `json:"atomic"` SkipCRDs bool `json:"skipCRDs"` SubNotes bool `json:"subNotes"` DisableOpenAPIValidation bool `json:"disableOpenAPIValidation"` IncludeCRDs bool `json:"includeCRDs"` PartOf string `json:"partOf"` CreateNamespace bool `json:"createNamespace"` Force bool `json:"force"` Recreate bool `json:"recreate"` ResetValues bool `json:"resetValues"` ReuseValues bool `json:"reuseValues"` CleanupOnFail bool `json:"cleanupOnFail"` }
type Deployer ¶
type Deployer struct {
// contains filtered or unexported fields
}
func NewDeployer ¶
func NewDeployer(getter genericclioptions.RESTClientGetter, namespace string, helmDriver string, log ...ha.DebugLog) (*Deployer, error)
func NewDeployerForConfig ¶
func NewDeployerForConfig(cfg *Configuration) *Deployer
func (*Deployer) WithOptions ¶
func (x *Deployer) WithOptions(opts DeployOptions) *Deployer
type InstallOptions ¶
type InstallOptions struct { releasesapi.ChartSourceFlatRef `json:",inline,omitempty"` values.Options `json:",inline,omitempty"` ClientOnly bool `json:"clientOnly"` DryRun bool `json:"dryRun"` DisableHooks bool `json:"disableHooks"` Replace bool `json:"replace"` Wait bool `json:"wait"` Devel bool `json:"devel"` Timeout time.Duration `json:"timeout"` Namespace string `json:"namespace"` ReleaseName string `json:"releaseName"` Description string `json:"description"` Atomic bool `json:"atomic"` SkipCRDs bool `json:"skipCRDs"` SubNotes bool `json:"subNotes"` DisableOpenAPIValidation bool `json:"disableOpenAPIValidation"` IncludeCRDs bool `json:"includeCRDs"` PartOf string `json:"partOf"` CreateNamespace bool `json:"createNamespace"` }
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func NewInstaller ¶
func NewInstaller(getter genericclioptions.RESTClientGetter, namespace string, helmDriver string, log ...ha.DebugLog) (*Installer, error)
func NewInstallerForConfig ¶
func NewInstallerForConfig(cfg *Configuration) *Installer
func (*Installer) WithOptions ¶
func (x *Installer) WithOptions(opts InstallOptions) *Installer
type ListOptions ¶
type ListOptions struct { All bool `json:"all"` Namespace string `json:"namespace"` Sort ha.Sorter `json:"sort"` ByDate bool `json:"byDate"` SortReverse bool `json:"sortReverse"` Limit int `json:"limit"` Offset int `json:"offset"` Filter string `json:"filter"` Short bool `json:"short"` Uninstalled bool `json:"uninstalled"` Superseded bool `json:"superseded"` Uninstalling bool `json:"uninstalling"` Deployed bool `json:"deployed"` Failed bool `json:"failed"` Pending bool `json:"pending"` }
type Lister ¶
type Lister struct {
// contains filtered or unexported fields
}
func NewLister ¶
func NewLister(getter genericclioptions.RESTClientGetter, namespace string, helmDriver string, log ...ha.DebugLog) (*Lister, error)
func NewListerForConfig ¶
func NewListerForConfig(cfg *Configuration) *Lister
func (*Lister) WithOptions ¶
func (x *Lister) WithOptions(opts ListOptions) *Lister
type Renderer ¶ added in v0.4.0
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶ added in v0.4.0
func NewRenderer(options ...InstallOptions) (*Renderer, error)
func NewRendererForConfig ¶ added in v0.4.0
func NewRendererForConfig(cfg *ha.Configuration, options ...InstallOptions) *Renderer
func (*Renderer) ForChartSource ¶ added in v0.6.0
func (x *Renderer) ForChartSource(srcRef releasesapi.ChartSourceRef) *Renderer
func (*Renderer) WithNamespace ¶ added in v0.7.0
func (*Renderer) WithRegistry ¶ added in v0.4.0
func (*Renderer) WithReleaseName ¶ added in v0.7.0
type UninstallOptions ¶
type Uninstaller ¶
type Uninstaller struct {
// contains filtered or unexported fields
}
func NewUninstaller ¶
func NewUninstaller(getter genericclioptions.RESTClientGetter, namespace string, helmDriver string, log ...ha.DebugLog) (*Uninstaller, error)
func NewUninstallerForConfig ¶
func NewUninstallerForConfig(cfg *Configuration) *Uninstaller
func (*Uninstaller) Do ¶
func (x *Uninstaller) Do() error
func (*Uninstaller) Result ¶
func (x *Uninstaller) Result() *release.UninstallReleaseResponse
func (*Uninstaller) Run ¶
func (x *Uninstaller) Run() (*release.UninstallReleaseResponse, error)
func (*Uninstaller) WithOptions ¶
func (x *Uninstaller) WithOptions(opts UninstallOptions) *Uninstaller
func (*Uninstaller) WithReleaseName ¶
func (x *Uninstaller) WithReleaseName(name string) *Uninstaller
type UpgradeOptions ¶
type UpgradeOptions struct { releasesapi.ChartSourceFlatRef `json:",inline,omitempty"` values.Options `json:",inline,omitempty"` Install bool `json:"install"` Devel bool `json:"devel"` Namespace string `json:"namespace"` Timeout time.Duration `json:"timeout"` Wait bool `json:"wait"` DisableHooks bool `json:"disableHooks"` DryRun bool `json:"dryRun"` Force bool `json:"force"` ResetValues bool `json:"resetValues"` ReuseValues bool `json:"reuseValues"` Recreate bool `json:"recreate"` MaxHistory int `json:"maxHistory"` Atomic bool `json:"atomic"` CleanupOnFail bool `json:"cleanupOnFail"` PartOf string `json:"partOf"` }
type Upgrader ¶
type Upgrader struct {
// contains filtered or unexported fields
}
func NewUpgrader ¶
func NewUpgrader(getter genericclioptions.RESTClientGetter, namespace string, helmDriver string, log ...ha.DebugLog) (*Upgrader, error)
func NewUpgraderForConfig ¶
func NewUpgraderForConfig(cfg *Configuration) *Upgrader
func (*Upgrader) WithOptions ¶
func (x *Upgrader) WithOptions(opts UpgradeOptions) *Upgrader
func (*Upgrader) WithReleaseName ¶
Click to show internal directories.
Click to hide internal directories.