reconciler

package
v0.0.0-...-8f52349 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControllerLogger

func NewControllerLogger(ctx context.Context, resource string) *zap.SugaredLogger

Types

type Base

type Base struct {
	// KubeClientSet allows us to talk to the k8s for core APIs
	KubeClientSet kubernetes.Interface

	// SharedClientSet allows us to configure shared objects
	SharedClientSet sharedclientset.Interface

	// KfClientSet allows us to configure Kf objects
	KfClientSet kfclientset.Interface

	// ServingClientSet allows us to configure Knative Serving objects
	ServingClientSet knativeclientset.Interface

	// ConfigMapWatcher allows us to watch for ConfigMap changes.
	ConfigMapWatcher configmap.Watcher

	// NamespaceLister allows us to list Namespaces. We use this to check for
	// terminating namespaces.
	NamespaceLister v1listers.NamespaceLister
}

Base implements the core controller logic, given a Reconciler.

func NewBase

func NewBase(ctx context.Context, cmw configmap.Watcher) *Base

NewBase instantiates a new instance of Base implementing the common & boilerplate code between our reconcilers.

func (*Base) IsNamespaceTerminating

func (base *Base) IsNamespaceTerminating(namespace string) bool

IsNamespaceTerminating returns true if the namespace is marked as terminating and false if the state is unknown or not terminating.

Directories

Path Synopsis
app
resources
Package resources holds simple functions for synthesizing child resources from an App.
Package resources holds simple functions for synthesizing child resources from an App.
Package route is a generated GoMock package.
Package route is a generated GoMock package.
resources
Package resources holds simple functions for synthesizing child resources from a Route.
Package resources holds simple functions for synthesizing child resources from a Route.
resources
Package resources holds simple functions for synthesizing child resources from a Source.
Package resources holds simple functions for synthesizing child resources from a Source.
resources
Package resources holds simple functions for synthesizing child resources from a Space.
Package resources holds simple functions for synthesizing child resources from a Space.

Jump to

Keyboard shortcuts

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