-
Notifications
You must be signed in to change notification settings - Fork 63
Provider produced inconsistent result after apply #90
Comments
I've also tried using the example service. It has the same issue. I've also tried terraform 0.12.19 and the same error occurs. ➜ terraform apply
kubernetes_manifest.test-namespace: Refreshing state...
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# kubernetes_manifest.service-injector will be created
+ resource "kubernetes_manifest" "service-injector" {
+ manifest = {
+ apiVersion = "v1"
+ kind = "Service"
+ metadata = {
+ labels = {
+ app.kubernetes.io/instance = "test-service"
+ app.kubernetes.io/managed-by = "Terraform"
+ app.kubernetes.io/name = "vault-agent-injector"
}
+ name = "test-service-vault-agent-injector-svc"
+ namespace = "default"
}
+ spec = {
+ ports = [
+ {
+ port = 443
+ protocol = "TCP"
+ targetPort = "http"
},
]
+ selector = {
+ app.kubernetes.io/instance = "test-service"
+ app.kubernetes.io/name = "vault-agent-injector"
+ component = "webhook"
}
}
}
+ object = {
+ apiVersion = "v1"
+ kind = "Service"
+ metadata = {
+ annotations = {
+ cloud.google.com/neg = jsonencode(
{
+ ingress = true
}
)
}
+ labels = {
+ app.kubernetes.io/instance = "test-service"
+ app.kubernetes.io/managed-by = "Terraform"
+ app.kubernetes.io/name = "vault-agent-injector"
}
+ name = "test-service-vault-agent-injector-svc"
+ namespace = "default"
}
+ spec = {
+ ports = [
+ {
+ port = 443
+ protocol = "TCP"
+ targetPort = "http"
},
]
+ selector = {
+ app.kubernetes.io/instance = "test-service"
+ app.kubernetes.io/name = "vault-agent-injector"
+ component = "webhook"
}
+ sessionAffinity = "None"
+ type = "ClusterIP"
}
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
kubernetes_manifest.service-injector: Creating...
Error: Provider produced inconsistent result after apply
When applying changes to kubernetes_manifest.service-injector, provider
"registry.terraform.io/-/kubernetes-alpha" produced an unexpected new value
for .object: wrong final value type: attribute "apiVersion": string required.
This is a bug in the provider, which should be reported in the provider's own
issue tracker. |
Thanks for reporting this! I'm looking into it. |
This should start working once #41 is merged. I tested it already in that branch and it works correcly. |
@alexsomesan Thanks for the update and the work so far on this provider. Do you guys have any ETA on #41 or general roadmap for the provider? It seems the current version of this provider is pretty much unusable at this stage without that change. I'm not trying to be negative, but rather trying to identify whether or not it is feasible to use, or plan to use, this provider any time soon. |
Hi @blucas, our desire is to have this provider reach stability for production usage as soon as we are able, however #41 is proving to be quite complex to implement. We are doing our best to resolve the issues preventing us from merging that PR but unfortunately cannot share an ETA currently since investigation is still underway. We will be sure to publish any updates as we have them. Thank you for your patience. |
I've got a problem at the generation execution plan for the Service:
My code:
|
It looks like the above crash may have been fixed. I tried applying the config mentioned in the previous comment and got this error instead (which is expected):
Since the root cause of this problem is being tracked in issue #34, I'm going to close this one as a duplicate. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Terraform Version and Provider Version
Kubernetes Version
Affected Resource(s)
resource "kubernetes_manifest" "service-productpage"
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Apply should have succeeded without error
Actual Behavior
Resource was created, but apply failed with error. Attempting a second apply fails as well with another error (see "Steps to Reproduce")
Steps to Reproduce
Subsequent apply fails:
Important Factoids
References
Community Note
The text was updated successfully, but these errors were encountered: