hashicorp / terraform-provider-kubernetes

Terraform Kubernetes provider
https://www.terraform.io/docs/providers/kubernetes/
Mozilla Public License 2.0
1.6k stars 979 forks source link

Adding secretV1Data resource #2604

Closed JaylonmcShan03 closed 4 weeks ago

JaylonmcShan03 commented 1 month ago

Description

Creating initial Configuration for the new resource kubernetes_secret_v1_data fixes #2233

Acceptance tests

Output from acceptance testing:

(base) ┌─(~/Dev/terraform-provider-kubernetes)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(mau@mau-JKDT676NCP:s002)─┐
└─(11:55:30 on secretV1Data)──> make testacc TESTARGS='-run TestAccKubernetesSecretV1Data_empty'                                                                                                                                                                                        ──(Thu,Oct17)─┘
==> Checking that code complies with gofmt requirements...
go vet ./...
TF_ACC=1 go test "/Users/mau/Dev/terraform-provider-kubernetes/kubernetes" -v -vet=off -run TestAccKubernetesSecretV1Data_empty -parallel 8 -timeout 3h
=== RUN   TestAccKubernetesSecretV1Data_empty
=== PAUSE TestAccKubernetesSecretV1Data_empty
=== CONT  TestAccKubernetesSecretV1Data_empty
--- PASS: TestAccKubernetesSecretV1Data_empty (7.52s)
PASS
ok      github.com/hashicorp/terraform-provider-kubernetes/kubernetes   8.472s
(base) ┌─(~/Dev/terraform-provider-kubernetes)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(mau@mau-JKDT676NCP:s002)─┐
└─(11:56:05 on secretV1Data)──> make testacc TESTARGS='-run TestAccKubernetesSecretV1Data_basic_data'                                                                                                                                                                                   ──(Thu,Oct17)─┘
==> Checking that code complies with gofmt requirements...
go vet ./...
TF_ACC=1 go test "/Users/mau/Dev/terraform-provider-kubernetes/kubernetes" -v -vet=off -run TestAccKubernetesSecretV1Data_basic_data -parallel 8 -timeout 3h
=== RUN   TestAccKubernetesSecretV1Data_basic_data
=== PAUSE TestAccKubernetesSecretV1Data_basic_data
=== CONT  TestAccKubernetesSecretV1Data_basic_data
--- PASS: TestAccKubernetesSecretV1Data_basic_data (6.64s)
PASS
ok      github.com/hashicorp/terraform-provider-kubernetes/kubernetes   7.540s
(base) ┌─(~/Dev/terraform-provider-kubernetes)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(mau@mau-JKDT676NCP:s002)─┐
└─(12:03:46 on secretV1Data)──> make testacc TESTARGS='-run TestAcctKubernetesSecretV1Data_modified'                                                                                                                                                                                    ──(Thu,Oct17)─┘
==> Checking that code complies with gofmt requirements...
go vet ./...
TF_ACC=1 go test "/Users/mau/Dev/terraform-provider-kubernetes/kubernetes" -v -vet=off -run TestAcctKubernetesSecretV1Data_modified -parallel 8 -timeout 3h
testing: warning: no tests to run
PASS
ok      github.com/hashicorp/terraform-provider-kubernetes/kubernetes   0.952s [no tests to run]
(base) ┌─(~/Dev/terraform-provider-kubernetes)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(mau@mau-JKDT676NCP:s002)─┐
└─(12:03:15 on secretV1Data)──> make testacc TESTARGS='-run TestAcctKubernetesSecretV1Data_validation'                                                                                                                                                                                  ──(Thu,Oct17)─┘
==> Checking that code complies with gofmt requirements...
go vet ./...
TF_ACC=1 go test "/Users/mau/Dev/terraform-provider-kubernetes/kubernetes" -v -vet=off -run TestAcctKubernetesSecretV1Data_validation -parallel 8 -timeout 3h
=== RUN   TestAcctKubernetesSecretV1Data_validation
=== PAUSE TestAcctKubernetesSecretV1Data_validation
=== CONT  TestAcctKubernetesSecretV1Data_validation
--- PASS: TestAcctKubernetesSecretV1Data_validation (2.93s)
PASS
ok      github.com/hashicorp/terraform-provider-kubernetes/kubernetes   3.890s

Release Note

Release note for CHANGELOG:

Adding the `kubernetes_secret_v1_data` resource to the kubernetes provider. This resource will allow users to manage kubernetes secrets

References

Community Note