installer

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperatorManifest           = "mondoo-operator-manifests.yaml"
	AuditConfigManifest        = "config/samples/k8s_v1alpha2_mondooauditconfig_minimal.yaml"
	MondooCredsFile            = "creds.json"
	MondooClientsLabel         = "mondoo_cr=mondoo-client"
	MondooClientsNodesLabel    = "audit=node"
	MondooClientsK8sLabel      = "audit=k8s"
	ExternalInstallationEnvVar = "EXTERNAL_INSTALLATION"
)
View Source
const MondooNamespace = "mondoo-operator"

Variables

This section is empty.

Functions

This section is empty.

Types

type MondooInstaller

type MondooInstaller struct {
	T         func() *testing.T
	Settings  Settings
	K8sHelper *utils.K8sHelper
	// contains filtered or unexported fields
}

func NewMondooInstaller

func NewMondooInstaller(settings Settings, t func() *testing.T) *MondooInstaller

func (*MondooInstaller) CleanupAuditConfigs

func (i *MondooInstaller) CleanupAuditConfigs() error

func (*MondooInstaller) CreateClientSecret

func (i *MondooInstaller) CreateClientSecret(ns string) error

func (*MondooInstaller) GatherAllMondooLogs

func (i *MondooInstaller) GatherAllMondooLogs(testName string, namespaces ...string)

func (*MondooInstaller) GenerateServiceCerts

func (i *MondooInstaller) GenerateServiceCerts(auditConfig *mondoov2.MondooAuditConfig, secretName string, serviceDNSNames []string) (*bytes.Buffer, error)

GenerateServiceCerts will generate a CA along with signed certificates for the provided dnsNames, and save it into secretName. It will return the CA certificate and any error encountered.

func (*MondooInstaller) InstallOperator

func (i *MondooInstaller) InstallOperator() error

func (*MondooInstaller) UninstallOperator

func (i *MondooInstaller) UninstallOperator() error

type Settings

type Settings struct {
	Namespace string
	// contains filtered or unexported fields
}

func NewDefaultSettings

func NewDefaultSettings() Settings

func NewReleaseSettings added in v0.6.0

func NewReleaseSettings() Settings

Jump to

Keyboard shortcuts

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