nsfinalizer

package
v0.0.0-...-bb0df7c Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFinalizerController

func NewFinalizerController(
	namespaceName string,
	kubeInformersForTargetNamespace kubeinformers.SharedInformerFactory,
	namespaceGetter v1.NamespacesGetter,
	eventRecorder events.Recorder,
) factory.Controller

NewFinalizerController is here because When running an aggregated API on the platform, you delete the namespace hosting the aggregated API. Doing that the namespace controller starts by doing complete discovery and then deleting all objects, but pods have a grace period, so it deletes the rest and requeues. The ns controller starts again and does a complete discovery and.... fails. The failure means it refuses to complete the cleanup. Now, we don't actually want to delete the resoruces from our aggregated API, only the server plus config if we remove the apiservices to unstick it, GC will start cleaning everything. For now, we can unbork 4.0, but clearing the finalizer after the pod and daemonset we created are gone.

Types

This section is empty.

Jump to

Keyboard shortcuts

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