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.
Cannot create cert-manager selfSigned Issuer using kubernetes-alpha 0.3.1 #167
Open
Description
Terraform, Provider, Kubernetes versions
tf:
Terraform v0.14.8
+ provider registry.terraform.io/hashicorp/kubernetes-alpha v0.3.1
k8s:
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", ...}
Server Version: version.Info{Major:"1", Minor:"19+", GitVersion:"v1.19.6-eks-49a6c0", ...}
Affected Resource(s)
- kubernetes_manifest
Terraform Configuration Files
resource "kubernetes_manifest" "issuer_aws_load_balancer_selfsigned_issuer" {
provider = kubernetes-alpha
manifest = {
"apiVersion" = "cert-manager.io/v1alpha2"
"kind" = "Issuer"
"metadata" = {
"labels" = {"app.kubernetes.io/name" = "aws-load-balancer-controller"}
"name" = "aws-load-balancer-selfsigned-issuer"
"namespace" = "kube-system"
}
"spec" = {"selfSigned" = {}}
}
}
Debug Output
Error: API response status: Failure
on modules/aws-load-balancer-controller/main.tf line 847,
in resource "kubernetes_manifest" "issuer_aws_load_balancer_selfsigned_issuer":847:
resource "kubernetes_manifest" "issuer_aws_load_balancer_selfsigned_issuer" {
admission webhook "webhook.cert-manager.io" denied the request: spec: Required
value: at least one issuer must be configured
Expected Behavior
The resource is created with the same spec as if I had used this in YAML:
spec:
selfSigned: {}
Actual Behavior
The selfSigned
key is missing in the resource sent to k8s, resulting in the error.
References
- Possibly a variant of "Empty blocks in the manifest may cause inconsistent state after apply" from Known issues #158 "Known Issues", but this is causing an error rather than inconsistent state.
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