ServiceAccounts grant Kubernetes API permissions to workloads. To use a non-default ServiceAccount, the serviceAccountName field property should be set. This validator detects when there is no ServiceAccount explicitly set on a workload.
Affected Resources: Deployment, DaemonSet, StatefulSet, CronJob, Job, ReplicaSet, Pod
kind: Deployment
spec:
template:
spec:
# serviceAccountName: # field not set
...
Please let us know if there are other built-in validation rules you would like to see in Kubevious to detect misconfigurations and violations to best practices. Optionally, you can provide your details so we can reach out to you with follow-up questions.