diff --git a/kubernetes/data_source_kubernetes_secret_test.go b/kubernetes/data_source_kubernetes_secret_test.go index 4d2f9623f4..849381839b 100644 --- a/kubernetes/data_source_kubernetes_secret_test.go +++ b/kubernetes/data_source_kubernetes_secret_test.go @@ -84,8 +84,7 @@ func testAccKubernetesDataSourceSecretConfig_basic(name string) string { } func testAccKubernetesDataSourceSecretConfig_read() string { - return fmt.Sprintf(` -data "kubernetes_secret" "test" { + return fmt.Sprintf(`data "kubernetes_secret" "test" { metadata { name = "${kubernetes_secret.test.metadata.0.name}" } diff --git a/kubernetes/provider_test.go b/kubernetes/provider_test.go index a0e819341f..241ed76dc3 100644 --- a/kubernetes/provider_test.go +++ b/kubernetes/provider_test.go @@ -806,56 +806,47 @@ resource kubernetes_namespace "test" { } func providerConfig_config_path(path string) string { - return fmt.Sprintf(` - config_path = "%s" + return fmt.Sprintf(` config_path = "%s" `, path) } func providerConfig_config_context(context string) string { - return fmt.Sprintf(` - config_context = "%s" + return fmt.Sprintf(` config_context = "%s" `, context) } func providerConfig_config_paths(paths string) string { - return fmt.Sprintf(` - config_paths = %s + return fmt.Sprintf(` config_paths = %s `, paths) } func providerConfig_token(token string) string { - return fmt.Sprintf(` - token = "%s" + return fmt.Sprintf(` token = "%s" `, token) } func providerConfig_cluster_ca_certificate(ca_cert string) string { - return fmt.Sprintf(` - cluster_ca_certificate = "%s" + return fmt.Sprintf(` cluster_ca_certificate = "%s" `, ca_cert) } func providerConfig_client_cert(client_cert string) string { - return fmt.Sprintf(` - client_certificate = "%s" + return fmt.Sprintf(` client_certificate = "%s" `, client_cert) } func providerConfig_client_key(client_key string) string { - return fmt.Sprintf(` - client_key = "%s" + return fmt.Sprintf(` client_key = "%s" `, client_key) } func providerConfig_host(host string) string { - return fmt.Sprintf(` - host = "%s" + return fmt.Sprintf(` host = "%s" `, host) } func providerConfig_exec(clusterName string) string { - return fmt.Sprintf(` - exec { + return fmt.Sprintf(` exec { api_version = "client.authentication.k8s.io/v1alpha1" args = ["eks", "get-token", "--cluster-name", "%s"] command = "aws" diff --git a/kubernetes/resource_kubernetes_pod_test.go b/kubernetes/resource_kubernetes_pod_test.go index 116b7f8402..26fd542e53 100644 --- a/kubernetes/resource_kubernetes_pod_test.go +++ b/kubernetes/resource_kubernetes_pod_test.go @@ -2082,8 +2082,7 @@ func testAccKubernetesTerminationMessagePolicyWithFallBackToLogsOnErr(podName, i } func testAccKubernetesPodConfigEnableServiceLinks(podName, imageName string) string { - return fmt.Sprintf(` -resource "kubernetes_pod" "test" { + return fmt.Sprintf(`resource "kubernetes_pod" "test" { metadata { labels = { app = "pod_label" @@ -2395,8 +2394,7 @@ func testAccKubernetesPodConfig_afterUpdate(name, imageName string) string { } func testAccKubernetesPodTopologySpreadConstraintConfig(podName, imageName string) string { - return fmt.Sprintf(` -resource "kubernetes_pod" "test" { + return fmt.Sprintf(`resource "kubernetes_pod" "test" { metadata { name = "%s" }