I'm seeing the following error when trying to specify runAsUser on a podTemplate:
podTemplate( label: podLabel, containers: containers, volumes: volumes, idleMinutes: idleMinutes, runAsUser: 928
error:
09:48:24 [Pipeline] podTemplate 09:48:24 WARNING: Unknown parameter(s) found for class type 'org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStep': runAsUser
This is happening for me too.
Jenkins Version: 2.190.2
Kubernetes Plugin: 1.21.0
WARNING: Unknown parameter(s) found for class type 'org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStep': runAsGroup,runAsUser
This was fixed in https://github.com/jenkinsci/kubernetes-plugin/pull/643