mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 01:16:55 +00:00
17 lines
No EOL
394 B
YAML
17 lines
No EOL
394 B
YAML
apiVersion : kyverno.io/v1alpha1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: validate-disallow-automoutingapicred
|
|
spec:
|
|
rules:
|
|
- name: disallow-automoutingapicred
|
|
match:
|
|
resources:
|
|
kinds:
|
|
- Pod
|
|
validate:
|
|
message: "Deny automounting API credentials"
|
|
pattern:
|
|
spec:
|
|
=(serviceAccountName): "*"
|
|
automountServiceAccountToken: false |