Skip to content
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

persistent volume claim doesn't recognize storage_class_name #95

Closed
matthiaskubik opened this issue Dec 4, 2017 · 2 comments
Closed

Comments

@matthiaskubik
Copy link

Hi there,

Terraform Version

Terraform v0.9.8

Affected Resource(s)

  • kubernetes_persistent_volume_claim
    • storage_class_volume

Terraform Configuration Files

provider "kubernetes" {
   host = "https://localhost"
}

resource "kubernetes_persistent_volume_claim" "example" {
  metadata {
    name = "exampleclaimname"
  }
  spec {
    access_modes = ["ReadWriteMany"]
    resources {
      requests {
        storage = "5Gi"
      }
    }
    volume_name = "p-vol"
    storage_class_name = "aa"
  }
}

Debug Output

terraform plan
1 error(s) occurred:

  • kubernetes_persistent_volume_claim.example: spec.0: invalid or unknown key: storage_class_name

Expected Behavior

storage_class_name should be accepted as documented

Actual Behavior

  • kubernetes_persistent_volume_claim.example: spec.0: invalid or unknown key: storage_class_name

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform plan

Important Factoids

References

@radeksimko
Copy link
Member

This was addressed in #111 which is part of the latest release (1.1.0). Thanks for the report.

@weeping-somnambulist
Copy link

This issue is not addressed, and persists in Terraform 0.11.14 with Kubernetes provider version 1.6.2

@ghost ghost locked and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants