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 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 ¶
NewBase instantiates a new instance of Base implementing the common & boilerplate code between our reconcilers.
func (*Base) IsNamespaceTerminating ¶
IsNamespaceTerminating returns true if the namespace is marked as terminating and false if the state is unknown or not terminating.
Directories
¶
| Path | Synopsis |
|---|---|
|
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. |
Click to show internal directories.
Click to hide internal directories.