controller

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStringListToSemanticVersionList added in v0.7.0

func ConvertStringListToSemanticVersionList(versions []string) ([]*semver.Version, error)

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

type ArtifactUpdatePredicate struct {
	predicate.Funcs
}

ArtifactUpdatePredicate triggers an update event when a HelmRepository artifact revision changes. i.e.: Repo information was updated.

func (ArtifactUpdatePredicate) Update

type DeletePredicate

type DeletePredicate struct {
	predicate.Funcs
}

DeletePredicate triggers an update event when a HelmRepository generation changes. i.e.: Delete events.

func (DeletePredicate) Update

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

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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