installer

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MPL-2.0 Imports: 15 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

func (Settings) GetSecret added in v1.9.3

func (s Settings) GetSecret(ns string) corev1.Secret

GetSecret returns the operator secret. If token is set, then mondoo-token secret is returned. Otherwise, mondoo-client secret is returned.

func (Settings) SetToken added in v1.9.3

func (s Settings) SetToken(token string) Settings

Jump to

Keyboard shortcuts

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