Skip to content

[guide] docs: drop dead dashboard.snapshot_dir from hive.yaml.example and 4 deploy templates - #6193

Merged
kubestellar-prow[bot] merged 1 commit into
v4from
guide/docs-snapshot-dir
Sep 8, 2026
Merged

[guide] docs: drop dead dashboard.snapshot_dir from hive.yaml.example and 4 deploy templates#6193
kubestellar-prow[bot] merged 1 commit into
v4from
guide/docs-snapshot-dir

Conversation

@kubestellar-hive

Copy link
Copy Markdown
Contributor

Documentation Fix

Removes the dashboard.snapshot_dir: /data/snapshots row from the five shipped config templates:

  • src/hive.yaml.example (line 492)
  • src/deploy/hive.yaml
  • src/deploy/architect-only.yaml
  • src/deploy/hive-level2-knuckle.yaml
  • src/deploy/hive-level3-knuckle.yaml

The key is parsed into DashboardConfig.SnapshotDir (src/pkg/config/config.go:3743) but never read anywhere in src/: nous baseline snapshots hardcode /data/nous/snapshots (src/cmd/hive/main.go:9207), and the public /snapshot page is driven by hub.auto_snapshot, not a directory setting. Operators setting this knob change nothing, and its position next to snapshot_frame_ancestors implies it controls /snapshot.

Deliberately not touched here (code — architect follow-up per the issue): the dead Go struct field, the config_test.go:60 fixture line, and the heredoc row in bin/hive-setup.sh.

Includes changelog.d/fixed-6192-dead-snapshot-dir.md.

Refs #6192 (docs/templates half only; issue stays open for the code-side field removal)


Filed by guide agent (ACMM L5 — hold-gated mode). Hold-gated: human review required.

— hive: agent=guide backend=copilot model=claude-sonnet-4-6

dashboard.snapshot_dir is parsed (config.go:3743) but read nowhere: nous
snapshots hardcode /data/nous/snapshots and /snapshot is driven by
hub.auto_snapshot. Remove the misleading row from hive.yaml.example and
the four deploy templates so operators stop tuning a no-op knob.

Refs #6192

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: sec-check <sec-check@hive.kubestellar.io>
@kubestellar-hive kubestellar-hive Bot added the hold label Sep 7, 2026
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Sep 7, 2026
@kubestellar-prow kubestellar-prow Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 7, 2026
@clubanderson clubanderson added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed hold labels Sep 8, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow
kubestellar-prow Bot merged commit fddd9e2 into v4 Sep 8, 2026
58 of 62 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the guide/docs-snapshot-dir branch September 8, 2026 13:37
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

We'd love to hear how your experience was: share feedback

clubanderson added a commit that referenced this pull request Sep 8, 2026
dashboard.snapshot_dir was parsed into DashboardConfig.SnapshotDir but
never read: nous baseline snapshots hardcode /data/nous/snapshots and
the public /snapshot page is driven by hub.auto_snapshot. #6193 dropped
the row from hive.yaml.example and the four src/deploy templates; this
removes the last template line from bin/hive-setup.sh, deletes the
unused Go field, and drops the config_test.go fixture line.

The config loader uses plain yaml.Unmarshal (no KnownFields/strict
mode), so existing hive.yaml files that still set the key continue to
load unchanged.

Fixes #6192

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
clubanderson added a commit that referenced this pull request Sep 8, 2026
dashboard.snapshot_dir was parsed into DashboardConfig.SnapshotDir but
never read: nous baseline snapshots hardcode /data/nous/snapshots and
the public /snapshot page is driven by hub.auto_snapshot. #6193 dropped
the row from hive.yaml.example and the four src/deploy templates; this
removes the last template line from bin/hive-setup.sh, deletes the
unused Go field, and drops the config_test.go fixture line.

The config loader uses plain yaml.Unmarshal (no KnownFields/strict
mode), so existing hive.yaml files that still set the key continue to
load unchanged.

Fixes #6192

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
kubestellar-prow Bot pushed a commit that referenced this pull request Sep 8, 2026
dashboard.snapshot_dir was parsed into DashboardConfig.SnapshotDir but
never read: nous baseline snapshots hardcode /data/nous/snapshots and
the public /snapshot page is driven by hub.auto_snapshot. #6193 dropped
the row from hive.yaml.example and the four src/deploy templates; this
removes the last template line from bin/hive-setup.sh, deletes the
unused Go field, and drops the config_test.go fixture line.

The config loader uses plain yaml.Unmarshal (no KnownFields/strict
mode), so existing hive.yaml files that still set the key continue to
load unchanged.

Fixes #6192

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
kubestellar-hive Bot added a commit that referenced this pull request Sep 8, 2026
…6193)

dashboard.snapshot_dir is parsed (config.go:3743) but read nowhere: nous
snapshots hardcode /data/nous/snapshots and /snapshot is driven by
hub.auto_snapshot. Remove the misleading row from hive.yaml.example and
the four deploy templates so operators stop tuning a no-op knob.

Refs #6192

Signed-off-by: sec-check <sec-check@hive.kubestellar.io>
Co-authored-by: sec-check <sec-check@hive.kubestellar.io>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: sec-check <sec-check@hive.kubestellar.io>
kubestellar-hive Bot pushed a commit that referenced this pull request Sep 8, 2026
dashboard.snapshot_dir was parsed into DashboardConfig.SnapshotDir but
never read: nous baseline snapshots hardcode /data/nous/snapshots and
the public /snapshot page is driven by hub.auto_snapshot. #6193 dropped
the row from hive.yaml.example and the four src/deploy templates; this
removes the last template line from bin/hive-setup.sh, deletes the
unused Go field, and drops the config_test.go fixture line.

The config loader uses plain yaml.Unmarshal (no KnownFields/strict
mode), so existing hive.yaml files that still set the key continue to
load unchanged.

Fixes #6192

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: sec-check <sec-check@hive.kubestellar.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. copilot dco-signoff: yes Indicates the PR's author has signed the DCO. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant