rootsync

package
v1.18.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

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

func IsReconciling(rs *v1beta1.RootSync) bool

IsReconciling returns true if the given RootSync has a True Reconciling condition.

func IsStalled

func IsStalled(rs *v1beta1.RootSync) bool

IsStalled returns true if the given RootSync has a True Stalled condition.

func ObjectKey

func ObjectKey(name string) client.ObjectKey

ObjectKey returns a key appropriate for fetching a RootSync.

func ReconcilingMessage

func ReconcilingMessage(rs *v1beta1.RootSync) string

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.RootSync, condType v1beta1.RootSyncConditionType) (updated bool)

RemoveCondition removes the RootSync condition with the provided type.

func SetReconcilerFinalizerFailure added in v1.15.1

func SetReconcilerFinalizerFailure(rs *v1beta1.RootSync, 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

func SetReconcilerFinalizing(rs *v1beta1.RootSync, reason, message string) (updated bool)

SetReconcilerFinalizing sets the ReconcilerFinalizing condition to True. Use RemoveCondition to remove this condition. It should never be set to False.

func SetReconciling

func SetReconciling(rs *v1beta1.RootSync, reason, message string) (updated, transitioned bool)

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

func SetStalled(rs *v1beta1.RootSync, reason string, err error) (updated, transitioned bool)

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.RootSync, 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

func StalledMessage(rs *v1beta1.RootSync) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL