Documentation ¶
Index ¶
- func ClearCondition(rs *v1beta1.RepoSync, condType v1beta1.RepoSyncConditionType)
- func ConditionHasNoErrors(cond v1beta1.RepoSyncCondition) bool
- func Errors(rs *v1beta1.RepoSync, errorSources []v1beta1.ErrorSource) []v1beta1.ConfigSyncError
- func GetCondition(conditions []v1beta1.RepoSyncCondition, condType v1beta1.RepoSyncConditionType) *v1beta1.RepoSyncCondition
- func GetHelmBase(helm *v1beta1.HelmRepoSync) *v1beta1.HelmBase
- func IsReconciling(rs *v1beta1.RepoSync) bool
- func IsStalled(rs *v1beta1.RepoSync) bool
- func ObjectKey(scope declared.Scope, name string) client.ObjectKey
- func ReconcilingMessage(rs *v1beta1.RepoSync) string
- func RemoveCondition(rs *v1beta1.RepoSync, condType v1beta1.RepoSyncConditionType) (updated bool)
- func SetReconcilerFinalizerFailure(rs *v1beta1.RepoSync, errs status.MultiError) (updated bool)
- func SetReconcilerFinalizing(rs *v1beta1.RepoSync, reason, message string) (updated bool)
- func SetReconciling(rs *v1beta1.RepoSync, reason, message string) (updated, transitioned bool)
- func SetStalled(rs *v1beta1.RepoSync, reason string, err error) (updated, transitioned bool)
- func SetSyncing(rs *v1beta1.RepoSync, status bool, reason, message, commit string, ...) (updated, transitioned bool)
- func StalledMessage(rs *v1beta1.RepoSync) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCondition ¶
func ClearCondition(rs *v1beta1.RepoSync, condType v1beta1.RepoSyncConditionType)
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.RepoSyncCondition) bool
ConditionHasNoErrors returns true when `cond` has no errors, and returns false when `cond` has errors.
func Errors ¶
func Errors(rs *v1beta1.RepoSync, errorSources []v1beta1.ErrorSource) []v1beta1.ConfigSyncError
Errors returns the errors referred by `errorSources`.
func GetCondition ¶
func GetCondition(conditions []v1beta1.RepoSyncCondition, condType v1beta1.RepoSyncConditionType) *v1beta1.RepoSyncCondition
GetCondition returns the condition with the provided type.
func GetHelmBase ¶
func GetHelmBase(helm *v1beta1.HelmRepoSync) *v1beta1.HelmBase
GetHelmBase returns the spec.helm.helmBase when spec.helm is not nil
func IsReconciling ¶
IsReconciling returns true if the given RepoSync has a True Reconciling condition.
func ObjectKey ¶
ObjectKey returns a key appropriate for fetching a RepoSync in the given namespace.
func ReconcilingMessage ¶
ReconcilingMessage returns the message from a True Reconciling condition or an empty string if no True Reconciling condition was found.
func RemoveCondition ¶ added in v1.15.1
func RemoveCondition(rs *v1beta1.RepoSync, condType v1beta1.RepoSyncConditionType) (updated bool)
RemoveCondition removes the RepoSync condition with the provided type.
func SetReconcilerFinalizerFailure ¶ added in v1.15.1
func SetReconcilerFinalizerFailure(rs *v1beta1.RepoSync, errs status.MultiError) (updated bool)
SetReconcilerFinalizerFailure sets the ReconcilerFinalizerFailure condition. If there are errors, the status is True, otherwise False. Use RemoveCondition to remove this condition when the finalizer is done.
func SetReconcilerFinalizing ¶ added in v1.15.1
SetReconcilerFinalizing sets the ReconcilerFinalizing condition to True. Use RemoveCondition to remove this condition. It should never be set to False.
func SetReconciling ¶
SetReconciling sets the Reconciling condition to True. Returns whether the condition was updated (any change) or transitioned (status change). Removes the Syncing condition if the Reconciling condition transitioned.
func SetStalled ¶
SetStalled sets the Stalled condition to True. Returns whether the condition was updated (any change) or transitioned (status change). Removes the Syncing condition if the Stalled condition transitioned.
func SetSyncing ¶
func SetSyncing(rs *v1beta1.RepoSync, status bool, reason, message, commit string, errorSources []v1beta1.ErrorSource, errorSummary *v1beta1.ErrorSummary, timestamp metav1.Time) (updated, transitioned bool)
SetSyncing sets the Syncing condition. Returns whether the condition was updated (any change) or transitioned (status change).
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.