terraform-provider-kubernetes icon indicating copy to clipboard operation
terraform-provider-kubernetes copied to clipboard

Terraform pvc invalid spec error

Open snehlata08 opened this issue 2 years ago • 1 comments

Terraform version, Kubernetes provider version and Kubernetes version

Terraform version: 1.2.2
Kubernetes version: 1.21.9

Question

I was getting error of Error No. 37 No locks available. So I tried to update resources and pvc. The pvc was of size 1Gi. I updated it manually to 5Gi. Then terraform started giving error. Error: cannot patch "web-error-volume-claim" with kind PersistentVolumeClaim: PersistentVolumeClaim "web-error-volume-claim" is invalid: spec.resources.requests.storage: Forbidden: field can not be less than previous value Now there is no error in pvc and I rolled it back to 1Gi. Still terraform is stuck.

snehlata08 avatar Sep 16 '22 12:09 snehlata08

Hi @snehlata08,

I am not quite sure if I understand your question. Could you please be more specific?

Thank you.

arybolovlev avatar Sep 20 '22 13:09 arybolovlev

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!

github-actions[bot] avatar Sep 22 '23 00:09 github-actions[bot]