Documentation ¶
Index ¶
- func ClearCondition(rs *v1beta1.RootSync, condType v1beta1.RootSyncConditionType)
- func ConditionHasNoErrors(cond v1beta1.RootSyncCondition) bool
- func Errors(rs *v1beta1.RootSync, errorSources []v1beta1.ErrorSource) []v1beta1.ConfigSyncError
- func GetCondition(conditions []v1beta1.RootSyncCondition, condType v1beta1.RootSyncConditionType) *v1beta1.RootSyncCondition
- func GetHelmBase(helm *v1beta1.HelmRootSync) *v1beta1.HelmBase
- func IsReconciling(rs *v1beta1.RootSync) bool
- func IsStalled(rs *v1beta1.RootSync) bool
- func ObjectKey(name string) client.ObjectKey
- func ReconcilingMessage(rs *v1beta1.RootSync) string
- func SetReconciling(rs *v1beta1.RootSync, reason, message string)
- func SetStalled(rs *v1beta1.RootSync, reason string, err error)
- func SetSyncing(rs *v1beta1.RootSync, status bool, reason, message, commit string, ...)
- func StalledMessage(rs *v1beta1.RootSync) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCondition ¶
func ClearCondition(rs *v1beta1.RootSync, condType v1beta1.RootSyncConditionType)
ClearCondition sets the specified condition to False if it is currently defined as True. If the condition is unspecified, then it is left that way.
func ConditionHasNoErrors ¶
func ConditionHasNoErrors(cond v1beta1.RootSyncCondition) bool
ConditionHasNoErrors returns true when `cond` has no errors, and returns false when `cond` has errors.
func Errors ¶
func Errors(rs *v1beta1.RootSync, errorSources []v1beta1.ErrorSource) []v1beta1.ConfigSyncError
Errors returns the errors referred by `errorSources`.
func GetCondition ¶
func GetCondition(conditions []v1beta1.RootSyncCondition, condType v1beta1.RootSyncConditionType) *v1beta1.RootSyncCondition
GetCondition returns the condition with the provided type.
func GetHelmBase ¶
func GetHelmBase(helm *v1beta1.HelmRootSync) *v1beta1.HelmBase
GetHelmBase returns the spec.helm.helmBase when spec.helm is not nil
func IsReconciling ¶
IsReconciling returns true if the given RootSync has a True Reconciling condition.
func ReconcilingMessage ¶
ReconcilingMessage returns the message from a True Reconciling condition or an empty string if no True Reconciling condition was found.
func SetReconciling ¶
SetReconciling sets the Reconciling condition to True.
func SetStalled ¶
SetStalled sets the Stalled condition to True.
func SetSyncing ¶
func SetSyncing(rs *v1beta1.RootSync, status bool, reason, message, commit string, errorSources []v1beta1.ErrorSource, errorSummary *v1beta1.ErrorSummary, lastUpdate metav1.Time)
SetSyncing sets the Syncing condition.
func StalledMessage ¶
StalledMessage returns the message from a True Stalled condition or an empty string if no True Stalled condition was found.
Types ¶
This section is empty.