desc

package
v2.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterPatches

func ClusterPatches(o *Options, ps ...data.ClusterPatch) []data.ClusterPatch

func GroupPatches

func GroupPatches[
	S scope.Group[F, T],
	F client.Object,
	T runtime.Group,
](o *Options, ps ...data.GroupPatch[F]) []data.GroupPatch[F]

Types

type Option

type Option interface {
	With(opts *Options)
}

func EnableTiKVWorkers

func EnableTiKVWorkers() Option

func FQDN

func FQDN() Option

func Features

func Features(fs ...metav1alpha1.Feature) Option

func Focus

func Focus() Option

Focus on this case, like ginkgo.Focus

func NextGen

func NextGen() Option

func TLS

func TLS() Option

type Options

type Options struct {
	Features []metav1alpha1.Feature

	TLS bool

	NextGen           bool
	EnableTiKVWorkers bool

	FQDN bool

	Namespace string
	// all CA suffix will be added after the ns
	ClusterCASuffix          string
	ClusterCertKeyPairSuffix string
	MySQLClientCASuffix      string
	MySQLCertKeyPairSuffix   string

	Focus bool
}

func DefaultOptions

func DefaultOptions() *Options

func (*Options) ClusterCA

func (o *Options) ClusterCA() string

func (*Options) Labels

func (o *Options) Labels() ginkgo.Labels

func (*Options) String

func (o *Options) String() string

func (*Options) TiDBMySQLClientTLS

func (o *Options) TiDBMySQLClientTLS() (string, string)

func (*Options) TiDBMySQLTLS

func (o *Options) TiDBMySQLTLS() (string, string)

type WithOption

type WithOption func(opts *Options)

func (WithOption) With

func (opt WithOption) With(opts *Options)

Jump to

Keyboard shortcuts

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