-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/eks_addon: Deprecate resolve_conflicts
attribute
#29555
r/eks_addon: Deprecate resolve_conflicts
attribute
#29555
Conversation
Community NoteVoting for Prioritization
For Submitters
|
ac087fc
to
666f57d
Compare
# Conflicts: # website/docs/r/eks_addon.html.markdown
… Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below]'.
@ewbankkit question: If EKS were to change the API where the create operation only shows For example, if the input specification for createAddon changed from: ResolveConflicts *string `locationName:"resolveConflicts" type:"string" enum:"ResolveConflicts"` To ResolveConflicts *string `locationName:"resolveConflicts" type:"string" enum:"CreateResolveConflicts"` How would that affect the provider implementation - would we still keep one argument for the |
@bryantbiggs I think we'd still need this PR but we'd enhance by using the different enumeration as part of validation. |
ok cool - so the provider arguments would stay as is (per what is added here) and therefore no breaking change, the only changes would be made to the internal implementation of the provider. thank you! |
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 🚀.
% make testacc TESTARGS='-run=TestAccEKSAddon_' PKG=eks ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/eks/... -v -count 1 -parallel 2 -run=TestAccEKSAddon_ -timeout 180m
=== RUN TestAccEKSAddon_basic
=== PAUSE TestAccEKSAddon_basic
=== RUN TestAccEKSAddon_disappears
=== PAUSE TestAccEKSAddon_disappears
=== RUN TestAccEKSAddon_Disappears_cluster
=== PAUSE TestAccEKSAddon_Disappears_cluster
=== RUN TestAccEKSAddon_addonVersion
=== PAUSE TestAccEKSAddon_addonVersion
=== RUN TestAccEKSAddon_preserve
=== PAUSE TestAccEKSAddon_preserve
=== RUN TestAccEKSAddon_deprecated
=== PAUSE TestAccEKSAddon_deprecated
=== RUN TestAccEKSAddon_resolveConflicts
=== PAUSE TestAccEKSAddon_resolveConflicts
=== RUN TestAccEKSAddon_serviceAccountRoleARN
=== PAUSE TestAccEKSAddon_serviceAccountRoleARN
=== RUN TestAccEKSAddon_configurationValues
=== PAUSE TestAccEKSAddon_configurationValues
=== RUN TestAccEKSAddon_tags
=== PAUSE TestAccEKSAddon_tags
=== CONT TestAccEKSAddon_basic
=== CONT TestAccEKSAddon_deprecated
--- PASS: TestAccEKSAddon_basic (745.25s)
=== CONT TestAccEKSAddon_configurationValues
--- PASS: TestAccEKSAddon_deprecated (718.20s)
=== CONT TestAccEKSAddon_tags
--- PASS: TestAccEKSAddon_configurationValues (646.46s)
=== CONT TestAccEKSAddon_serviceAccountRoleARN
--- PASS: TestAccEKSAddon_tags (698.59s)
=== CONT TestAccEKSAddon_resolveConflicts
--- PASS: TestAccEKSAddon_serviceAccountRoleARN (573.52s)
=== CONT TestAccEKSAddon_addonVersion
--- PASS: TestAccEKSAddon_resolveConflicts (774.49s)
=== CONT TestAccEKSAddon_preserve
--- PASS: TestAccEKSAddon_addonVersion (784.72s)
=== CONT TestAccEKSAddon_Disappears_cluster
--- PASS: TestAccEKSAddon_preserve (758.49s)
=== CONT TestAccEKSAddon_disappears
--- PASS: TestAccEKSAddon_Disappears_cluster (727.07s)
--- PASS: TestAccEKSAddon_disappears (730.87s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/eks 3684.993s
This functionality has been released in v5.0.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This deprecates the
resolve_conflicts
attribute in favour of 2 new attributes:resolve_conflicts_on_create
andresolve_conflicts_on_update
.The CreateAddon API only permits values of
NONE
andOVERWRITE
. The UpdateAddon API permits values ofNONE
,OVERWRITE
andPRESERVE
.Therefore, when applying Terraform configuration for the first time, you're not able to specify
PRESERVE
, but that might well be the desired setting for ongoing updates to an addon.By splitting the attribute into 2, a single configuration can be provided for both initial, and followup addon configurations.
Relations
Closes #27481
References
Output from Acceptance Testing