-
Notifications
You must be signed in to change notification settings - Fork 2
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce maximum allowed Terraform version #21
Conversation
Signed-off-by: Jared Watts <jbw976@gmail.com>
Signed-off-by: Jared Watts <jbw976@gmail.com>
Signed-off-by: Jared Watts <jbw976@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here's an easier to view diff of this file from its previous version:
139c139
< "description": "(Required) The type of channel. One of: (user, victorops, webhook, email, opsgenie, pagerduty, slack).",
---
> "description": "(Required) The type of channel. One of: (email, opsgenie, pagerduty, slack, user, victorops, webhook).",
373c373
< "description": "The type of condition. One of: (browser_metric, mobile_metric, servers_metric, apm_app_metric, apm_jvm_metric, apm_kt_metric).",
---
> "description": "The type of condition. One of: (apm_jvm_metric, apm_kt_metric, browser_metric, mobile_metric, servers_metric, apm_app_metric).",
11354c11354
< "description": "The type of channel. One of: (slack, user, victorops, webhook, email, opsgenie, pagerduty).",
---
> "description": "The type of channel. One of: (pagerduty, slack, user, victorops, webhook, email, opsgenie).",
11649c11649
< "version": 0,
---
> "version": 1,
This looks very similar to what @ulucinar investigated in crossplane-contrib/provider-upjet-digitalocean#42 (comment), where we determined it to not be an issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However, there is something else funny happening that I don't understand yet, perhaps the project maintainers would know better.
After running make generate
, I see no file content changed, but I do see a number of API files getting their file mode updated:
diff --git a/apis/alert/v1alpha1/zz_channel_terraformed.go b/apis/alert/v1alpha1/zz_channel_terraformed.go
old mode 100644
new mode 100755
diff --git a/apis/alert/v1alpha1/zz_destination_terraformed.go b/apis/alert/v1alpha1/zz_destination_terraformed.go
old mode 100644
new mode 100755
diff --git a/apis/alert/v1alpha1/zz_generated.conversion_hubs.go b/apis/alert/v1alpha1/zz_generated.conversion_hubs.go
old mode 100644
new mode 100755
diff --git a/apis/alert/v1alpha1/zz_policy_terraformed.go b/apis/alert/v1alpha1/zz_policy_terraformed.go
old mode 100644
new mode 100755
diff --git a/apis/dashboard/v1alpha1/zz_dashboard_terraformed.go b/apis/dashboard/v1alpha1/zz_dashboard_terraformed.go
old mode 100644
new mode 100755
diff --git a/apis/dashboard/v1alpha1/zz_dashboardjson_terraformed.go b/apis/dashboard/v1alpha1/zz_dashboardjson_terraformed.go
old mode 100644
new mode 100755
diff --git a/apis/dashboard/v1alpha1/zz_generated.conversion_hubs.go b/apis/dashboard/v1alpha1/zz_generated.conversion_hubs.go
old mode 100644
new mode 100755
diff --git a/apis/log/v1alpha1/zz_generated.conversion_hubs.go b/apis/log/v1alpha1/zz_generated.conversion_hubs.go
old mode 100644
new mode 100755
diff --git a/apis/log/v1alpha1/zz_parsingrule_terraformed.go b/apis/log/v1alpha1/zz_parsingrule_terraformed.go
old mode 100644
new mode 100755
diff --git a/apis/nrql/v1alpha1/zz_alertcondition_terraformed.go b/apis/nrql/v1alpha1/zz_alertcondition_terraformed.go
old mode 100644
new mode 100755
diff --git a/apis/nrql/v1alpha1/zz_droprule_terraformed.go b/apis/nrql/v1alpha1/zz_droprule_terraformed.go
old mode 100644
new mode 100755
diff --git a/apis/nrql/v1alpha1/zz_generated.conversion_hubs.go b/apis/nrql/v1alpha1/zz_generated.conversion_hubs.go
old mode 100644
new mode 100755
diff --git a/apis/workflow/v1alpha1/zz_generated.conversion_hubs.go b/apis/workflow/v1alpha1/zz_generated.conversion_hubs.go
old mode 100644
new mode 100755
diff --git a/apis/workflow/v1alpha1/zz_workflow_terraformed.go b/apis/workflow/v1alpha1/zz_workflow_terraformed.go
old mode 100644
new mode 100755
I wonder if this is a local config/setup issue, or if it will show up in CI also. Any ideas? 馃槆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the check-diff
test succeeded, so that's a good sign: https://github.com/crossplane-contrib/crossplane-provider-newrelic/actions/runs/9424411057/job/25964572486?pr=21
Description of your changes
This PR applies the changes from crossplane/upjet-provider-template#67 to this repository.
In the Crossplane project, we cannot use a version of Terraform greater than v1.5.x because of the not permitted BSL license that was introduced starting with v1.6.0.
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
I have tested locally that the build still completes successful with
make
andmake reviewable
still passes all tests/checks. Of particular note is that no CRD schemas are affected by this change.I would appreciate a critical look here to see if there's more manual testing we can perform to validate this change, as I am rolling this out across a number of providers I'm not super familiar with 馃槆