Documentation ¶
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 ¶
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 ¶
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 ¶
type HelmAppConditionReason string
type HelmAppConditionType ¶
type HelmAppConditionType string
type HelmAppList ¶
type HelmAppRelease ¶
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 ¶
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 ¶
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.