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 HookMetadata ¶
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 TemplateData ¶
Click to show internal directories.
Click to hide internal directories.