operator

package
v1.1.113 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StepStatusSuccess indicates that a setup step was successful.
	StepStatusSuccess = "success"

	// StepStatusInProgress indicates that a setup step is in progress.
	StepStatusInProgress = "running"

	// StepStatusFailed indicates that a setup step has failed.
	StepStatusFailed = "failed"
)

Variables

This section is empty.

Functions

func SetupOperator

func SetupOperator(config *SetupConfig) error

Types

type AnnotationFilter

type AnnotationFilter interface {
	predicate.Predicate
	Matches(object client.Object) bool
	MatchesString(value string) bool
}

func NewFilter

func NewFilter() AnnotationFilter

func NewFilterWithValue

func NewFilterWithValue(value string) AnnotationFilter

type Builder

type Builder interface {
	WithVaultAPI(api vault.API) Builder
	WithRestConfig(config *rest.Config) Builder
	WithOptions(options controllerruntime.Options) Builder
	Register(component ...Component) Builder
	Complete() (manager.Manager, error)
}

func Create

func Create() Builder

type Component

type Component interface {
	Register(api vault.API, mgr manager.Manager) error
}

type SetupConfig

type SetupConfig struct {
	VaultNamespace       string
	VaultServiceName     string
	VaultPort            string
	VaultURL             string
	VaultCAs             []string
	VaultToken           string
	KubernetesHost       string
	KubernetesJWTIssuer  string
	KubernetesJWTCACert  string
	KubernetesJWTPemKeys []string
	PolicyName           string
	RoleName             string
	HeistNamespace       string
	HeistServiceAccount  string
	RESTConfig           *rest.Config
	Quiet                bool
	VaultScheme          string
}

type Step

type Step struct {
	Name   string
	Status StepStatus
}

type StepStatus

type StepStatus string

Jump to

Keyboard shortcuts

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