diff --git a/pkg/assets/job.yaml.tpl b/pkg/assets/job.yaml.tpl index 8ac8dfe7c..2dc3ea0ae 100644 --- a/pkg/assets/job.yaml.tpl +++ b/pkg/assets/job.yaml.tpl @@ -51,8 +51,8 @@ spec: items: - key: backend.tf path: backend.tf - - key: provider.tf - path: provider.tf + - key: provider.tf.json + path: provider.tf.json {{- if .EnableVariables }} - key: variables.tfvars.json path: variables.tfvars.json diff --git a/pkg/controller/configuration/reconcile_test.go b/pkg/controller/configuration/reconcile_test.go index 696c1bdfd..0323dd90c 100644 --- a/pkg/controller/configuration/reconcile_test.go +++ b/pkg/controller/configuration/reconcile_test.go @@ -1956,7 +1956,7 @@ terraform { Expect(backend).To(Equal(expected)) }) - It("should have a provider.tf", func() { + It("should have a provider.tf.json", func() { expected := "{\n \"provider\": {\n \"aws\": {}\n }\n" secret := &v1.Secret{} secret.Namespace = ctrl.ControllerNamespace