Skip to content

Commit

Permalink
Improve nodegroup validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Jan 17, 2019
1 parent f4d5e24 commit 5ee3237
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/eks/compatibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ func (c *ClusterProvider) ValidateExistingNodeGroupsForCompatibility(cfg *api.Cl

logger.Critical("found %d nodegroup(s) (%s) without shared security group, cluster networking maybe be broken",
numIncompatibleNodeGroups, strings.Join(incompatibleNodeGroups, ", "))
logger.Critical("it's recommended to delete these nodegroups and create new ones instead")
logger.Critical("as a temporary fix, you can patch the configuration and add each of these nodegroup(s) to %q",
cfg.VPC.SharedNodeSecurityGroup)
logger.Critical("it's recommended to create new nodegroups, then delete old ones")
if cfg.VPC.SharedNodeSecurityGroup != "" {
logger.Critical("as a temporary fix, you can patch the configuration and add each of these nodegroup(s) to %q",
cfg.VPC.SharedNodeSecurityGroup)
}

return nil
}

0 comments on commit 5ee3237

Please sign in to comment.