k8s

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package k8s provides helpers for working with Kubernetes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(obj Finalizer, finalizer string) []string

AddFinalizer is a helper function to add a finalizer to a resource

func HasFinalizer

func HasFinalizer(obj Finalizer, finalizer string) bool

HasFinalizer is a helper function to check if a finalizer exists on a resource

func RemoveFinalizer

func RemoveFinalizer(obj Finalizer, finalizer string) []string

RemoveFinalizer is a helper function to remove a finalizer from a resource

Types

type Finalizer

type Finalizer interface {
	GetFinalizers() []string
}

Finalizer is an interface that can be used to add, remove and check for

Jump to

Keyboard shortcuts

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