Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-30260: Support subnet labels separated by periods #3767

Merged
merged 1 commit into from Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -3,6 +3,7 @@ package scheduler
import (
"context"
"fmt"
"strings"
"time"

hyperv1 "github.com/openshift/hypershift/api/hypershift/v1beta1"
Expand Down Expand Up @@ -236,6 +237,8 @@ func (r *DedicatedServingComponentScheduler) Reconcile(ctx context.Context, req
}
if node.Labels[lbSubnetsLabel] != "" && lbSubnets == "" {
lbSubnets = node.Labels[lbSubnetsLabel]
// If subnets are separated by periods, replace them with commas
lbSubnets = strings.ReplaceAll(lbSubnets, ".", ",")
}

// Add taint and labels for specific hosted cluster
Expand Down