k8s

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package k8s is a generated GoMock package.

Index

Constants

View Source
const (
	// Generic events
	ReconcilingEvent     = "Reconciling"
	ReconciledEvent      = "Reconciled"
	FailedReconcileEvent = "FailedReconcile"

	// 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"
)
View Source
const AnnotationPrefix = "application-networking.k8s.aws/"

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 NamespaceOrDefault added in v0.0.18

func NamespaceOrDefault(namespace *gwv1.Namespace) string

func NamespacedName

func NamespacedName(obj client.Object) types.NamespacedName

NamespacedName returns the namespaced name for k8s objects

func ObjExists added in v0.0.18

func ObjExists(ctx context.Context, c client.Client, key types.NamespacedName, obj client.Object) (bool, error)

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 MockFinalizerManager added in v0.0.18

type MockFinalizerManager struct {
	// contains filtered or unexported fields
}

MockFinalizerManager is a mock of FinalizerManager interface.

func NewMockFinalizerManager added in v0.0.18

func NewMockFinalizerManager(ctrl *gomock.Controller) *MockFinalizerManager

NewMockFinalizerManager creates a new mock instance.

func (*MockFinalizerManager) AddFinalizers added in v0.0.18

func (m *MockFinalizerManager) AddFinalizers(arg0 context.Context, arg1 client.Object, arg2 ...string) error

AddFinalizers mocks base method.

func (*MockFinalizerManager) EXPECT added in v0.0.18

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFinalizerManager) RemoveFinalizers added in v0.0.18

func (m *MockFinalizerManager) RemoveFinalizers(arg0 context.Context, arg1 client.Object, arg2 ...string) error

RemoveFinalizers mocks base method.

type MockFinalizerManagerMockRecorder added in v0.0.18

type MockFinalizerManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockFinalizerManagerMockRecorder is the mock recorder for MockFinalizerManager.

func (*MockFinalizerManagerMockRecorder) AddFinalizers added in v0.0.18

func (mr *MockFinalizerManagerMockRecorder) AddFinalizers(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

AddFinalizers indicates an expected call of AddFinalizers.

func (*MockFinalizerManagerMockRecorder) RemoveFinalizers added in v0.0.18

func (mr *MockFinalizerManagerMockRecorder) RemoveFinalizers(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

RemoveFinalizers indicates an expected call of RemoveFinalizers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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