Documentation ¶
Overview ¶
Package types contains types used by various components of the Helm operator
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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" )
Click to show internal directories.
Click to hide internal directories.