Version: v0.3.0 Latest Latest

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 5 Imported by: 0



Package types contains types used by various components of the Helm operator



This section is empty.


This section is empty.


This section is empty.


type ConditionReason

type ConditionReason string
const (
	ReasonUnknown               ConditionReason = "Unknown"
	ReasonCustomResourceAdded   ConditionReason = "CustomResourceAdded"
	ReasonCustomResourceUpdated ConditionReason = "CustomResourceUpdated"
	ReasonApplySuccessful       ConditionReason = "ApplySuccessful"
	ReasonApplyFailed           ConditionReason = "ApplyFailed"

type HelmApp

type HelmApp struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              HelmAppSpec   `json:"spec"`
	Status            HelmAppStatus `json:"status,omitempty"`

type HelmAppList

type HelmAppList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []HelmApp `json:"items"`

type HelmAppSpec

type HelmAppSpec map[string]interface{}

type HelmAppStatus

type HelmAppStatus struct {
	Release            *release.Release `json:"release"`
	Phase              ResourcePhase    `json:"phase"`
	Reason             ConditionReason  `json:"reason,omitempty"`
	Message            string           `json:"message,omitempty"`
	LastUpdateTime     metav1.Time      `json:"lastUpdateTime,omitempty"`
	LastTransitionTime metav1.Time      `json:"lastTransitionTime,omitempty"`

func StatusFor

func StatusFor(cr *unstructured.Unstructured) *HelmAppStatus

StatusFor safely returns a typed status block from a custom resource.

func (*HelmAppStatus) SetPhase

func (s *HelmAppStatus) SetPhase(phase ResourcePhase, reason ConditionReason, message string) *HelmAppStatus

SetPhase takes a custom resource status and returns the updated status, without updating the resource in the cluster.

func (*HelmAppStatus) SetRelease

func (s *HelmAppStatus) SetRelease(release *release.Release) *HelmAppStatus

SetRelease takes a release object and adds or updates the release on the status object

func (*HelmAppStatus) ToMap

func (s *HelmAppStatus) ToMap() (map[string]interface{}, error)

type ResourcePhase

type ResourcePhase string
const (
	PhaseNone     ResourcePhase = ""
	PhaseApplying ResourcePhase = "Applying"
	PhaseApplied  ResourcePhase = "Applied"
	PhaseFailed   ResourcePhase = "Failed"

Jump to

Keyboard shortcuts

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