Alert message improved according to standards

Signed-off-by: twelcon <mastermind12210@gmail.com>
This commit is contained in:
twelcon
2023-07-10 17:13:35 +05:30
parent 9d4b489107
commit 70f979c8da
2 changed files with 79 additions and 56 deletions

View File

@@ -3070,7 +3070,7 @@ func validateResizePolicy(policyList []core.ContainerResizePolicy, fldPath *fiel
}
if *podRestartPolicy == core.RestartPolicyNever && p.RestartPolicy != core.NotRequired {
allErrors = append(allErrors, field.Invalid(fldPath, p.RestartPolicy, "Only NotRequired is allowed, if pod restartPolicy is Never"))
allErrors = append(allErrors, field.Invalid(fldPath, p.RestartPolicy, "must be 'NotRequired' when `restartPolicy` is 'Never'"))
}
}
return allErrors