-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add schema global compatibility rule #342
Add schema global compatibility rule #342
Conversation
Additional review notes:
|
415d358
to
bb4e622
Compare
/run pipeline |
variables.tf
Outdated
variable "schema_global_rule" { | ||
type = string | ||
description = "Schema global compatibility rule. Only allowed for enterprise plan, must be '' for other plans. Allowed values are 'NONE', 'FULL', 'FULL_TRANSITIVE', 'FORWARD', 'FORWARD_TRANSITIVE', 'BACKWARD', 'BACKWARD_TRANSITIVE'." | ||
default = "" |
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.
its better practise to default to null
instead of empty string
main.tf
Outdated
@@ -26,6 +26,8 @@ locals { | |||
) : null | |||
# tflint-ignore: terraform_unused_declarations | |||
validate_metrics = var.plan != "enterprise-3nodes-2tb" && length(var.metrics) > 0 ? tobool("metrics are only supported for enterprise plan") : true | |||
# tflint-ignore: terraform_unused_declarations | |||
validate_schema_global_rule = var.plan != "enterprise-3nodes-2tb" && var.schema_global_rule != "" ? tobool("schema global rule is only supported for enterprise plan") : true |
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.
as per https://github.com/terraform-ibm-modules/terraform-ibm-event-streams/pull/342/files#r1848885092 - default to null
and not ""
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.
see comments
03468c8
to
712bd36
Compare
@ocofaigh Updated to use null as default value. I had to rewrite the validation check condition as
otherwise terraform complained that |
/run pipeline |
/run pipeline |
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.
sorry just spotted 2 other required changes
/run pipeline |
🎉 This PR is included in version 2.10.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Description
https://github.com/IBM-Cloud/terraform-provider-ibm release v1.71.0 adds the
"ibm_event_streams_schema_global_rule"
resource. This adds the global rule to the modules.Release required?
x.x.X
)x.X.x
)X.x.x
)Release notes content
An instance of
"ibm_event_streams_schema_global_rule"
sets the global compatibility rule for the Event Streams instance. This feature is only available for the Enterprise plan. The rule defines how the Event Streams schema registry will validate changes to a schema definition.Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers