Documentation ¶
Overview ¶
Package types contains types used by various components of the Helm operator
Index ¶
Constants ¶
View Source
const ( ConditionInitialized HelmAppConditionType = "Initialized" ConditionDeployed HelmAppConditionType = "Deployed" ConditionReleaseFailed HelmAppConditionType = "ReleaseFailed" ConditionIrreconcilable HelmAppConditionType = "Irreconcilable" StatusTrue ConditionStatus = "True" StatusFalse ConditionStatus = "False" StatusUnknown ConditionStatus = "Unknown" ReasonInstallSuccessful HelmAppConditionReason = "InstallSuccessful" ReasonUpgradeSuccessful HelmAppConditionReason = "UpgradeSuccessful" ReasonUninstallSuccessful HelmAppConditionReason = "UninstallSuccessful" ReasonInstallError HelmAppConditionReason = "InstallError" ReasonUpgradeError HelmAppConditionReason = "UpgradeError" ReasonReconcileError HelmAppConditionReason = "ReconcileError" ReasonUninstallError HelmAppConditionReason = "UninstallError" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConditionStatus ¶ added in v0.4.0
type ConditionStatus string
type HelmApp ¶
type HelmApp struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec HelmAppSpec `json:"spec"` Status HelmAppStatus `json:"status,omitempty"` }
type HelmAppCondition ¶ added in v0.4.0
type HelmAppCondition struct { Type HelmAppConditionType `json:"type"` Status ConditionStatus `json:"status"` Reason HelmAppConditionReason `json:"reason,omitempty"` Message string `json:"message,omitempty"` LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` }
type HelmAppConditionReason ¶ added in v0.4.0
type HelmAppConditionReason string
type HelmAppConditionType ¶ added in v0.4.0
type HelmAppConditionType string
type HelmAppList ¶
type HelmAppRelease ¶ added in v0.8.0
type HelmAppSpec ¶
type HelmAppSpec map[string]interface{}
type HelmAppStatus ¶
type HelmAppStatus struct { Conditions []HelmAppCondition `json:"conditions"` DeployedRelease *HelmAppRelease `json:"deployedRelease,omitempty"` }
func StatusFor ¶
func StatusFor(cr *unstructured.Unstructured) *HelmAppStatus
StatusFor safely returns a typed status block from a custom resource.
func (*HelmAppStatus) RemoveCondition ¶ added in v0.4.0
func (s *HelmAppStatus) RemoveCondition(conditionType HelmAppConditionType) *HelmAppStatus
RemoveCondition removes the condition with the passed condition type from the status object. If the condition is not already present, the returned status object is returned unchanged. RemoveCondition does not update the resource in the cluster.
func (*HelmAppStatus) SetCondition ¶ added in v0.4.0
func (s *HelmAppStatus) SetCondition(condition HelmAppCondition) *HelmAppStatus
SetCondition sets a condition on the status object. If the condition already exists, it will be replaced. SetCondition does not update the resource in the cluster.
func (*HelmAppStatus) ToMap ¶
func (s *HelmAppStatus) ToMap() (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.