Documentation ¶
Index ¶
- Variables
- type ChartRepoReconciler
- func (r *ChartRepoReconciler) GetIndex(cr *v1beta1.ChartRepo, ctx context.Context) (*repo.IndexFile, error)
- func (r *ChartRepoReconciler) GetSecretData(cr *v1beta1.ChartRepo, ctx context.Context) (map[string][]byte, error)
- func (r *ChartRepoReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ChartRepoReconciler) SetupWithManager(mgr ctrl.Manager) error
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
func (r *ChartRepoReconciler) GetIndex(cr *v1beta1.ChartRepo, ctx context.Context) (*repo.IndexFile, error)
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) SetupWithManager ¶
func (r *ChartRepoReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.