kubernetes

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedisNodeNameStatefulsetLabel = "cache.container-solutions.com/cluster-name"
	RedisNodeComponentLabel       = "cache.container-solutions.com/cluster-component"
)

Variables

This section is empty.

Functions

func CreateConfigMap

func CreateConfigMap(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.ConfigMap, error)

func CreateStatefulset

func CreateStatefulset(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.StatefulSet, error)

func FetchExistingConfigMap

func FetchExistingConfigMap(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.ConfigMap, error)

func FetchExistingStatefulset

func FetchExistingStatefulset(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.StatefulSet, error)

func FetchRedisPods

func FetchRedisPods(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.PodList, error)

func GetPodLabels

func GetPodLabels(cluster *v1alpha1.RedisCluster) labels.Set

func GetStatefulSetLabels

func GetStatefulSetLabels(cluster *v1alpha1.RedisCluster) labels.Set

Types

This section is empty.

Jump to

Keyboard shortcuts

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