KA-S007: Missing metadata.name
Error Schema
Why This Matters
Every Kubernetes resource must have a metadata.name field. This is the unique identifier for the resource within its namespace.
How to Fix
Add a metadata.name field to the resource.
Before (incorrect)
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: test After (correct)
apiVersion: v1
kind: ConfigMap
metadata:
name: my-config
labels:
app: test Rule Details
- Rule Code
- KA-S007
- Severity
- Error
- Category
- Schema