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

Add sub_path_expr to volume mount options #2622

Open jk-f5 opened 1 week ago

jk-f5 commented 1 week ago

Description

Added ability to declare sub_path_expr in volume mounts. I more or less just grepped for sub_path and added the equivalent code for sub_path_expr. I'm a bit shocked that this hasn't been added already.

Acceptance tests

Output from acceptance testing:

$ make testacc TESTARGS="-run '^TestAccKubernetes(Deployment|Pod|ReplicationController)'"
...
PASS

Release Note

Release note for CHANGELOG:

Enhancement
- Added ability to declare sub_path_expr in volume mounts. 

References

Community Note

hashicorp-cla-app[bot] commented 1 week ago

CLA assistant check
All committers have signed the CLA.