operator

package
v1.14.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator struct {
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, fopts ...Option) *Operator

func (*Operator) Address

func (o *Operator) Address() string

func (*Operator) Cleanup

func (o *Operator) Cleanup(t *testing.T)

func (*Operator) Dial

func (o *Operator) Dial(t *testing.T, ctx context.Context, sentry *sentry.Sentry, appID string) operatorv1pb.OperatorClient

func (*Operator) HealthzPort

func (o *Operator) HealthzPort() int

func (*Operator) MetricsPort

func (o *Operator) MetricsPort() int

func (*Operator) Port

func (o *Operator) Port() int

func (*Operator) Run

func (o *Operator) Run(t *testing.T, ctx context.Context)

func (*Operator) WaitUntilRunning

func (o *Operator) WaitUntilRunning(t *testing.T, ctx context.Context)

type Option

type Option func(*options)

Option is a function that configures the process.

func WithAPIPort

func WithAPIPort(port int) Option

func WithConfigPath

func WithConfigPath(path string) Option

func WithDisableLeaderElection

func WithDisableLeaderElection(disable bool) Option

func WithExecOptions

func WithExecOptions(execOptions ...exec.Option) Option

func WithHealthzPort

func WithHealthzPort(port int) Option

func WithKubeconfigPath

func WithKubeconfigPath(path string) Option

func WithLogLevel

func WithLogLevel(level string) Option

func WithMetricsPort

func WithMetricsPort(port int) Option

func WithNamespace

func WithNamespace(namespace string) Option

func WithTrustAnchorsFile

func WithTrustAnchorsFile(path string) Option

Jump to

Keyboard shortcuts

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