Skip to content

Commit

Permalink
Merge pull request #20562 from hashicorp/t-aws_eks_addon-version
Browse files Browse the repository at this point in the history
r/aws_eks_addon: Update addon versions for `TestAccAWSEksAddon_AddonVersion`
  • Loading branch information
ewbankkit authored Aug 18, 2021
2 parents 29338bf + 25e1b6e commit 0c74f25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/20562.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_eks_addon: Treat `DEGRADED` as a pending state during creation
```
2 changes: 1 addition & 1 deletion aws/internal/service/eks/waiter/waiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (

func AddonCreated(ctx context.Context, conn *eks.EKS, clusterName, addonName string) (*eks.Addon, error) {
stateConf := resource.StateChangeConf{
Pending: []string{eks.AddonStatusCreating},
Pending: []string{eks.AddonStatusCreating, eks.AddonStatusDegraded},
Target: []string{eks.AddonStatusActive},
Refresh: AddonStatus(ctx, conn, clusterName, addonName),
Timeout: AddonCreatedTimeout,
Expand Down
4 changes: 2 additions & 2 deletions aws/resource_aws_eks_addon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ func TestAccAWSEksAddon_AddonVersion(t *testing.T) {
rName := acctest.RandomWithPrefix("tf-acc-test")
resourceName := "aws_eks_addon.test"
addonName := "vpc-cni"
addonVersion1 := "v1.6.3-eksbuild.1"
addonVersion2 := "v1.7.5-eksbuild.1"
addonVersion1 := "v1.8.0-eksbuild.1"
addonVersion2 := "v1.9.0-eksbuild.1"
ctx := context.TODO()

resource.ParallelTest(t, resource.TestCase{
Expand Down

0 comments on commit 0c74f25

Please sign in to comment.