k8sutils

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToConfigMap added in v0.2.0

func AddToConfigMap(
	cli client.Client,
	namespace string,
	configMapName string,
	configMapData map[string]string,
	args Options,
) (*corev1.ConfigMap, error)

func CreateConfigMap added in v0.2.0

func CreateConfigMap(
	cli client.Client,
	namespace string,
	configMapName string,
	labels map[string]string,
	args Options,
) (*corev1.ConfigMap, error)

func GetStatefulSet

func GetStatefulSet(
	cli client.Client,
	labelSelector *metav1.LabelSelector,
	namespace string,
	args Options,
) (*appsv1.StatefulSet, error)

func MountConfigMap

func MountConfigMap(
	cli client.Client,
	configMapNameSpace string,
	configMapName string,
	mountPath string,
	lokiStatefulSet *appsv1.StatefulSet,
	args Options,
) error

func RemoveFromConfigMap added in v0.2.0

func RemoveFromConfigMap(
	cli client.Client,
	namespace string,
	configMapName string,
	configMapDataToRemove map[string]string,
	args Options,
) (*corev1.ConfigMap, error)

Types

type Options

type Options struct {
	Logger logger.Logger
	Ctx    context.Context
}

Jump to

Keyboard shortcuts

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