-
Notifications
You must be signed in to change notification settings - Fork 84
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
Fix EKS autoMode preview with unknown values #1603
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. Maintainer note: consult the runbook for dealing with any breaking changes. |
// Make all eks auto mode options depend on the other options to ensure | ||
// that they're all either known or unknown when auto mode is enabled. | ||
const autoModeConfig = | ||
args.autoMode?.enabled && computeConfig && storageConfig && kubernetesNetworkConfig |
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.
Oof.
The upstream EKS cluster resource requires that all auto mode settings are either enabled or disabled and does not handle unknown values. Make all eks auto mode options depend on the other options to ensure that they're all either known or unknown when auto mode is enabled.
cf3540c
to
b23ce14
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1603 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 1 1
Lines 2804 2804
======================================
Misses 2804 2804 ☔ View full report in Codecov by Sentry. |
This PR has been shipped in release v3.8.1. |
The diff customizer of the upstream provider is not taking possibly unknown values into account (see https://github.com/hashicorp/terraform-provider-aws/blob/ae93494f39ba70fe442e891caf05f8df21bde1ac/internal/service/eks/cluster.go#L1776-L1791), which causes failures like this one:
This happens because
unknown
attributes just default to their empty values in a diff customizer if they're unknown .This change acts a hot fix until we can properly fix upstream's behavior here. The current diff for auto mode is quite broken and needs some more involved fixes (see hashicorp/terraform-provider-aws#40582).
Fixes #1597