common

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FalconContainerInjection                = "sensor.falcon-system.crowdstrike.com/injection"
	FalconContainerInjectorTLSName          = "injector-tls"
	FalconHostInstallDir                    = "/opt"
	FalconInitHostInstallDir                = "/host_opt"
	FalconDataDir                           = "/opt/CrowdStrike"
	FalconInitDataDir                       = "/host_opt/CrowdStrike/"
	FalconStoreFile                         = "/opt/CrowdStrike/falconstore"
	FalconInitStoreFile                     = "/host_opt/CrowdStrike/falconstore"
	FalconDaemonsetInitBinary               = "/opt/CrowdStrike/falcon-daemonset-init -i"
	FalconDaemonsetConfigureClusterIdBinary = "/opt/CrowdStrike/configure-cluster-id"
	FalconDaemonsetCleanupBinary            = "/opt/CrowdStrike/falcon-daemonset-init -u"
	FalconDaemonsetBinary                   = "/opt/CrowdStrike/falcon-daemonset-init"
	FalconContainerProbePath                = "/live"
	FalconAdmissionClientStartupProbePath   = "/startz"
	FalconAdmissionClientLivenessProbePath  = "/livez"
	FalconAdmissionStartupProbePath         = "/startz-kac"
	FalconAdmissionLivenessProbePath        = "/livez-kac"
	FalconAdmissionServiceHTTPSName         = "webhook-port"
	FalconServiceHTTPSName                  = "https"
	FalconServiceHTTPSPort                  = 443
	FalconAdmissionValidatingWebhookName    = "validating.admission.falcon.crowdstrike.com"
	FalconAdmissionClusterNameConfigMapName = "falcon-kac-meta"
	FalconAdmissionComponentName            = "kac"
	FalconAdmissionServiceApp               = "falcon-kac"
	FalconImageAnalyzerComponentName        = "iar"
	FalconImageAnalyzerAgentService         = "iar-agent-service"
	FalconImageAnalyzerAgentServiceApp      = "falcon-image-analyzer"
	FalconImageAnalyzerAgentServicePort     = 443
	FalconImageAnalyzerAgentServicePortName = "service-port"

	AppLabelKey              = "app"
	KubernetesComponentKey   = "app.kubernetes.io/component"
	KubernetesNameKey        = "app.kubernetes.io/name"
	FalconInstanceNameKey    = "crowdstrike.com/name"
	FalconInstanceKey        = "crowdstrike.com/instance"
	FalconComponentKey       = "crowdstrike.com/component"
	FalconManagedByKey       = "crowdstrike.com/managed-by"
	FalconPartOfKey          = "crowdstrike.com/part-of"
	FalconProviderKey        = "crowdstrike.com/provider"
	FalconCreatedKey         = "crowdstrike.com/created-by"
	FalconAdmissionReviewKey = "falcon.crowdstrike.com/admission-review"

	FalconKernelSensor        = "kernel_sensor"
	FalconSidecarSensor       = "container_sensor"
	FalconAdmissionController = "admission_controller"
	FalconImageAnalyzer       = "falcon-imageanalyzer"
	FalconFinalizer           = "falcon.crowdstrike.com/finalizer"
	FalconProviderValue       = "crowdstrike"
	FalconPartOfValue         = "Falcon"
	FalconCreatedValue        = "falcon-operator"
	FalconManagedByValue      = "controller-manager"
	FalconPriorityClassName   = "system-cluster-critical"

	SidecarServiceAccountName   = "falcon-operator-sidecar-sensor"
	FalconPullSecretName        = "crowdstrike-falcon-pull-secret"
	NodeServiceAccountName      = "falcon-operator-node-sensor"
	AdmissionServiceAccountName = "falcon-operator-admission-controller"
	NodeClusterRoleBindingName  = "falcon-operator-node-sensor-rolebinding"
	ImageServiceAccountName     = "falcon-operator-image-analyzer"

	// GKE Autopilot requires names to have an exact match for WorkloadAllowlists
	GKEAutoPilotConfigMapName           = "falcon-node-sensor-config"
	GKEAutoPilotAllowListLabelKey       = "cloud.google.com/matching-allowlist"
	GKEAutoPilotDeployDSAllowlistPrefix = "crowdstrike-falconsensor-deploy-allowlist"
	GKEAutoPilotCleanupAllowlistPrefix  = "crowdstrike-falconsensor-cleanup-allowlist"
)

Variables

View Source
var (
	NodeSelector              = map[string]string{"kubernetes.io/os": "linux"}
	FalconShellCommand        = []string{"/bin/bash"}
	OrigDSConfVersion         = "0"
	FalconOperatorNamespace   = "falcon-operator"
	FalconInjectorCommand     = []string{"injector"}
	DefaultDisabledNamespaces = []string{"kube-system", "kube-public"}
)

Functions

func AppendUniqueEnvVars added in v0.9.0

func AppendUniqueEnvVars(envVars ...[]corev1.EnvVar) []corev1.EnvVar

func CRLabels added in v0.8.1

func CRLabels(instanceName string, instanceKey string, component string) map[string]string

func CleanDecodedBase64 added in v0.5.0

func CleanDecodedBase64(s []byte) []byte

func CleanupSleep added in v0.5.4

func CleanupSleep() []string

func DecodeBase64Interface added in v0.7.0

func DecodeBase64Interface(i interface{}) string

func EncodeBase64Interface added in v0.7.0

func EncodeBase64Interface(i interface{}) (string, error)

func EncodedBase64String added in v0.4.1

func EncodedBase64String(data string) []byte

func FCAdmissionReviewVersions added in v0.4.1

func FCAdmissionReviewVersions() []string

func GetKubernetesVersion added in v0.4.1

func GetKubernetesVersion() *version.Info

func GetNamespacedObject added in v1.5.0

func GetNamespacedObject(ctx context.Context, client client.Client, apiReader client.Reader, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error

func ImageVersion added in v0.9.0

func ImageVersion(image string) *string

func InitCleanupArgs added in v0.5.4

func InitCleanupArgs() []string

func InitContainerArgs

func InitContainerArgs() []string

func MakeSensorEnvMap added in v0.7.0

func MakeSensorEnvMap(falconSensor falconv1alpha1.FalconSensor) map[string]string

func MapCopy added in v0.7.0

func MapCopy(src map[string]string, dst map[string]string) map[string]string

func UpdateEnvVars added in v0.9.0

func UpdateEnvVars(envVars []corev1.EnvVar, updateEnvVars []corev1.EnvVar) []corev1.EnvVar

Types

type ProxyInfo added in v0.9.0

type ProxyInfo struct {
	// contains filtered or unexported fields
}

func NewProxyInfo added in v0.9.0

func NewProxyInfo() *ProxyInfo

func (*ProxyInfo) Host added in v0.9.0

func (pi *ProxyInfo) Host() string

func (*ProxyInfo) Port added in v0.9.0

func (pi *ProxyInfo) Port() string

Jump to

Keyboard shortcuts

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