Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Status field not accesible in certificate object #255

@txomon

Description

@txomon

Terraform, Provider, Kubernetes versions

Terraform v1.0.2
on linux_amd64
+ provider registry.terraform.io/cyrilgdn/postgresql v1.13.0
+ provider registry.terraform.io/hashicorp/google v3.72.0
+ provider registry.terraform.io/hashicorp/google-beta v3.72.0
+ provider registry.terraform.io/hashicorp/helm v2.2.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.3.2
+ provider registry.terraform.io/hashicorp/kubernetes-alpha v0.5.0
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/newrelic/newrelic v2.23.0

Kubernetes: v1.18.20-gke.900

Affected Resource(s)

  • kubernetes_manifest

Terraform Configuration Files

resource "kubernetes_manifest" "certificate" {
  provider = kubernetes-alpha
  manifest = {
    apiVersion : "cert-manager.io/v1"
    kind : "Certificate"
    metadata : {
      name : "crt"
    }
    spec : {
      secretName : "certificate-tls"
      issuerRef : {
        name : "letsencrypt-issuer"
        kind : "Issuer"
      }
      commonName : "*.example.com"
    }
  }
}

output "secret_certificate" {
  value = kubernetes_manifest.certificate.object.status.nextPrivateKeySecretName
}

Steps to Reproduce

  1. terraform apply
  2. It will fail to find the status object

Expected Behavior

What should have happened?
object.status should be available

Actual Behavior

What actually happened?
Terraform doesn't see the field

Important Factoids

References

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions