Skip to content

Commit

Permalink
Fix harmless Fargate error checking (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago Martins authored Mar 9, 2021
1 parent 0825e07 commit 2e3e0e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/resource/cluster/cluster_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,10 @@ func (m *Manager) updateCluster(d *schema.ResourceData) (*ClusterSet, error) {
clusterName := string(set.ClusterName)
harmlessFargateProfileCreationErrors := []string{
fmt.Sprintf(`Error: no output "FargatePodExecutionRoleARN" in stack "eksctl-%s-cluster"`, clusterName),
fmt.Sprintf(`Error: couldn't refresh role arn: no output "FargatePodExecutionRoleARN" in stack "eksctl-%s-cluster"`, clusterName),
}

draineNodegroup := func() func() error {
drainNodegroup := func() func() error {

return func() error {

Expand Down Expand Up @@ -273,7 +274,7 @@ func (m *Manager) updateCluster(d *schema.ResourceData) (*ClusterSet, error) {
whenIAMWithOIDCEnabled(createNew("iamserviceaccount", []string{"--approve"}, nil)),
createNew("fargateprofile", nil, harmlessFargateProfileCreationErrors),
enableRepo(),
draineNodegroup(),
drainNodegroup(),
updateIAMIdentityMapping(),
deleteMissing("nodegroup", []string{"--drain", "--approve"}, nil),
whenIAMWithOIDCEnabled(deleteMissing("iamserviceaccount", []string{"--approve"}, nil)),
Expand Down

0 comments on commit 2e3e0e7

Please sign in to comment.