operator

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package operator exports top-level operator logic for users like CLI package to consume.

Index

Constants

View Source
const (
	// PodMutateEndpoint is a URI where admission webhook responds for Pod mutation requests.
	PodMutateEndpoint = "/mutate-v1-pod"

	// DefaultHealthProbeBindAddress is a default bind address for health probes.
	DefaultHealthProbeBindAddress = ":9440"
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, options Options) error

Run starts operator main loop. At the moment it only runs TLS webhook server and healthcheck web server.

Types

type Options

type Options struct {
	CertDir                string         `json:"certDir"`
	HealthProbeBindAddress string         `json:"healthProbeBindAddress"`
	MetricsBindAddress     string         `json:"metricsBindAddress"`
	Port                   int            `json:"port"`
	RestConfig             *rest.Config   `json:"-"`
	Logger                 *logrus.Logger `json:"-"`
	IgnoreMutationErrors   bool           `json:"ignoreMutationErrors"`

	InfraAgentInjection agent.InjectorConfig `json:"infraAgentInjection"`
}

Options holds the configuration for an operator.

Jump to

Keyboard shortcuts

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