Update Terraform cloudposse/label/null to v0.24.1 #32
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.19.2->0.24.1Release Notes
cloudposse/terraform-null-label
v0.24.1Compare Source
Allow control of letter case of outputs @SweetOps (#107)
You now have control over the letter case of generated tag names and supplied labels, which means you also have control over the letter case of the ultimate
id.Labels are the elements you can include in
label_order, namelynamespace,environment,stage,name, andattributes. For every non-empty label, a corresponding tag name is generated. Fornamespace,environment,stage, the output is the formatted, normalized input. (By "normalized" we mean that it goes throughregex_replace_chars.), Forattributes, which is a list, each element is normalized, duplicates are removed, and the resulting list is converted to a string by joining the elements with thedelimiter(defaults to hyphen). Forname, which is special, the output is the same asid, which is the joining of the labels in the order specified bylabel_orderand separated bydelimiter.label_key_caseto one ofupper,lower, ortitle, which will result in generatedtagnames in the corresponding case:NAME,name, orName. For backwards compatibility,titleis the defaultlabel_value_caseto one ofupper,lower,title, ornone, which will result in output label values in the corresponding case (withnonemeaning no case conversion of any kind will be done, though the labels will still be subject toregex_replace_chars). The case converted labels will show up not just in the module output of the labels themselves, but also in thetagvalues and in theidstring.You can look at the test cases in
examples/completeand the expected results intest/src/examples_complete_test.goto see examples of how this is supposed to work.One interesting example is that you can create
ids in Pascal case by settinglabel_value_case = "title"anddelimiter = "".Include updates to exports/context.tf @Nuru (#122 and #123)
#### what - Include updates to `exports/context.tf` - Update README with features and compatibilty - Add validation for `id_length_limit` #### why - The `exports/context.tf` is what gets distributed and needs to be in sync - Replace outdated information - Was not validated earlier because validators are not supported in TF 0.12 but now we are dropping support for TF 0.12 and so we can add validatorsRestore backward compatibility with v0.22.1 and earlier @Nuru (#121)
#### what - Restore backward compatibility with v0.22.1 and earlier - Allow setting of `label_key_case` and `label_value_case` by vars, not just by context attributes. #### why - Allow interoperability of old and new modules - Normally, root modules make settings via individual variables, not by setting an entire context block.Incorporates and closes #120
v0.24.0Compare Source
Restore backward compatibility with v0.22.1 and earlier @Nuru (#121)
#### what - Restore backward compatibility with v0.22.1 and earlier - Allow setting of `label_key_case` and `label_value_case` by vars, not just by context attributes. #### why - Allow interoperability of old and new modules - Normally, root modules make settings via individual variables, not by setting an entire context block.Incorporates and closes #120
Allow control of letter case of outputs @SweetOps (#107)
You now have control over the letter case of generated tag names and supplied labels, which means you also have control over the letter case of the ultimate
id.Labels are the elements you can include in
label_order, namelynamespace,environment,stage,name, andattributes. For every non-empty label, a corresponding tag name is generated. Fornamespace,environment,stage, the output is the formatted, normalized input. (By "normalized" we mean that it goes throughregex_replace_chars.), Forattributes, which is a list, each element is normalized, duplicates are removed, and the resulting list is converted to a string by joining the elements with thedelimiter(defaults to hyphen). Forname, which is special, the output is the same asid, which is the joining of the labels in the order specified bylabel_orderand separated bydelimiter.label_key_caseto one ofupper,lower, ortitle, which will result in generatedtagnames in the corresponding case:NAME,name, orName. For backwards compatibility,titleis the defaultlabel_value_caseto one ofupper,lower,title, ornone, which will result in output label values in the corresponding case (withnonemeaning no case conversion of any kind will be done, though the labels will still be subject toregex_replace_chars). The case converted labels will show up not just in the module output of the labels themselves, but also in thetagvalues and in theidstring.You can look at the test cases in
examples/completeand the expected results intest/src/examples_complete_test.goto see examples of how this is supposed to work.One interesting example is that you can create
ids in Pascal case by settinglabel_value_case = "title"anddelimiter = "".v0.23.0Compare Source
Known issues
null-label. The canonicalcontext = module.this.contextfails ifmodule.this.contextis an older versioncontext.tfdoes not incorporatevar.label_key_caseandvar.label_value_caseinto themodule.thisobject, preventing those variables from taking effect in the root module'smodule.this.feat: add support for setting letter case of context tags @SweetOps (#107)
With this release, you gain control over the letter case of generated tag names and supplied labels, which means you also have control over the letter case of the ultimate
id.Labels are the elements you can include in
label_order, namelynamespace,environment,stage,name, andattributes. For every non-empty label, a corresponding tag name is generated. Fornamespace,environment,stage, the output is the formatted, normalized input. (By "normalized" we mean that it goes throughregex_replace_chars.), Forattributes, which is a list, each element is normalized, duplicates are removed, and the resulting list is converted to a string by joining the elements with thedelimiter(defaults to hyphen). Forname, which is special, the output is the same asid, which is the joining of the labels in the order specified bylabel_orderand separated bydelimiter.label_key_caseto one ofupper,lower, ortitle, which will result in generatedtagnames in the corresponding case:NAME,name, orName. For backwards compatibility,titleis the defaultlabel_value_caseto one ofupper,lower,title, ornone, which will result in output label values in the corresponding case (withnonemeaning no case conversion of any kind will be done, though the labels will still be subject toregex_replace_chars). The case converted labels will show up not just in the module output of the labels themselves, but also in thetagvalues and in theidstring.You can look at the test cases in
examples/completeand the expected results intest/src/examples_complete_test.goto see examples of how this is supposed to work.One interesting example is that you can create
ids in Pascal case by settinglabel_value_case = "title"anddelimiter = "".v0.22.1Compare Source
Add var.attributes to end of context.attributes, not vice versa @Nuru (#114)
#### what - Add `var.attributes` to end of `context.attributes`, not vice versa - Update to current workflows (with some exceptions) #### why - Modules should append to attributes passed in, not insert themselves ahead of others - New features, like auto-format (but holding back some, because this is a special module) #### references - closes #113 - closes #108v0.22.0Compare Source
Breaking change: This release updates minimum Terraform version requirement to 0.12.26
Convert context.tf to registry reference @Nuru (#110)
#### what - Convert `context.tf` to use registry reference - Update version requirement to `>= 0.12.26` - Switch auto-publish to draft mode #### why - New standard way to reference modules - Minimum version that supports registry references - Ensure that version numbers are set manually and match what is in `context.tf`v0.21.0Compare Source
Update `null-label` version used for exporting into other modules @aknysh (#106)
#### what * Update `null-label` version used for exporting into other modules #### why * New release will be made from this PR - use this release in `exports/context.tf` to be exported into other modulesv0.20.0Compare Source
Update versions.tf to support tf .14 @kiddom-kq (#105)
Adds support for Terraform
0..14(currently inbeta2)I've currently got it pinned to
< 0.14.1to be conservative. Can update to< 0.15or similar.what
versions.tfto support terraform0.14why
0.13. The proposed workaround for that unrelated issue does not work for me at this time.0.14which is in beta, now.references
Fixes #104
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.