controllers

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// LastSyncAt annotation to record a ctr's last sync at timestamp. This was intend to avoid sync chartrepo too frequency
	LastSyncAt = "cpaas.io/last-sync-at"
)

Functions

This section is empty.

Types

type ChartRepoReconciler

type ChartRepoReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme

	// we only want to watch one namespace ,this is the easy way...
	Namespace string

	// store latest commit for every vcs repo to compare. Use sycn map to avoid concurrent op(just in case)
	CommitMap sync.Map
}

ChartRepoReconciler reconciles a ChartRepo object

func (*ChartRepoReconciler) GetIndex added in v0.9.5

GetIndex fetches the index from a repository.

func (*ChartRepoReconciler) GetSecretData added in v1.0.0

func (r *ChartRepoReconciler) GetSecretData(cr *v1beta1.ChartRepo, ctx context.Context) (map[string][]byte, error)

GetSecretData get secret auth data for chartrepo/git/svn...

func (*ChartRepoReconciler) Reconcile

func (r *ChartRepoReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*ChartRepoReconciler) SetupWithManager

func (r *ChartRepoReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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