Skip to content

Commit 68d711a

Browse files
committed
Merge remote-tracking branch 'origin/feature/k8s-client' into feature/k8s-client
2 parents 818ad24 + 7cf4db8 commit 68d711a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/controller/env/env_checker.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func GetENV() string {
2323
_, err := client.GetDeployment(context.Background(), ISTIO_DEPLOYMENT_NAME, ISTIO_NAMESPACE)
2424
if err != nil {
2525
env = K8S_ENV
26+
return env
2627
}
2728
env = ISTIO_ENV
2829
return env

pkg/controller/transform/virtual_workload_transform.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func buildLbPolicy(trafficPolicy *traffic.TrafficPolicy) clusterv3.Cluster_LbPol
3636
return clusterv3.Cluster_ROUND_ROBIN
3737
}
3838
sample := trafficPolicy.LoadBalancer.Simple
39+
3940
switch sample {
4041
case traffic.LoadBalancerSettings_LEAST_REQUEST:
4142
return clusterv3.Cluster_LEAST_REQUEST
@@ -45,8 +46,6 @@ func buildLbPolicy(trafficPolicy *traffic.TrafficPolicy) clusterv3.Cluster_LbPol
4546
return clusterv3.Cluster_ROUND_ROBIN
4647
case traffic.LoadBalancerSettings_PASSTHROUGH:
4748
return clusterv3.Cluster_CLUSTER_PROVIDED
48-
default:
49-
return clusterv3.Cluster_ROUND_ROBIN
5049
}
5150

5251
consistentHash := trafficPolicy.LoadBalancer.ConsistentHash

0 commit comments

Comments
 (0)