Remove unnecessary checking of SDN as it is always set via api.SetDefaults in frontend PutOrPatch

This commit is contained in:
bennerv 2023-02-17 14:59:27 -05:00
Родитель ba3ce8c5ba
Коммит 3bb6e68e9d
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -104,10 +104,7 @@ func (m *manager) generateInstallConfig(ctx context.Context) (*installconfig.Ins
masterZones = []string{""}
}
SoftwareDefinedNetwork := string(api.SoftwareDefinedNetworkOpenShiftSDN)
if m.oc.Properties.NetworkProfile.SoftwareDefinedNetwork != "" {
SoftwareDefinedNetwork = string(m.oc.Properties.NetworkProfile.SoftwareDefinedNetwork)
}
SoftwareDefinedNetwork := string(m.oc.Properties.NetworkProfile.SoftwareDefinedNetwork)
// determine outbound type based on cluster visibility
outboundType := azuretypes.LoadbalancerOutboundType