Skip to content

Commit

Permalink
feat: add infra node toleration by default
Browse files Browse the repository at this point in the history
- Fixes #459
  • Loading branch information
redhatrises committed Dec 22, 2023
1 parent b6d783f commit ef8c8f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/falcon/v1alpha1/falconnodesensor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type FalconNodeSensorSpec struct {
// +k8s:openapi-gen=true
type FalconNodeSensorConfig struct {
// Specifies tolerations for custom taints. Defaults to allowing scheduling on all nodes.
// +kubebuilder:default:={{key: "node-role.kubernetes.io/master", operator: "Exists", effect: "NoSchedule"}, {key: "node-role.kubernetes.io/control-plane", operator: "Exists", effect: "NoSchedule"}}
// +kubebuilder:default:={{key: "node-role.kubernetes.io/master", operator: "Exists", effect: "NoSchedule"}, {key: "node-role.kubernetes.io/control-plane", operator: "Exists", effect: "NoSchedule"}, {key: "node-role.kubernetes.io/infra", operator: "Exists", effect: "NoSchedule"}}
// +operator-sdk:csv:customresourcedefinitions:type=spec,order=4
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ spec:
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/infra
operator: Exists
description: Specifies tolerations for custom taints. Defaults
to allowing scheduling on all nodes.
items:
Expand Down
3 changes: 3 additions & 0 deletions deploy/falcon-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3021,6 +3021,9 @@ spec:
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/infra
operator: Exists
description: Specifies tolerations for custom taints. Defaults
to allowing scheduling on all nodes.
items:
Expand Down

0 comments on commit ef8c8f9

Please sign in to comment.