Skip to content

Commit 9c87080

Browse files
Merge pull request #29887 from smg247/microshift-set-network
TRT-1854: set network for MicroShift to OVNKubernetes
2 parents 9508b94 + 583f44a commit 9c87080

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/clioptions/clusterdiscovery/provider.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func DecodeProvider(providerTypeOrJSON string, dryRun, discover bool, clusterSta
110110
config := &ClusterConfiguration{
111111
ProviderName: "skeleton",
112112
}
113-
// Add NoOptionalCapabilities for MicroShift
113+
// Add special configurations for MicroShift
114114
coreClient, err := e2e.LoadClientset(true)
115115
if err != nil {
116116
log.WithError(err).Error("error in LoadClientset")
@@ -123,6 +123,8 @@ func DecodeProvider(providerTypeOrJSON string, dryRun, discover bool, clusterSta
123123
}
124124
if isMicroShift {
125125
config.HasNoOptionalCapabilities = true
126+
// Currently, for the sake of testing, MicroShift can always be assumed to be using OVNKubernetes
127+
config.NetworkPlugin = "OVNKubernetes"
126128
}
127129

128130
return config, nil

0 commit comments

Comments
 (0)