Skip to content

🐛 fix(demo): object-form InventorySinkRef in hero samples - #257

Merged
konih merged 1 commit into
mainfrom
fix/demo-sinkref-object
Aug 4, 2026
Merged

konih merged 1 commit into
mainfrom
fix/demo-sinkref-object

Conversation

@konih

@konih konih commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Hero git-only / git-postgres samples still used string sink refs
  • CRD requires { name: ... }; admission rejected demo-inventory during GIF bootstrap

Test plan

  • Contract test locks object form
  • Local apply + Ready after merge

CRD items are objects with required name; string refs fail admission
and blocked demo-up / GIF recording.
Copilot AI lite review requested due to automatic review settings August 4, 2026 21:55
@konih
konih merged commit 72b2451 into main Aug 4, 2026
@konih
konih deleted the fix/demo-sinkref-object branch August 4, 2026 21:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the hero demo YAML manifests and sample inventories to use the CRD-required object form for sink references (e.g., - name: ...) to avoid admission rejections during demo bootstrap.

Changes:

  • Convert hero demo snapshotSinkRefs from string items to object items ({ name: ... }).
  • Convert demo sample inventories (git-only, git-postgres) sink ref lists to object form.
  • Add a smoke-test assertion to prevent regressions for the demo inventory sink ref shape.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
hack/test/demo_03_hero_smoke_test.sh Adds a smoke-test guard asserting object-shaped sink refs in demo inventory YAML.
hack/demo/hero/kollect-demo.yaml Updates hero demo inventory snapshotSinkRefs entries to object form.
config/samples/demo/git-postgres/inventory.yaml Updates databaseSinkRefs sample to object form.
config/samples/demo/git-only/inventory.yaml Updates snapshotSinkRefs sample to object form.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +175 to +182
# InventorySinkRef is object-shaped (name required) — string form fails admission.
INV_SAMPLE="${ROOT}/config/samples/demo/git-only/inventory.yaml"
[[ -f "${INV_SAMPLE}" ]] || fail "missing ${INV_SAMPLE}"
grep -Eq 'snapshotSinkRefs:[[:space:]]*$' "${INV_SAMPLE}" ||
fail "git-only inventory must declare snapshotSinkRefs"
grep -Eq '^[[:space:]]*-[[:space:]]*name:[[:space:]]*hero-git-sink[[:space:]]*$' "${INV_SAMPLE}" ||
fail "git-only inventory snapshotSinkRefs must use object form (- name: hero-git-sink)"
pass "demo inventory uses InventorySinkRef object form"
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

sonarqubecloud Bot commented Aug 4, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants