-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix error output #636
fix error output #636
Conversation
✅ Deploy Preview for kubernetes-sigs-jobset canceled.
|
@@ -54,7 +54,7 @@ func (p *podWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (ad | |||
return nil, fmt.Errorf("follower pod node selector not set") | |||
} | |||
if _, exists := pod.Spec.NodeSelector[topologyKey]; !exists { | |||
return nil, fmt.Errorf("follower pod node selector not set") | |||
return nil, fmt.Errorf("follower pod node selector not found topology label: %s", topologyKey) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return nil, fmt.Errorf("follower pod node selector not found topology label: %s", topologyKey) | |
return nil, fmt.Errorf("follower pod node selector for topology domain not found. missing selector: %s", topologyKey) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
ef6d96d
to
f711b2a
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielvegamyhre, googs1025 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes # None
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?