common

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeleteTagAnnotation                  = "apps.3scale.net/delete"
	DeletePropagationPolicyTagAnnotation = "apps.3scale.net/delete-propagation-policy"
)
View Source
const (
	MonitoringKey = "middleware"
)

Constants

Variables

This section is empty.

Functions

func GetDeletePropagationPolicyAnnotation added in v0.6.0

func GetDeletePropagationPolicyAnnotation(obj KubernetesObject) *metav1.DeletionPropagation

func IsObjectTaggedToDelete added in v0.6.0

func IsObjectTaggedToDelete(obj KubernetesObject) bool

func NewAPIClientReader added in v0.6.0

func NewAPIClientReader(mgr manager.Manager) (client.Client, error)

We create an Client Reader that directly queries the API server without going to the Cache provided by the Manager's Client because there are some resources that do not implement Watch (like ImageStreamTag) and the Manager's Client always tries to use the Cache when reading

func ObjectInfo added in v0.6.0

func ObjectInfo(obj KubernetesObject) string

func ObjectKey added in v0.6.0

func ObjectKey(obj KubernetesObject) types.NamespacedName

func TagObjectToDelete added in v0.6.0

func TagObjectToDelete(obj KubernetesObject)

func TagToObjectDeleteWithPropagationPolicy added in v0.6.0

func TagToObjectDeleteWithPropagationPolicy(obj KubernetesObject, deletionPropagationPolicy metav1.DeletionPropagation)

Types

type KubernetesObject

type KubernetesObject interface {
	metav1.Object
	runtime.Object
}

Jump to

Keyboard shortcuts

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