mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-08-23 22:26:34 +00:00
* fix rbac checks * fix sensitive env var check * add test case * fix service account check * fix comment --------- Co-authored-by: Andrew Suderman <andy@fairwinds.com>
36 lines
959 B
YAML
36 lines
959 B
YAML
successMessage: The ServiceAccount will not be automounted
|
|
failureMessage: The ServiceAccount will be automounted
|
|
category: Security
|
|
target: PodSpec
|
|
schema:
|
|
'$schema': http://json-schema.org/draft-07/schema
|
|
type: object
|
|
properties:
|
|
serviceAccountName:
|
|
type: string
|
|
automountServiceAccountToken:
|
|
type: boolean
|
|
not:
|
|
const: true
|
|
additionalSchemaStrings:
|
|
ServiceAccount: |
|
|
{{ if not (eq .Polaris.PodSpec.automountServiceAccountToken false) }}
|
|
type: object
|
|
required:
|
|
- metadata
|
|
- automountServiceAccountToken
|
|
properties:
|
|
metadata:
|
|
type: object
|
|
required: ["name"]
|
|
properties:
|
|
name:
|
|
type: string
|
|
const: "{{ .Polaris.PodSpec.serviceAccountName }}"
|
|
{{ if not (eq .Polaris.PodSpec.automountServiceAccountToken false) }}
|
|
automountServiceAccountToken:
|
|
type: boolean
|
|
const: false
|
|
{{ end }}
|
|
{{ end }}
|