Skip to content

SUS-1704: Support bundle size guard (edge only)#36

Open
ramganesh-spectro wants to merge 1 commit into
mainfrom
SUS-1704/edge-bundle-size-guard
Open

SUS-1704: Support bundle size guard (edge only)#36
ramganesh-spectro wants to merge 1 commit into
mainfrom
SUS-1704/edge-bundle-size-guard

Conversation

@ramganesh-spectro

Copy link
Copy Markdown
Contributor

Summary

Bounds support-bundle-edge.sh collection on chatty edge nodes.
Replaces kubectl cluster-info dump with explicit Kubernetes resource and
current pod-log collection.

Scope: support-bundle-edge.sh only. support-bundle-infra.sh follows
in a separate PR.

What changed

  • Caps journalctl, crictl, and current/previous kubectl logs at
    500,000 lines by default. -l remains tunable and now applies even
    when journal time filters are set.
  • Caps eligible /var/log, /var/log/spectrocloud, and /var/log/pods
    files at 500 MiB by default. -m <MiB> overrides the CLI cap;
    MAX_FILE_BYTES remains a byte-level environment override.
    Skipped files are recorded in collection-warnings.txt.
  • Uses tar --sparse when available to avoid sparse-file archive
    inflation.
  • Removes kubectl cluster-info dump. Resource YAML is collected under
    k8s/cluster-resources/, including replicationcontrollers; current
    pod logs are collected under k8s/pod-logs-current/.

Testing

Paired baseline-versus-after testing passed on a k3s edge cluster
(Kairos v4.0.3, k3s v1.32.13, GNU tar 1.34): line caps, file caps,
manifest format, -m validation/semantics, sparse-tar fallback, retained
text filtering, current pod-log caps, and ReplicaController coverage.

Kubeadm and Canonical Kubernetes were not exercised. The changed helper
and cap logic is distro-agnostic, but one paired run on each remains
recommended before broad rollout.

Ticket

SUS-1704

Caps log lines and per-file bytes with a warnings manifest, replaces cluster-info dump with an explicit resources tree, and preserves sparse files via tar --sparse.
@ramganesh-spectro
ramganesh-spectro requested a review from a team as a code owner July 21, 2026 19:59
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.

1 participant