reaper

package
v1.17.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupDeployments added in v1.7.0

func CleanupDeployments(ctx context.Context, logger *zap.Logger, client kubernetes.Interface, instanceID string, listOps metav1.ListOptions) error

CleanupDeployments deletes deployment(s) for a given instanceID

func CleanupHpa added in v1.7.0

func CleanupHpa(ctx context.Context, logger *zap.Logger, client kubernetes.Interface, instanceID string, listOps metav1.ListOptions) error

CleanupHpa deletes horizontal pod autoscaler(s) for a given instanceID

func CleanupKubeObject

func CleanupKubeObject(ctx context.Context, logger *zap.Logger, kubeClient kubernetes.Interface, kubeobj *apiv1.ObjectReference)

CleanupKubeObject deletes given kubernetes object

func CleanupPods added in v1.7.0

func CleanupPods(ctx context.Context, logger *zap.Logger, client kubernetes.Interface, instanceID string, listOps metav1.ListOptions) error

CleanupPods deletes pod(s) for a given instanceID

func CleanupRoleBindings

func CleanupRoleBindings(ctx context.Context, logger *zap.Logger, client kubernetes.Interface, fissionClient versioned.Interface, functionNs, envBuilderNs string, cleanupRoleBindingInterval time.Duration)

CleanupRoleBindings periodically lists rolebindings across all namespaces and removes Service Accounts from them or deletes the rolebindings completely if there are no Service Accounts in a rolebinding object.

func CleanupServices added in v1.7.0

func CleanupServices(ctx context.Context, logger *zap.Logger, client kubernetes.Interface, instanceID string, listOps metav1.ListOptions) error

CleanupServices deletes service(s) for a given instanceID

Types

This section is empty.

Jump to

Keyboard shortcuts

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