Skip to content

Commit

Permalink
Fix logging an error from EKS cluster enrollment.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonAM authored and github-actions committed May 9, 2024
1 parent 0d58d16 commit 5648747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/srv/discovery/kube_integration_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (s *Server) enrollEKSClusters(region, integration string, clusters []types.
for _, r := range rsp.Results {
if r.Error != "" {
if !strings.Contains(r.Error, "teleport-kube-agent is already installed on the cluster") {
s.Log.WithError(err).Errorf("failed to enroll EKS cluster %q", r.EksClusterName)
s.Log.Errorf("failed to enroll EKS cluster %q: %s", r.EksClusterName, r.Error)
} else {
s.Log.Debugf("EKS cluster %q already has installed kube agent", r.EksClusterName)
}
Expand Down

0 comments on commit 5648747

Please sign in to comment.