---
id: labels-on
name: "Capability: extra labels stamped on every object (ON)"
description: >-
  Renders the product chart with a global extra-label knob set (extraLabels.team=platform, extraLabels.cost-center=42) and asserts every rendered object (all kinds, not just pod templates) carries the configured labels at .metadata.labels. The sample chart does NOT expose an extraLabels/commonLabels knob — this scenario is EXPECTED to FAIL (honest red gap) documenting that the chart lacks global label propagation.
labels: {customer: enterprise, profile: compliance}
cluster:
  provider: kind
  k8s_version: v1.30.0
product:
  chart: ./chart
  release: sample
  namespace: sample
  set:
    ingress.enabled: true
    extraLabels.team: platform
    extraLabels.cost-center: "42"
asserts:
  - type: labels-present
    namespace: sample
    source: rendered
    labels:
      team: platform
      cost-center: "42"
tags: [capability, compliance, curated-live]
category: capability
capability: label-all-objects
tier: capability
mechanisms: ["capability:labels"]
