helm

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChartTypeApplication = "application"
	ChartTypeLibrary     = "library"
)
View Source
const (
	HookTypePreInstall   = "pre-install"
	HookTypePostInstall  = "post-install"
	HookTypePreUpgrade   = "pre-upgrade"
	HookTypePostUpgrade  = "post-upgrade"
	HookTypePreDelete    = "pre-delete"
	HookTypePostDelete   = "post-delete"
	HookTypePreRollback  = "pre-rollback"
	HookTypePostRollback = "post-rollback"
	HookTypeTest         = "test"
	HookTypeTestSuccess  = "test-success"
)
View Source
const (
	HookMinWeight = -100
	HookMaxWeight = 100
)
View Source
const (
	HookDeletePolicyBeforeHookCreation = "before-hook-creation"
	HookDeletePolicyHookSucceeded      = "hook-succeeded"
	HookDeletePolicyHookFailed         = "hook-failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiVersions added in v0.3.16

type ApiVersions []string

func (ApiVersions) DeepCopy added in v0.3.16

func (in ApiVersions) DeepCopy() ApiVersions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiVersions.

func (ApiVersions) DeepCopyInto added in v0.3.16

func (in ApiVersions) DeepCopyInto(out *ApiVersions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ApiVersions) Has added in v0.3.16

func (apiVersions ApiVersions) Has(version string) bool

type Capabilities added in v0.3.16

type Capabilities struct {
	KubeVersion KubeVersion `json:"kubeVersion,omitempty"`
	APIVersions ApiVersions `json:"apiVersions,omitempty"`
}

func GetCapabilities

func GetCapabilities(discoveryClient discovery.DiscoveryInterface) (*Capabilities, error)

func (*Capabilities) DeepCopy added in v0.3.16

func (in *Capabilities) DeepCopy() *Capabilities

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Capabilities.

func (*Capabilities) DeepCopyInto added in v0.3.16

func (in *Capabilities) DeepCopyInto(out *Capabilities)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Chart added in v0.3.16

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

func ParseChart added in v0.3.16

func ParseChart(fsys fs.FS, chartPath string, parent *Chart) (*Chart, error)

func (*Chart) Render added in v0.3.16

func (c *Chart) Render(context RenderContext) ([]client.Object, error)

type ChartDependency added in v0.3.16

type ChartDependency struct {
	Name         string             `json:"name,omitempty"`
	Alias        string             `json:"alias,omitempty"`
	Condition    string             `json:"condition,omitempty"`
	Tags         []string           `json:"tags,omitempty"`
	ImportValues []ChartImportValue `json:"import-values,omitempty"`
}

func (*ChartDependency) DeepCopy added in v0.3.16

func (in *ChartDependency) DeepCopy() *ChartDependency

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartDependency.

func (*ChartDependency) DeepCopyInto added in v0.3.16

func (in *ChartDependency) DeepCopyInto(out *ChartDependency)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ChartImportValue added in v0.3.16

type ChartImportValue struct {
	Child  string `json:"child"`
	Parent string `json:"parent"`
}

func (*ChartImportValue) DeepCopy added in v0.3.16

func (in *ChartImportValue) DeepCopy() *ChartImportValue

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartImportValue.

func (*ChartImportValue) DeepCopyInto added in v0.3.16

func (in *ChartImportValue) DeepCopyInto(out *ChartImportValue)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ChartImportValue) UnmarshalJSON added in v0.3.16

func (v *ChartImportValue) UnmarshalJSON(b []byte) error

type ChartMetadata added in v0.3.16

type ChartMetadata struct {
	Name         string            `json:"name,omitempty"`
	Version      string            `json:"version,omitempty"`
	Type         string            `json:"type,omitempty"`
	AppVersion   string            `json:"appVersion,omitempty"`
	Dependencies []ChartDependency `json:"dependencies,omitempty"`
}

func (*ChartMetadata) DeepCopy added in v0.3.16

func (in *ChartMetadata) DeepCopy() *ChartMetadata

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartMetadata.

func (*ChartMetadata) DeepCopyInto added in v0.3.16

func (in *ChartMetadata) DeepCopyInto(out *ChartMetadata)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HookMetadata

type HookMetadata struct {
	Types          []string
	Weight         int
	DeletePolicies []string
}

func ParseHookMetadata

func ParseHookMetadata(object client.Object) (*HookMetadata, error)

parse helm hook properties from object, return nil if annotation helm.sh/hook is not set

type KubeVersion added in v0.3.16

type KubeVersion struct {
	Version string `json:"version,omitempty"`
	Major   string `json:"major,omitempty"`
	Minor   string `json:"minor,omitempty"`
	// GitVersion is actually deprecated, but some charts still use it
	GitVersion string `json:"gitVersion,omitempty"`
}

func (*KubeVersion) DeepCopy added in v0.3.16

func (in *KubeVersion) DeepCopy() *KubeVersion

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeVersion.

func (*KubeVersion) DeepCopyInto added in v0.3.16

func (in *KubeVersion) DeepCopyInto(out *KubeVersion)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KubeVersion) String added in v0.3.16

func (kubeVersion *KubeVersion) String() string

type Release added in v0.3.16

type Release struct {
	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name,omitempty"`
	Service   string `json:"service,omitempty"`
	IsInstall bool   `json:"isInstall,omitempty"`
	IsUpgrade bool   `json:"isUpgrade,omitempty"`
}

func (*Release) DeepCopy added in v0.3.16

func (in *Release) DeepCopy() *Release

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Release.

func (*Release) DeepCopyInto added in v0.3.16

func (in *Release) DeepCopyInto(out *Release)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RenderContext added in v0.3.16

type RenderContext struct {
	LocalClient     client.Client
	Client          client.Client
	DiscoveryClient discovery.DiscoveryInterface
	Release         *Release
	Values          map[string]any
}

type Template added in v0.3.16

type Template struct {
	Name     string `json:"name,omitempty"`
	BasePath string `json:"basePath,omitempty"`
}

func (*Template) DeepCopy added in v0.3.16

func (in *Template) DeepCopy() *Template

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.

func (*Template) DeepCopyInto added in v0.3.16

func (in *Template) DeepCopyInto(out *Template)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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