-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to morph manifest to OAPI type #2236
Comments
Hello Thank you for opening this PR @papanito I just attempted your tfconfig on my own and was able to get it to run successfully with no Error. Could you try this with the latest |
@papanito one more question, are you running a fresh install of the CRDs or have you made changes to the CRD configs? This could cause issues when attempting to run the manifest apply where the schema doesn't match up with the CRD config. |
Sorry I will check and come back to you |
@papanito I'm facing the same issue and I'm trying to use the existing terraform state. If I do a new setup it doesn't give any warnings or errors but if I do on existing setups this gives a warning. How to proceed on this ? |
The remote state for the kubernetes_manifest has a 'metadata' field for 'clusterName' that is set to 'null'. I deleted the remote state, and then re-imported, and now the remote state does not have a 'clusterName' metadata field anymore, and all works fine. I think at some point the implementation of kubernetes_manifest emitted a clusterName metadata field, and then in some future update they removed it. Note that, in my case, the CRD doesn't say anything about the metadata field, other than that it is of type 'object'. |
Thanks @llamahunter for response. So I guess what you suggested is correct that at some point the implementation of kubernetes_manifest emitted a clusterName metadata field, and then in some future update they removed it. |
updating hashicorp/kubernetes & hashicorp/google versions also worked for me |
I did not face the issue yet again with newer versions |
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Steps to Reproduce
Expected Behavior
Plan success.
Actual Behavior
Plan failed:
Important Factoids
Workaround:
References
Community Note
The text was updated successfully, but these errors were encountered: