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

Status field not accesible in certificate object #255

Open
txomon opened this issue Jul 27, 2021 · 0 comments
Open

Status field not accesible in certificate object #255

txomon opened this issue Jul 27, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@txomon
Copy link

txomon commented Jul 27, 2021

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
@txomon txomon added the bug Something isn't working label Jul 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant