From the Kubernetes docs:
"Only a .spec.template.spec.restartPolicy equal to Always is allowed, which is the default if not specified."
Therefore, restartPolicy values like OnFailure or Never will be invalid and will not be applied as the user expect them to.
Targeted resources by this rule (types of kind): Deployment / Pod / DaemonSet / ReplicaSet / ReplicationController
Enabled by default? True
Policy as code identifier: WORKLOAD_INCORRECT_RESTARTPOLICY_VALUE_ALWAYS
If restartPolicy is set with any value other than Always
Set restartPolicy to Always or don't include restartPolicy key at all