You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
The status field of the RabbitMQ CRD is not accepted by the kubernetes-alpha provider:
╷
│ Error: Forbidden attribute key in "manifest" value
│
│ with module.kind_kubernetes.kubernetes_manifest.rabbitmq_resource_0,
│ on ../../common/kubernetes/resources.tf line 163, in resource "kubernetes_manifest" "rabbitmq_resource_0":
│ 163: resource "kubernetes_manifest" "rabbitmq_resource_0" {
│
│ 'status' attribute key is not allowed in manifest configuration
╵
Note their is an empty subresourecs.status block but I know this is a known issue (see #158). The issue is not on this field but on the root status field (line 4402 of the 1.8.0 manifest):
My workaround for now: download the operator manually, edit it to remove the status field and use file() to import it (so the http provider is not used but the kubernetes-alpha can still be used with yamldecode()).
The status field seems to be a read-only field from the user perspective. It makes little sense to pass this field to the API server. Do you have a specific use-case where you need to set something on "status" as a Terraform user?
I suspect clients like kubectl just filter this out transparently, but in Terraform we use the exact configuration supplied by the user and instead validate before applying and report an error.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Please note this is not a duplicate of #158.
Terraform, Provider, Kubernetes versions
Affected Resource(s)
kubernetes_manifest
, applying a CustomResourceDefinition with astatus
block (not empty)Terraform Configuration Files
See this first Gist: https://gist.github.com/sambonbonne/34f06f54c7d166f8ab446ece42680dcf.
Debug Output
See this second Gist: https://gist.github.com/sambonbonne/4657bec9cadbc73ac70eb2594303c008.
Steps to Reproduce
terraform init
terraform plan
Expected Behavior
The RabbitMQ CRD should be valide.
Actual Behavior
The
status
field of the RabbitMQ CRD is not accepted by thekubernetes-alpha
provider:References
I'm installing the RabbitMQ cluster operator, in its 1.8.0 version. The YAML is valid and accepted by
kubectl
so no issue on their side.Note their is an empty
subresourecs.status
block but I know this is a known issue (see #158). The issue is not on this field but on the rootstatus
field (line4402
of the 1.8.0 manifest):Community Note
The text was updated successfully, but these errors were encountered: