-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bug: TunnelConfig.argo.cloudflare.upbound.io
missing spec.forProvider.config[].ignressRule[].originRequest
#54
Comments
spec.forProvider.config[].ignressRule[].originRequest
TunnelConfig.argo.cloudflare.upbound.io
missing spec.forProvider.config[].ignressRule[].originRequest
@cdloh Ok, the diff --git a/Makefile b/Makefile
index f109ebf..ec89d98 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ export TERRAFORM_VERSION := 1.3.3
export TERRAFORM_PROVIDER_SOURCE := cloudflare/cloudflare
export TERRAFORM_PROVIDER_REPO := https://github.com/cloudflare/terraform-provider-cloudflare
-export TERRAFORM_PROVIDER_VERSION := 3.31.0
+export TERRAFORM_PROVIDER_VERSION := 4.31.0
export TERRAFORM_PROVIDER_DOWNLOAD_NAME := terraform-provider-cloudflare
export TERRAFORM_NATIVE_PROVIDER_BINARY := terraform-provider-github_v3.31.0
export TERRAFORM_DOCS_PATH := docs/resources suffices 😬, #52 does not seem like 🤔 |
Upgrading to v4 requires a significant overhall of the provider. It would require changing all of the internals to support Terraform Framework resources. There is support for it in Upjet but I don't have the time right now to convert all of the bindings here. I'm happy to accept MRs that upgrade it and do reviews (I can even run tests against a cloudflare account with those entitlements) but can't give you an ETA or anything like that on getting this closer to v4 |
Ok, I created the I had to change it a little bit, since they renamed It would be nice if you can have a look and test it against the said CF account. Havent done any testing so far, just made the pipelines green yesterday. Please let me know if there are any other changes necessary. I'm just really new to generating providers and this one in particular. I think you know it and its quirks better. |
This won't work as it's not told to use the new APIs. You'll need to check out the newer Upjet providers like the AWS one here - https://github.com/crossplane-contrib/provider-upjet-aws/blob/main/config/externalname.go That loads the TerraformPlugin framework. My understanding is that there ins't much documentation on this yet. |
The
originRequest
in the CRD https://doc.crds.dev/github.com/cdloh/provider-cloudflare/argo.cloudflare.upbound.io/TunnelConfig/[email protected] underignressRule
is missing.The CF API has it here: https://developers.cloudflare.com/api/operations/cloudflare-tunnel-configuration-put-configuration#request-body, even in the description of
ingressRules
in your docs there is a link (Read more) to "Origin configuration".I also checked the TF resource and there it is: https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/tunnel_config#origin_request
It seems like the provider generation from the TF source did not work properly 😢
The text was updated successfully, but these errors were encountered: