kafkasecretinjection

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

README

KafkaSecret Reconciler

The files in this directory were NOT generated via knative.dev/pkg/hack/generate-knative.sh as would normally be expected. This is because we're creating a Controller / Reconciler for the K8S CoreV1 Secret instead of a CRD. We do not want to generate Controllers / Reconcilers for the entire CoreV1 set of resources. Therefore, we've manually copied the previously generated code from the eventing-contrib/kafka' project and modified it for CoreV1 Secrets. This means that whenever the generation of such code is updated we should also perform a manual diff and uplift relevant changes here.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImpl

func NewImpl(ctx context.Context, r Interface) *controller.Impl

NewImpl returns a controller.Impl that handles queuing and feeding work from the queue through an implementation of controller.Reconciler, delegating to the provided Interface and optional Finalizer methods.

Types

type Finalizer

type Finalizer interface {
	// FinalizeKind implements custom logic to finalize corev1.Secret. Any changes
	// to the objects .Status or .Finalizers will be ignored. Returning a nil or
	// Normal type reconciler.Event will allow the finalizer to be deleted on
	// the resource. The resource passed to FinalizeKind will always have a set
	// deletion timestamp.
	FinalizeKind(ctx context.Context, o *corev1.Secret) reconciler.Event
}

Finalizer defines the strongly typed interfaces to be implemented by a controller finalizing corev1.Secret.

type Interface

type Interface interface {
	// ReconcileKind implements custom logic to reconcile corev1.Secret. Any changes
	// to the objects .Status or .Finalizers will be propagated to the stored
	// object. It is recommended that implementors do not call any update calls
	// for the Kind inside of ReconcileKind, it is the responsibility of the calling
	// controller to propagate those properties. The resource passed to ReconcileKind
	// will always have an empty deletion timestamp.
	ReconcileKind(ctx context.Context, o *corev1.Secret) reconciler.Event
}

Interface defines the strongly typed interfaces to be implemented by a controller reconciling corev1.Secret.

Jump to

Keyboard shortcuts

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