registry

package
v0.0.0-...-9fe8468 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Registry Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type CertReconciler

type CertReconciler interface {
	ReconcileCertPresent(registry *kubicv1beta1.Registry,
		curNodes map[string]*corev1.Node,
		specSecret *corev1.Secret) (reconcile.Result, error)
	ReconcileCertMissing(instance *kubicv1beta1.Registry, nodes map[string]*corev1.Node) error
}

type ReconcileRegistry

type ReconcileRegistry struct {
	client.Client
	record.EventRecorder
	// contains filtered or unexported fields
}

ReconcileRegistry reconciles a Registry object

func (*ReconcileRegistry) Reconcile

func (r *ReconcileRegistry) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Registry object and makes changes based on the state read and what is in the Registry.Spec

Automatically generate RBAC rules to allow the Controller to read and write Jobs +kubebuilder:rbac:groups=core,resources=nodes,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=batch,resources=jobs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=kubic.opensuse.org,resources=registries,verbs=get;list;watch;create;update;patch;delete

func (*ReconcileRegistry) ReconcileCertMissing

func (r *ReconcileRegistry) ReconcileCertMissing(instance *kubicv1beta1.Registry, nodes map[string]*corev1.Node) error

reconcileCertMissing removes all the things created by the controller for a Registry Ensure that delete implementation is idempotent and safe to invoke multiple types for same object.

func (*ReconcileRegistry) ReconcileCertPresent

func (r *ReconcileRegistry) ReconcileCertPresent(registry *kubicv1beta1.Registry,
	curNodes map[string]*corev1.Node,
	specSecret *corev1.Secret) (reconcile.Result, error)

reconcileCertPresent reconciles the Certificate for this Registry

Jump to

Keyboard shortcuts

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