k8s

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCronJob

func EnsureCronJob(
	ctx context.Context,
	cl client.Client,
	owner metav1.Object,
	job *batchv1.CronJob,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsureDeployment

func EnsureDeployment(
	ctx context.Context,
	cl client.Client,
	owner metav1.Object,
	deployment *appsv1.Deployment,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsureHPA

func EnsureHPA(
	ctx context.Context,
	cl client.Client,
	owner metav1.Object,
	svc *autoscalingv2.HorizontalPodAutoscaler,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsureHTTPRoute

func EnsureHTTPRoute(
	ctx context.Context,
	cl client.Client,
	owner metav1.Object,
	httpRoute *gatewayv1.HTTPRoute,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsureIngress

func EnsureIngress(
	ctx context.Context,
	cl client.Client,
	owner metav1.Object,
	ingress *networkingv1.Ingress,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsureJob

func EnsureJob(
	ctx context.Context,
	cl client.Client,
	owner metav1.Object,
	job *batchv1.Job,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsureObjectWithHash

func EnsureObjectWithHash(
	ctx context.Context,
	cl client.Client,
	owner metav1.Object,
	obj client.Object,
	s *runtime.Scheme,
) error

func EnsurePDB

func EnsurePDB(
	ctx context.Context,
	cl client.Client,
	owner metav1.Object,
	pdb *policy.PodDisruptionBudget,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsurePod

func EnsurePod(
	ctx context.Context,
	cl client.Client,
	owner metav1.Object,
	pod *corev1.Pod,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsureService

func EnsureService(
	ctx context.Context,
	cl client.Client,
	owner metav1.Object,
	svc *corev1.Service,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func GetOperatorNamespace

func GetOperatorNamespace() (string, error)

func GetSecret

func GetSecret(
	ctx context.Context,
	cl client.Client,
	nn types.NamespacedName,
) (*corev1.Secret, error)

func GetStore

func GetStore(
	ctx context.Context,
	cl client.Client,
	nn types.NamespacedName,
) (*v1.Store, error)

func GetStoreDebugInstance

func GetStoreDebugInstance(
	ctx context.Context,
	cl client.Client,
	nn types.NamespacedName,
) (*v1.StoreDebugInstance, error)

func GetStoreExec

func GetStoreExec(
	ctx context.Context,
	cl client.Client,
	nn types.NamespacedName,
) (*v1.StoreExec, error)

func GetStoreSnapshotCreate

func GetStoreSnapshotCreate(
	ctx context.Context,
	cl client.Client,
	nn types.NamespacedName,
) (*v1.StoreSnapshotCreate, error)

func GetStoreSnapshotRestore

func GetStoreSnapshotRestore(
	ctx context.Context,
	cl client.Client,
	nn types.NamespacedName,
) (*v1.StoreSnapshotRestore, error)

func GetWatchNamespace

func GetWatchNamespace() (string, error)

func HasObjectChanged

func HasObjectChanged(
	ctx context.Context,
	cl client.Client,
	obj client.Object,
) (bool, error)

func ObjectDiff

func ObjectDiff(oldObj, newObj runtime.Object) (string, error)

func ObjectExists

func ObjectExists(
	ctx context.Context,
	cl client.Reader,
	nn types.NamespacedName,
	o client.Object,
) (bool, error)

func ObjectHash

func ObjectHash(obj runtime.Object) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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