action

package
v0.29.7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 55 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractResourceKeys added in v0.7.0

func ExtractResourceKeys(vals map[string]interface{}) []string

func NewUncachedClient added in v0.4.0

func NewUncachedClient(getter action.RESTClientGetter) (client.Client, error)

func NewUncachedClientForConfig added in v0.4.0

func NewUncachedClientForConfig(cfg *rest.Config) (client.Client, error)

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) Do

func (x *Deployer) Do() error

func (*Deployer) Result

func (x *Deployer) Result() *release.Release

func (*Deployer) Run

func (x *Deployer) Run() (*release.Release, error)

func (*Deployer) WithOptions

func (x *Deployer) WithOptions(opts DeployOptions) *Deployer

func (*Deployer) WithRegistry

func (x *Deployer) WithRegistry(reg repo.IRegistry) *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) Do

func (x *Installer) Do() error

func (*Installer) Result

func (x *Installer) Result() *release.Release

func (*Installer) Run

func (x *Installer) Run() (*release.Release, error)

func (*Installer) WithOptions

func (x *Installer) WithOptions(opts InstallOptions) *Installer

func (*Installer) WithRegistry

func (x *Installer) WithRegistry(reg repo.IRegistry) *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) Do

func (x *Lister) Do() error

func (*Lister) Result

func (x *Lister) Result() []*release.Release

func (*Lister) Run

func (x *Lister) Run() ([]*release.Release, error)

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) ForChart added in v0.4.0

func (x *Renderer) ForChart(url, name, version string) *Renderer

func (*Renderer) ForChartSource added in v0.6.0

func (x *Renderer) ForChartSource(srcRef releasesapi.ChartSourceRef) *Renderer

func (*Renderer) Run added in v0.4.0

func (x *Renderer) Run() (string, map[string][]string, error)

func (*Renderer) WithNamespace added in v0.7.0

func (x *Renderer) WithNamespace(ns string) *Renderer

func (*Renderer) WithRegistry added in v0.4.0

func (x *Renderer) WithRegistry(reg repo.IRegistry) *Renderer

func (*Renderer) WithReleaseName added in v0.7.0

func (x *Renderer) WithReleaseName(name string) *Renderer

type UninstallOptions

type UninstallOptions struct {
	DisableHooks bool          `json:"disableHooks"`
	DryRun       bool          `json:"dryRun"`
	KeepHistory  bool          `json:"keepHistory"`
	Timeout      time.Duration `json:"timeout"`
}

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 (*Uninstaller) Run

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) Do

func (x *Upgrader) Do() error

func (*Upgrader) Result

func (x *Upgrader) Result() *release.Release

func (*Upgrader) Run

func (x *Upgrader) Run() (*release.Release, error)

func (*Upgrader) WithOptions

func (x *Upgrader) WithOptions(opts UpgradeOptions) *Upgrader

func (*Upgrader) WithRegistry

func (x *Upgrader) WithRegistry(reg repo.IRegistry) *Upgrader

func (*Upgrader) WithReleaseName

func (x *Upgrader) WithReleaseName(name string) *Upgrader

Jump to

Keyboard shortcuts

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