Skip to content

Commit

Permalink
revert tolerations change (#138)
Browse files Browse the repository at this point in the history
Signed-off-by: Sherin Varughese <shvarugh@redhat.com>
  • Loading branch information
SherinV authored Sep 12, 2023
1 parent 344dc18 commit e9b0cfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 1 addition & 8 deletions addon/manifests/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@ userargs:

logLevel: null

tolerations:
- key: "dedicated"
operator: "Equal"
value: "infra"
effect: "NoSchedule"
- key: node-role.kubernetes.io/infra
operator: Exists
effect: NoSchedule
tolerations: []

global:
imagePullPolicy: IfNotPresent
Expand Down
5 changes: 4 additions & 1 deletion controllers/create_addondeploymentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ func (r *SearchReconciler) newAddOnDeploymentConfig(instance *searchv1alpha1.Sea
Namespace: instance.GetNamespace(),
},
Spec: addonv1alpha1.AddOnDeploymentConfigSpec{
NodePlacement: &addonv1alpha1.NodePlacement{},
NodePlacement: &addonv1alpha1.NodePlacement{
NodeSelector: instance.Spec.NodeSelector,
Tolerations: instance.Spec.Tolerations,
},
},
}

Expand Down

0 comments on commit e9b0cfa

Please sign in to comment.