e2e: fix malicious join test (#3439)

This commit is contained in:
Moritz Sanft 2024-10-17 14:45:48 +02:00 committed by GitHub
parent 50df35438e
commit 0453f5b611
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,10 +172,10 @@ func (j *maliciousJoiner) join(ctx context.Context) (*joinproto.IssueJoinTicketR
IsControlPlane: false, IsControlPlane: false,
} }
res, err := protoClient.IssueJoinTicket(ctx, req) res, err := protoClient.IssueJoinTicket(ctx, req)
j.logger.Debug("Got join ticket response", "apiServerEndpoint", res.ApiServerEndpoint, "kubernetesVersion", res.KubernetesVersion)
if err != nil { if err != nil {
return nil, fmt.Errorf("issuing join ticket: %w", err) return nil, fmt.Errorf("issuing join ticket: %w", err)
} }
j.logger.Debug("Got join ticket response", "apiServerEndpoint", res.ApiServerEndpoint, "kubernetesVersion", res.KubernetesVersion)
return res, nil return res, nil
} }