util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEquels

func CheckEquels(from_env *appsv1.StatefulSetSpec, from_crd *appsv1.StatefulSetSpec, text string) (int32, bool, error)

func CreateAdditionalVolumes

func CreateAdditionalVolumes(
	ctx context.Context,
	k8sClient client.Client,
	namespace string,
	volumeConfigs []opsterv1.AdditionalVolume,
) (
	retVolumes []corev1.Volume,
	retVolumeMounts []corev1.VolumeMount,
	retData []byte,
	returnErr error,
)

func CreateClientForCluster

func CreateClientForCluster(
	ctx context.Context,
	k8sClient client.Client,
	cluster *opsterv1.OpenSearchCluster,
	transport http.RoundTripper,
) (*services.OsClusterClient, error)

func FetchOpensearchCluster

func FetchOpensearchCluster(
	ctx context.Context,
	k8sClient client.Client,
	ref types.NamespacedName,
) (*opsterv1.OpenSearchCluster, error)

func GetSha1Sum

func GetSha1Sum(data []byte) (string, error)

Generates a checksum of binary data using the SHA1 algorithm.

func OpensearchClusterURL

func OpensearchClusterURL(cluster *opsterv1.OpenSearchCluster) string

func ReadOrGenerateCaCert

func ReadOrGenerateCaCert(pki tls.PKI, k8sClient client.Client, ctx context.Context, instance *opsterv1.OpenSearchCluster) (tls.Cert, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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