controllers

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientCert = "certFile"
	ClientKey  = "keyFile"
	CACert     = "caFile"
)

These are intended to match the keys used in e.g., https://github.com/fluxcd/flux2/blob/main/cmd/flux/create_secret_helm.go, for consistency (and perhaps this will have its own flux create secret subcommand at some point).

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseReader

type DatabaseReader interface {
	Tags(repo string) ([]string, error)
}

DatabaseReader implementations get the stored set of tags for an image repository.

If no tags are availble for the repo, then implementations should return an empty set of tags.

type DatabaseWriter

type DatabaseWriter interface {
	SetTags(repo string, tags []string) error
}

DatabaseWriter implementations record the tags for an image repository.

type ImagePolicyReconciler

type ImagePolicyReconciler struct {
	client.Client
	Scheme                *runtime.Scheme
	EventRecorder         kuberecorder.EventRecorder
	ExternalEventRecorder *events.Recorder
	MetricsRecorder       *metrics.Recorder
	Database              DatabaseReader
}

ImagePolicyReconciler reconciles a ImagePolicy object

func (*ImagePolicyReconciler) Reconcile

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

func (*ImagePolicyReconciler) SetupWithManager

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

type ImageRepositoryReconciler

type ImageRepositoryReconciler struct {
	client.Client
	Scheme                *runtime.Scheme
	EventRecorder         kuberecorder.EventRecorder
	ExternalEventRecorder *events.Recorder
	MetricsRecorder       *metrics.Recorder
	Database              interface {
		DatabaseWriter
		DatabaseReader
	}
}

ImageRepositoryReconciler reconciles a ImageRepository object

func (*ImageRepositoryReconciler) Reconcile

func (*ImageRepositoryReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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