Skip to content

Commit c88c19e

Browse files
better error message
Co-authored-by: Daniel Lipovetsky <[email protected]>
1 parent ae10191 commit c88c19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/services/eks/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (s *Service) reconcileCluster(ctx context.Context) error {
6969
oldOwnedTag := cluster.Tags[oldTagKey]
7070

7171
if ownedTag == nil && oldOwnedTag == nil {
72-
return fmt.Errorf("cluster is not tagged with neither %s nor %s", tagKey, oldTagKey)
72+
return fmt.Errorf("EKS cluster resource %q must have a tag with key %q or %q", eksClusterName, oldTagKey, tagKey)
7373
}
7474

7575
s.scope.V(2).Info("Found owned EKS cluster in AWS", "cluster", klog.KRef("", eksClusterName))

0 commit comments

Comments
 (0)