option

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TetragonOpEnvPrefix = "TETRAGON_OPERATOR"

	// SkipCRDCreation specifies whether the CustomResourceDefinition will be
	// disabled for the operator
	SkipCRDCreation = "skip-crd-creation"

	// CMDRef is the path to cmdref output directory
	CMDRef = "cmdref"

	// KubeCfgPath is the path to a kubeconfig file
	KubeCfgPath = "kube-config"

	// ConfigDir specifies the directory in which tetragon-operator-config configmap is mounted.
	ConfigDir = "config-dir"

	// SkipPodInfoCRD specifies whether the tetragonPod CustomResourceDefinition will be
	// disabled
	SkipPodInfoCRD = "skip-pod-info-crd"

	// SkipTracingPolicyCRD specifies whether the tracing-policies CustomResourceDefinition will be
	// disabled
	SkipTracingPolicyCRD = "skip-tracing-policy-crd"

	// ForceUpdateCRDs specifies whether operator should ignore current CRD version
	// and forcefully update it.
	ForceUpdateCRDs = "force-update-crds"
)

Variables

View Source
var Config = &OperatorConfig{}

Config represents the operator configuration.

Functions

func ConfigPopulate added in v1.0.0

func ConfigPopulate()

ConfigPopulate sets all options with the values from viper.

Types

type OperatorConfig

type OperatorConfig struct {
	// SkipCRDCreation disables creation of the CustomResourceDefinition
	// for the operator
	SkipCRDCreation bool

	// KubeCfgPath allows users to specify a kubeconfig file to be used by the operator
	KubeCfgPath string

	// ConfigDir specifies the directory in which tetragon-operator-config configmap is mounted.
	ConfigDir string

	// SkipPodInfoCRD disables creation of the TetragonPod CustomResourceDefinition only.
	SkipPodInfoCRD bool

	// SkipTracingPolicyCRD disables creation of the TracingPolicy and
	// TracingPolicyNamespaced CustomResourceDefinition only.
	SkipTracingPolicyCRD bool

	// ForceUpdateCRDs forces the CRD to be updated even if it's version
	// is lower than the one in the cluster.
	ForceUpdateCRDs bool
}

OperatorConfig is the configuration used by the operator.

Jump to

Keyboard shortcuts

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