require-container-image
Rec
Enabled in recommended preset.Require container images to be specified.
Examples
✅ Correct manifest for this rule:
new Pod({
spec: {
containers: [{ name: "nginx", image: "nginx" }]
}
});
❌ Incorrect manifest for this rule:
new Pod({
spec: {
containers: [{ name: "nginx" }]
}
});
new Pod({
spec: {
containers: [{ name: "nginx", image: "" }]
}
});