apiVersion: "helm-expt.confighub.com/v1alpha1"
kind: "VariantPromotionReceipt"
metadata:
  name: "metrics-server-default-variant-promotion-20260527"
spec:
  observedAt: "2026-05-27"
  context:
    organization: "Kubara"
    server: "https://hub.confighub.com"
    cubClientVersion: "Version:    dev"
    cubServerVersion: "v0.1.79"
  subject:
    chart: "metrics-server/metrics-server"
    chartVersion: "3.13.0"
    packagePath: "packages/metrics-server/metrics-server/3.13.0"
    variant: "default"
    upstreamSpace: "helm-metrics-server-confighub-proof"
    downstreamSpace: "MetricsServer-staging"
  commands:
    upstreamUpdate: "cub unit update deployment-kube-system-metrics-server runs/metrics-server-confighub-proof/latest/logs/27-promotion-upstream-patched.yaml --space helm-metrics-server-confighub-proof --change-desc ..."
    upstreamAddUnit: "cub unit create promotion-marker-metrics-server-default runs/metrics-server-confighub-proof/latest/logs/29-promotion-marker-configmap.yaml --space helm-metrics-server-confighub-proof --allow-exists"
    dryRun: "cub variant promote MetricsServer-staging --dry-run -o mutations"
    changeset: "cub changeset create metrics-server-default-variant-promote-20260527 --space MetricsServer-staging --description ... --allow-exists"
    promote: "cub variant promote MetricsServer-staging --changeset MetricsServer-staging/metrics-server-default-variant-promote-20260527 --change-desc ..."
    fallbackPromote: "cub variant promote MetricsServer-staging --change-desc ..."
  upstreamChange:
    changedUnit: "deployment-kube-system-metrics-server"
    beforeHeadRevisionNum: 2
    afterHeadRevisionNum: 3
    annotation: "helm-expt.confighub.com/promotion-proof=metrics-server-default-promotion-20260527"
    updateResult: "pass"
  upstreamAddition:
    markerUnit: "promotion-marker-metrics-server-default"
    upstreamUnitID: "e962fe82-5570-44f5-9c74-8b28b00a01f3"
    result: "pass"
    proofOnly: true
  preview:
    result: "pass"
    output: "  + promotion-marker-metrics-server-default"
  changeset:
    slug: "metrics-server-default-variant-promote-20260527"
    result: "pass"
    output: "Successfully created changeset metrics-server-default-variant-promote-20260527 (71d929c0-5161-4156-a00f-bc9e070bb192)"
  promote:
    result: "fail"
    output: "Upgrading units behind their upstream...\nAwaiting triggers...\nSuccessfully upgraded unit: deployment-kube-system-metrics-server\nBulk upgrade operation completed:\n  Success: 1 unit(s)\nAdding 1 unit(s) from upstream"
  fallbackPromote:
    used: true
    result: "pass"
    output: "Upgrading units behind their upstream...\nBulk upgrade operation completed:\n  Success: 0 unit(s)\nAdding 1 unit(s) from upstream\nAwaiting triggers...\nSuccessfully created unit: promotion-marker-metrics-server-default\nBulk create operation completed:\n  Success: 1 unit(s)\nCopying links from the added units..."
  assertions:
    changedUnitCaughtUp: "pass"
    upstreamHeadRevisionNum: 3
    downstreamUpstreamRevisionNumBefore: 2
    downstreamUpstreamRevisionNumAfter: 3
    addedUnitCloned: "pass"
    addedUnitSlug: "promotion-marker-metrics-server-default"
    addedUnitDownstreamUpstreamUnitID: "e962fe82-5570-44f5-9c74-8b28b00a01f3"
    deletionHandling: "not-tested"
    fieldOwnership: "not-tested"
  result: "watch"
  reason: "server-side promotion mechanics passed, but changeset-bound promote failed and required the no-changeset fallback"
  limitations:
    - "This receipt proves ConfigHub server-side promotion mechanics for changed Units and newly added Units."
    - "The changeset-bound promote path failed in this run; the no-changeset promote path was used to prove the server-side promotion mechanics."
    - "It does not prove deletion handling, field ownership conflict handling, target apply, GitOps sync, or Kubernetes workload convergence."
    - "The added ConfigMap is proof-only and is not part of the Helm chart's rendered object set."
