k8s

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Gateway events
	GatewayEventReasonFailedAddFinalizer = "FailedAddFinalizer"
	GatewayEventReasonFailedBuildModel   = "FailedBuildModel"
	GatewayEventReasonFailedDeployModel  = "FailedDeployModel"

	// Route events
	RouteEventReasonReconcile          = "Reconcile"
	RouteEventReasonDeploySucceed      = "DeploySucceed"
	RouteEventReasonFailedAddFinalizer = "FailedAddFinalizer"
	RouteEventReasonFailedBuildModel   = "FailedBuildModel"
	RouteEventReasonFailedDeployModel  = "FailedDeployModel"
	RouteEventReasonRetryReconcile     = "Retry-Reconcile"

	// Service events
	ServiceEventReasonFailedAddFinalizer = "FailedAddFinalizer"
	ServiceEventReasonFailedBuildModel   = "FailedBuildModel"
	ServiceEventReasonFailedDeployModel  = "FailedDeployModel"

	// ServiceExport events
	ServiceExportEventReasonFailedAddFinalizer = "FailedAddFinalizer"
	ServiceExportEventReasonFailedBuildModel   = "FailedBuildModel"
	ServiceExportEventReasonFailedDeployModel  = "FailedDeployModel"

	// ServiceImport events
	ServiceImportEventReasonFailedAddFinalizer = "FailedAddFinalizer"
	ServiceImportEventReasonFailedBuildModel   = "FailedBuildModel"
	ServiceImportEventReasonFailedDeployModel  = "FailedDeployModel"
)

Variables

This section is empty.

Functions

func HasFinalizer

func HasFinalizer(obj metav1.Object, finalizer string) bool

HasFinalizer tests whether k8s object has specified finalizer

func IsGVKSupported added in v0.0.16

func IsGVKSupported(mgr ctrl.Manager, groupVersion string, kind string) (bool, error)

func NamespacedName

func NamespacedName(obj NamespacedAndNamed) types.NamespacedName

NamespacedName returns the namespaced name for k8s objects

Types

type FinalizerManager

type FinalizerManager interface {
	AddFinalizers(ctx context.Context, object client.Object, finalizers ...string) error
	RemoveFinalizers(ctx context.Context, object client.Object, finalizers ...string) error
}

func NewDefaultFinalizerManager

func NewDefaultFinalizerManager(k8sClient client.Client) FinalizerManager

type NamespacedAndNamed added in v0.0.16

type NamespacedAndNamed interface {
	GetNamespace() string
	GetName() string
}

Jump to

Keyboard shortcuts

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