diff --git a/kubernetes/resource_kubernetes_service_test.go b/kubernetes/resource_kubernetes_service_test.go index e35b75f221..5cdcc6af0e 100644 --- a/kubernetes/resource_kubernetes_service_test.go +++ b/kubernetes/resource_kubernetes_service_test.go @@ -143,7 +143,7 @@ func TestAccKubernetesService_loadBalancer(t *testing.T) { resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.external_ips.1452553500", "10.0.0.4"), resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.external_ips.3371212991", "10.0.0.3"), resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.external_name", "ext-name-"+name), - resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.external_traffic_policy", "Local"), + resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.external_traffic_policy", "Cluster"), resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.load_balancer_source_ranges.#", "2"), resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.load_balancer_source_ranges.138364083", "10.0.0.5/32"), resource.TestCheckResourceAttr("kubernetes_service.test", "spec.0.load_balancer_source_ranges.445311837", "10.0.0.6/32"), @@ -697,6 +697,7 @@ resource "kubernetes_service" "test" { external_name = "ext-name-modified-%s" external_ips = ["10.0.0.4", "10.0.0.5"] load_balancer_source_ranges = ["10.0.0.1/32", "10.0.0.2/32"] + external_traffic_policy = "Local" selector = { App = "MyModifiedApp"