nodes

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CronJobNameBase        = "-node-"
	InventoryConfigMapBase = "-node-inventory-"

	// Execute hourly
	CronTab = "0 * * * *"
)

Variables

This section is empty.

Functions

func ConfigMap

func ConfigMap(node corev1.Node, integrationMRN, clusterUID string, m v1alpha2.MondooAuditConfig) (*corev1.ConfigMap, error)

func ConfigMapName

func ConfigMapName(prefix, nodeName string) string

func CronJob

func CronJob(image string, node corev1.Node, m v1alpha2.MondooAuditConfig) *batchv1.CronJob

func CronJobLabels

func CronJobLabels(m v1alpha2.MondooAuditConfig) map[string]string

func CronJobName

func CronJobName(prefix, suffix string) string

func Inventory

func Inventory(node corev1.Node, integrationMRN, clusterUID string, m v1alpha2.MondooAuditConfig) (string, error)

func NodeNameOrHash added in v0.2.13

func NodeNameOrHash(allowedLen int, nodeName string) string

Types

type DeploymentHandler

type DeploymentHandler struct {
	KubeClient             client.Client
	Mondoo                 *v1alpha2.MondooAuditConfig
	ContainerImageResolver mondoo.ContainerImageResolver
	MondooOperatorConfig   *v1alpha2.MondooOperatorConfig
}

func (*DeploymentHandler) Reconcile

func (n *DeploymentHandler) Reconcile(ctx context.Context) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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