controller

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNoKind

func IsNoKind(err error) bool

IsNoKind asserts noKindError.

func NewResourceSet

func NewResourceSet(config ResourceSetConfig) ([]resource.Interface, error)

Types

type Cert

type Cert struct {
	*controller.Controller
}

func NewCert

func NewCert(config CertConfig) (*Cert, error)

type CertConfig

type CertConfig struct {
	K8sClient   k8sclient.Interface
	Logger      micrologger.Logger
	VaultClient *vaultapi.Client

	CATTL               string
	CRDLabelSelector    string
	CommonNameFormat    string
	ExpirationThreshold time.Duration
	Namespace           string
	ProjectName         string
}

type ResourceSetConfig

type ResourceSetConfig struct {
	K8sClient   kubernetes.Interface
	CtrlClient  client.Client
	Logger      micrologger.Logger
	VaultClient *vaultapi.Client
	VaultCrt    vaultcrt.Interface
	VaultPKI    vaultpki.Interface
	VaultRole   vaultrole.Interface

	ExpirationThreshold time.Duration
	Namespace           string
	ProjectName         string
}

Directories

Path Synopsis
resources

Jump to

Keyboard shortcuts

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