redisshard

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	generators.BaseOptionsV2
	Image       saasv1alpha1.ImageSpec
	MasterIndex int32
	Replicas    int32
	Command     string
}

Generator configures the generators for RedisShard

func NewGenerator

func NewGenerator(instance, namespace string, spec saasv1alpha1.RedisShardSpec) Generator

NewGenerator returns a new Options struct

func (*Generator) GetSelector

func (gen *Generator) GetSelector() map[string]string

Override the GetSelector function as it needs to be different in this case because there can be more than one redis-shard instance in the same namespace

func (*Generator) Resources

func (gen *Generator) Resources() []resource.TemplateInterface

Resources returns the list of templates

func (*Generator) ServiceName

func (gen *Generator) ServiceName() string

Returns the name of the StatefulSet headless Service

Jump to

Keyboard shortcuts

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