Closed johnathank-nuna closed 1 year ago
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you!
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Steps to Reproduce
volume_attributes
to setencryptInTransit
totrue
.terraform apply
Expected Behavior
What should have happened?
After setting the
volume_attributes
we should ONLY see thevolume_attributes
change as thekubernetes_persistent_volume
should detect thenamespace
of the existing PVC instead of using "default":Actual Behavior
What actually happened?
Instead we see that when run against a PV with an existing claim, it leaves the name of the claim but falls back to the "default" namespace for the
claim_ref
in addition to thevolume_attributes
change:Important Factoids
To work around this you can set the
claim_ref
for the PV:It was already called out in GH-1437, but
claim_ref
is undocumented and was a bit of a pain to figure out.References
Community Note