Skip to content

Commit ff07510

Browse files
MaysaMacedopierreprinetti
authored andcommitted
OpenStack: fix enforcement of Masters Schedulable
This commit fixes the decoding of the cluster scheduler file by using the apropriate yaml library. Also, it enforces both IPv4 and IPv6 remote CIDRs on the router sg rule created when the master is schedulable.
1 parent f49c919 commit ff07510

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/infrastructure/openstack/clusterapi/clusterapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"fmt"
66

77
"github.com/sirupsen/logrus"
8-
"gopkg.in/yaml.v2"
98
capo "sigs.k8s.io/cluster-api-provider-openstack/api/v1beta1"
109
"sigs.k8s.io/controller-runtime/pkg/client"
10+
"sigs.k8s.io/yaml"
1111

1212
configv1 "github.com/openshift/api/config/v1"
1313
mapov1alpha1 "github.com/openshift/api/machine/v1alpha1"

pkg/infrastructure/openstack/preprovision/securitygroups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func SecurityGroups(ctx context.Context, installConfig *installconfig.InstallCon
203203
addRules(ctx, r, masterGroup.ID, serviceOVNDB, ipVersion, CIDRs)
204204
addRules(ctx, r, workerGroup.ID, serviceRouter, ipVersion, CIDRs)
205205
if mastersSchedulable {
206-
addRules(ctx, r, masterGroup.ID, serviceRouter, rules.EtherType4, machineV4CIDRs)
206+
addRules(ctx, r, masterGroup.ID, serviceRouter, rules.EtherType4, CIDRs)
207207
}
208208
}
209209

0 commit comments

Comments
 (0)