-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r/storage_class - add support for allowed_topologies
+ some validations
#910
Conversation
allowed_topologies
+ some validationsallowed_topologies
+ some validations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming along nicely! I left a couple comments as initial feedback.
IDRefreshName: resourceName, | ||
Providers: testAccProviders, | ||
CheckDestroy: testAccCheckKubernetesStorageClassDestroy, | ||
Steps: []resource.TestStep{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to skip this check if the test isn't running on GKE, since the config contains some GKE specific elements. See this commit for an example https://github.com/dak1n1/terraform-provider-kubernetes/blob/c245d421be2e2070e8cb61a03a6cc4f026d5c07c/kubernetes/resource_kubernetes_persistent_volume_claim_test.go#L51-L63
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its relevant for AWS as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would the test run on AWS as is (with `storage_provisioner = "kubernetes.io/gce-pd")?
If not, you might want to insert the value of storage_provisioner as a function parameter to the config function and determine it based on runtime environment of the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually did a bunch of work in this file on Friday. I'm thinking I'll cherry-pick the changes into my branch here.
wait for delete to finish
11e234f
to
0e1b7dc
Compare
allowed_topologies
+ some validationsallowed_topologies
+ some validations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One last thing to clarify around the test configuration (see observation by @dak1n1 )
I got the changes into my PR here fe827fb The acceptance test is passing. Thanks for this feature! |
* Update import paths and functions to use Terraform SDKv2. * Add support for testing multiple versions of the provider. * Add `allowed_topologies` to the storageclass resource, authored by Ilia Lazebnik in PR hashicorp#910
* Update import paths and functions to use Terraform SDKv2. * Add support for testing multiple versions of the provider. * Add `allowed_topologies` to the storageclass resource, authored by Ilia Lazebnik in PR hashicorp#910 * Fix acceptance tests and add upgrade tests.
* Update import paths and functions to use Terraform SDKv2. * Add support for testing multiple versions of the provider. * Add `allowed_topologies` to the storageclass resource, authored by Ilia Lazebnik in PR hashicorp#910 * Fix acceptance tests and add upgrade tests.
* Update to Terraform SDK v2. * Update import paths and functions to use Terraform SDKv2. * Add support for testing multiple versions of the provider. * Add `allowed_topologies` to the storageclass resource, authored by Ilia Lazebnik in PR #910 * Fix acceptance tests and add upgrade tests.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Description
Acceptance tests
References
Closes #391, #891
Community Note