Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertStringListToSemanticVersionList ¶ added in v0.7.0
ConvertStringListToSemanticVersionList converts a slice of strings into a slice of semantic version.
func SortVersions ¶ added in v0.7.0
func SortVersions(versions []*semver.Version)
SortVersions sorts semver versions in decreasing order.
Types ¶
type ArtifactUpdatePredicate ¶
ArtifactUpdatePredicate triggers an update event when a HelmRepository artifact revision changes. i.e.: Repo information was updated.
func (ArtifactUpdatePredicate) Update ¶
func (ArtifactUpdatePredicate) Update(e event.UpdateEvent) bool
type DeletePredicate ¶
DeletePredicate triggers an update event when a HelmRepository generation changes. i.e.: Delete events.
func (DeletePredicate) Update ¶
func (DeletePredicate) Update(e event.UpdateEvent) bool
type HelmWatcherReconciler ¶
type HelmWatcherReconciler struct { client.Client Cache cache.Cache RepoManager helm.HelmRepoManager ExternalEventRecorder eventRecorder Scheme *runtime.Scheme }
HelmWatcherReconciler runs the `reconcile` loop for the watcher.
func (*HelmWatcherReconciler) Reconcile ¶
func (r *HelmWatcherReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is either called when there is a new HelmRepository or, when there is an update to a HelmRepository. Because the watcher watches all helmrepositories, it will update data for all of them.
func (*HelmWatcherReconciler) SetupWithManager ¶
func (r *HelmWatcherReconciler) SetupWithManager(mgr ctrl.Manager) error