bb43d94563
VERIFY: structural — adapter.py:117 nova-tfstate-*; kyverno policy nova:* labels; behavioral — 80 tests PASS + run_ci.sh 3-stage PASS; security — emitted backend no longer points at a non-existent bucket; quality — new test_adapt_emits_nova_state_bucket regression guard. REQ-165 complete. ---ci--- project: acdl phase: 1 milestone: v1.16 status: complete phase_role: execution requirements: covered: [REQ-165] partial: [] ---/ci---
37 lines
998 B
YAML
37 lines
998 B
YAML
apiVersion: kyverno.io/v1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: require-resource-labels
|
|
annotations:
|
|
policies.kyverno.io/title: Require Nova Resource Labels
|
|
policies.kyverno.io/category: Governance
|
|
policies.kyverno.io/severity: medium
|
|
policies.kyverno.io/subject: Pod
|
|
spec:
|
|
validationFailureAction: audit
|
|
background: true
|
|
rules:
|
|
- name: require-nova-owner-label
|
|
match:
|
|
any:
|
|
- resources:
|
|
kinds:
|
|
- Pod
|
|
validate:
|
|
message: "Pods must carry the nova:owner label (Nova tagging standard)."
|
|
pattern:
|
|
metadata:
|
|
labels:
|
|
nova:owner: "?*"
|
|
- name: require-nova-environment-label
|
|
match:
|
|
any:
|
|
- resources:
|
|
kinds:
|
|
- Pod
|
|
validate:
|
|
message: "Pods must carry the nova:environment label (Nova tagging standard)."
|
|
pattern:
|
|
metadata:
|
|
labels:
|
|
nova:environment: "?*" |