Documentation ¶
Index ¶
- Constants
- func CreateConfigMap(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.ConfigMap, error)
- func CreateStatefulset(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.StatefulSet, error)
- func FetchExistingConfigMap(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.ConfigMap, error)
- func FetchExistingStatefulset(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.StatefulSet, error)
- func FetchRedisPods(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.PodList, error)
- func GetPodLabels(cluster *v1alpha1.RedisCluster) labels.Set
- func GetStatefulSetLabels(cluster *v1alpha1.RedisCluster) labels.Set
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 CreateStatefulset ¶
func CreateStatefulset(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.StatefulSet, error)
func FetchExistingConfigMap ¶
func FetchExistingStatefulset ¶
func FetchExistingStatefulset(ctx context.Context, kubeClient client.Client, cluster *v1alpha1.RedisCluster) (*v1.StatefulSet, error)
func FetchRedisPods ¶
func GetPodLabels ¶
func GetPodLabels(cluster *v1alpha1.RedisCluster) labels.Set
func GetStatefulSetLabels ¶
func GetStatefulSetLabels(cluster *v1alpha1.RedisCluster) labels.Set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.