Skip to main content

no-missing-service-account

Rec
Enabled in recommended preset.
All
Disabled when components are given in CLI.

Disallow missing ServiceAccount references.

This rule ensures that all ServiceAccount references are defined by checking if the corresponding manifests are present or not.

The default service account in every namespace is always allowed.

Configuration​

allow​

Allow ServiceAccount references that match the patterns to be missing.

Examples​

Allow a specific namespace and name.

allow = [{ namespace = "foo", name = "bar" }]

Allow all names in a specific namespace.

allow = [{ namespace = "foo", name = "*" }]