-
Notifications
You must be signed in to change notification settings - Fork 53
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
Vault secondary tier by reference #289
Conversation
@@ -100,6 +100,7 @@ func resourceVaultCluster() *schema.Resource { | |||
ValidateDiagFunc: validateVaultPathsFilter, | |||
}, | |||
Optional: true, | |||
Computed: 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.
Let's drop this change for now!
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.
lgtm, just a qs
@@ -581,6 +581,8 @@ func setVaultClusterResourceData(d *schema.ResourceData, cluster *vaultmodels.Ha | |||
} else { | |||
d.Set("paths_filter", nil) | |||
} | |||
} else { | |||
d.Set("paths_filter", nil) |
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.
just for my knowledge: do we need a new test for this or by default as not set for non-replicated cluster ->paths_filter
was nil already
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.
I don't think this requires a new test case, this was just to play it safe and set paths_filter
in all circumstances
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.
Acceptance tests passed:
--- PASS: TestAccVaultCluster (1038.35s)
PASS
ok github.com/hashicorp/terraform-provider-hcp/internal/provider 1038.691s
8ad923e
to
f4c7a20
Compare
* Vault: change tiers of secondaries to reference primaries * Replace strings.EqualFold with ToLower in diff supression funcs * Add 'computed: true' to Vault paths_filter * Update docs with 'make gencheck' * Vault: always set paths_filter and remove 'Computed'
🛠️ Description
No new features, just a couple minor improvements
🚢 Release Note
Release note for CHANGELOG:
🏗️ Acceptance tests
Output from acceptance testing: