Documentation ¶
Index ¶
- Constants
- type MondooInstaller
- func (i *MondooInstaller) CleanupAuditConfigs() error
- func (i *MondooInstaller) CreateClientSecret(ns string) error
- func (i *MondooInstaller) GatherAllMondooLogs(testName string, namespaces ...string)
- func (i *MondooInstaller) GenerateServiceCerts(auditConfig *mondoov2.MondooAuditConfig, secretName string, ...) (*bytes.Buffer, error)
- func (i *MondooInstaller) InstallOperator() error
- func (i *MondooInstaller) UninstallOperator() error
- type Settings
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
Click to show internal directories.
Click to hide internal directories.