Skip to content

Commit

Permalink
pod: Update error message
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <[email protected]>
  • Loading branch information
gaocegege committed Jun 13, 2018
1 parent 6c77fca commit 12750ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller.v2/controller_pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (tc *TFJobController) createNewPod(tfjob *tfv1alpha2.TFJob, rt, index strin
// Submit a warning event if the user specifies restart policy for
// the pod template. We recommend to set it from the replica level.
if podTemplate.Spec.RestartPolicy != v1.RestartPolicy("") {
errMsg := "Restart policy in pod template may be override by restart policy in replica spec"
errMsg := "Restart policy in pod template will be overwritten by restart policy in replica spec"
loggerForReplica(tfjob, rt).Warning(errMsg)
tc.recorder.Event(tfjob, v1.EventTypeWarning, podTemplateRestartPolicyReason, errMsg)
}
Expand Down

0 comments on commit 12750ba

Please sign in to comment.