Skip to content

Commit

Permalink
Fix FalconNodeSensor defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
gpontejos committed Dec 19, 2024
1 parent 3b7cecc commit 93a2118
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/falcon/v1alpha1/falconnodesensor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ type FalconNodeSensorSpec struct {
InstallNamespace string `json:"installNamespace,omitempty"`

// Various configuration for DaemonSet Deployment
// +kubebuilder:default:={imagePullPolicy: "Always"}
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="DaemonSet Configuration",order=3
Node FalconNodeSensorConfig `json:"node,omitempty"`

// +kubebuilder:default:={apd: false, trace: "none"}
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Falcon Sensor Configuration",order=2
Falcon FalconSensor `json:"falcon,omitempty"`

Expand Down Expand Up @@ -66,6 +68,7 @@ type FalconNodeSensorConfig struct {
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`

// Type of DaemonSet update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate.
// +kubebuilder:default={type: "RollingUpdate"}
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="DaemonSet Update Strategy",order=6
DSUpdateStrategy FalconNodeUpdateStrategy `json:"updateStrategy,omitempty"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ spec:
description: FalconNodeSensorSpec defines the desired state of FalconNodeSensor
properties:
falcon:
default:
apd: false
trace: none
description: CrowdStrike Falcon Sensor configuration settings.
properties:
apd:
Expand Down Expand Up @@ -136,6 +139,8 @@ spec:
are deployed.
type: string
node:
default:
imagePullPolicy: Always
description: Various configuration for DaemonSet Deployment
properties:
advanced:
Expand Down Expand Up @@ -542,6 +547,8 @@ spec:
type: object
type: array
updateStrategy:
default:
type: RollingUpdate
description: Type of DaemonSet update. Can be "RollingUpdate"
or "OnDelete". Default is RollingUpdate.
properties:
Expand Down
7 changes: 7 additions & 0 deletions deploy/falcon-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3133,6 +3133,9 @@ spec:
description: FalconNodeSensorSpec defines the desired state of FalconNodeSensor
properties:
falcon:
default:
apd: false
trace: none
description: CrowdStrike Falcon Sensor configuration settings.
properties:
apd:
Expand Down Expand Up @@ -3225,6 +3228,8 @@ spec:
are deployed.
type: string
node:
default:
imagePullPolicy: Always
description: Various configuration for DaemonSet Deployment
properties:
advanced:
Expand Down Expand Up @@ -3631,6 +3636,8 @@ spec:
type: object
type: array
updateStrategy:
default:
type: RollingUpdate
description: Type of DaemonSet update. Can be "RollingUpdate"
or "OnDelete". Default is RollingUpdate.
properties:
Expand Down

0 comments on commit 93a2118

Please sign in to comment.