Skip to content

Commit

Permalink
Inherit top-level nodeselector in galera spec
Browse files Browse the repository at this point in the history
  • Loading branch information
olliewalsh committed Oct 25, 2024
1 parent b4ed2e6 commit 2ca2719
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/openstack/galera.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ func reconcileGalera(
return galeraReady, nil
}

if spec.NodeSelector == nil && instance.Spec.NodeSelector != nil {
spec.NodeSelector = instance.Spec.NodeSelector
}

Log.Info("Reconciling Galera", "Galera.Namespace", instance.Namespace, "Galera.Name", name)
op, err := controllerutil.CreateOrPatch(ctx, helper.GetClient(), galera, func() error {
spec.DeepCopyInto(&galera.Spec.GaleraSpecCore)
Expand Down

0 comments on commit 2ca2719

Please sign in to comment.