nodes

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

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

	// TODO: remove in a follow-up version
	OldCronJobNameBase          = "-node-scanning-"
	OldInventoryConfigMapSuffix = "-node-scanning-inventory"

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

	InventoryNodeNamePlaceholder = "{{node-name}}"
)

Variables

This section is empty.

Functions

func ConfigMapName

func ConfigMapName(prefix, nodeName string) string

func CronJob

func CronJob(image string, node v1.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, m v1alpha2.MondooAuditConfig) string

func NodeNameOrHash added in v0.2.13

func NodeNameOrHash(allowedLen int, nodeName string) string

func OldConfigMapName added in v0.2.13

func OldConfigMapName(prefix string) string

func OldCronJobName added in v0.2.11

func OldCronJobName(prefix, suffix 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