helm

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ApiVersionsData

type ApiVersionsData []string

func (ApiVersionsData) Has

func (apiVersions ApiVersionsData) Has(version string) bool

type CapabilitiesData

type CapabilitiesData struct {
	KubeVersion KubeVersionData `json:"kubeVersion,omitempty"`
	APIVersions ApiVersionsData `json:"apiVersions,omitempty"`
}

func GetCapabilities

func GetCapabilities(client discovery.DiscoveryInterface) (*CapabilitiesData, error)

type ChartData

type ChartData struct {
	Name       string `json:"name,omitempty"`
	Version    string `json:"version,omitempty"`
	Type       string `json:"type,omitempty"`
	AppVersion string `json:"appVersion,omitempty"`
}

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 KubeVersionData

type KubeVersionData 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 (*KubeVersionData) String

func (kubeVersion *KubeVersionData) String() string

type ReleaseData

type ReleaseData 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"`
}

type TemplateData

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

Jump to

Keyboard shortcuts

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