k8s

package
v0.0.0-...-c7dc075 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDeployment

func EnsureDeployment(
	ctx context.Context,
	cl client.Client,
	store *v1.Store,
	deployment *appsv1.Deployment,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsureHPA

func EnsureHPA(
	ctx context.Context,
	cl client.Client,
	store *v1.Store,
	svc *autoscalingv2.HorizontalPodAutoscaler,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsureIngress

func EnsureIngress(
	ctx context.Context,
	cl client.Client,
	store *v1.Store,
	ingress *networkingv1.Ingress,
	s *runtime.Scheme,
	saveOldMeta bool,
) error

func EnsureJob

func EnsureJob(
	ctx context.Context,
	cl client.Client,
	store *v1.Store,
	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 EnsureService

func EnsureService(
	ctx context.Context,
	cl client.Client,
	store *v1.Store,
	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 GetWatchNamespace

func GetWatchNamespace() (string, error)

func HasObjectChanged

func HasObjectChanged(
	ctx context.Context,
	cl client.Client,
	obj client.Object,
) (bool, 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