// publishingStrategyTypeForInfra returns the appropriate endpoint publishing
// strategy type for the given infrastructure config.
publishingStrategyTypeForInfra returns the appropriate endpoint publishing
strategy type for the given infrastructure config.
// publishingStrategyTypeForInfra returns the appropriate endpoint publishing // strategy type for the given infrastructure config .
func publishingStrategyTypeForInfra(infraConfig *configv1.Infrastructure) operatorv1.EndpointPublishingStrategyType {
	switch infraConfig.Status.Platform {
	case configv1.AWSPlatformType, configv1.AzurePlatformType, configv1.GCPPlatformType:
		return operatorv1.LoadBalancerServiceStrategyType
	case configv1.LibvirtPlatformType:
		return operatorv1.HostNetworkStrategyType
	}
	return operatorv1.HostNetworkStrategyType
}
func publishingStrategyTypeForInfra ( infraConfig * configv1 . Infrastructure ) operatorv1 . EndpointPublishingStrategyType { switch infraConfig . Status . Platform { case configv1 . AWSPlatformType , configv1 . AzurePlatformType , configv1 . GCPPlatformType : return operatorv1 . LoadBalancerServiceStrategyType case configv1 . LibvirtPlatformType : return operatorv1 . HostNetworkStrategyType } return operatorv1 . HostNetworkStrategyType }
publishingStrategyTypeForInfra returns the appropriate endpoint publishing
strategy type for the given infrastructure config.
publishingStrategyTypeForInfra returns the appropriate endpoint publishing strategy type for the given infrastructure config .