If I try to apply the code above I get the following error:
kubectl_manifest.cert-manager_clusterissuer: Creating...
╷
│ Error: selfsigned-cluster-issuer failed to run apply: error when creating "/tmp/979378527kubectl_manifest.yaml": admission webhook "webhook.cert-manager.io" denied the request: spec: Required value: at least one issuer must be configured
│
│ with kubectl_manifest.cert-manager_clusterissuer,
│ on clusterissuer.tf line 1, in resource "kubectl_manifest" "cert-manager_clusterissuer":
│ 1: resource "kubectl_manifest" "cert-manager_clusterissuer" {
Workaround
When I apply the following code manually it works:
The problem seems to be the same as described here: https://github.com/hashicorp/terraform-provider-kubernetes/issues/1352
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
kubectl_manifest
Terraform Configuration Files
Steps to Reproduce
Apply the above resource.
Expected Behavior
The ClusterIssuer should be deployed.
Actual Behavior
If I try to apply the code above I get the following error:
Workaround
When I apply the following code manually it works: