Skip to content

Corrected the logs and added text script#110

Merged
kupratyu-splunk merged 6 commits into
mainfrom
make_customers_exp_better
Jun 16, 2026
Merged

Corrected the logs and added text script#110
kupratyu-splunk merged 6 commits into
mainfrom
make_customers_exp_better

Conversation

@kupratyu-splunk

Copy link
Copy Markdown
Collaborator

Description

Related Issues

  • Related to #

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test improvement
  • CI/CD improvement
  • Chore (dependency updates, etc.)

Changes Made

Testing Performed

  • Unit tests pass (make test)
  • Linting passes (make lint)
  • Integration tests pass (if applicable)
  • E2E tests pass (if applicable)
  • Manual testing performed

Test Environment

  • Kubernetes Version:
  • Cloud Provider:
  • Deployment Method:

Test Steps

Documentation

  • Updated inline code comments
  • Updated README.md (if adding features)
  • Updated API documentation
  • Updated deployment guides
  • Updated CHANGELOG.md
  • No documentation needed

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published
  • I have updated the Helm chart version (if applicable)
  • I have updated CRD schemas (if applicable)

Breaking Changes

Impact:

Migration Path:

Screenshots/Recordings

Additional Notes

Reviewer Notes

Please pay special attention to:


Commit Message Convention: This PR follows Conventional Commits

kupratyu-splunk and others added 4 commits June 16, 2026 09:03
K0S_QUICKSTART.md was removed during doc consolidation. Replace with
DEPLOYMENT_GUIDE.md and TROUBLESHOOTING.md which are the current docs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…th summary

The post-install banner was listing PodInitializing workers alongside actual
failures (e.g. ImagePullBackOff on the head pod), making it hard to identify
what to fix. Now root-cause pods and downstream initializing pods are printed
in separate sections with a clear tip to fix root causes first.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When there are no root-cause pods (e.g. head pod recovered but workers
still initializing), the tip no longer says "waiting on root-cause pod(s)
above" where there is nothing above. Instead shows "still starting up —
re-run verifier in a few minutes".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…unctions

Covers build_image_url, object_store_auth_looks_like_placeholder,
_pod_is_healthy, _classify_pod_failure, and _print_unhealthy_pod_summary
(4 scenarios including mixed root-cause/PodInitializing, only-initializing,
only-root-cause multi-namespace, and truncation). No cluster or network needed.

Run: ./tools/cluster_setup/test_k0s_cluster_with_stack.sh [-v] [filter]

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the k0s cluster setup tooling to produce a more actionable “unhealthy pods” banner summary (separating root-cause failures from downstream initializing pods), refreshes the documentation links printed in the post-install output, and adds a lightweight bash-based unit test script for the script’s pure-logic helper functions.

Changes:

  • Improve _print_unhealthy_pod_summary output by separating root-cause pods from downstream PodInitializing pods and adjusting banner tips accordingly.
  • Update show_platform_access_info documentation links to point to the deployment and troubleshooting guides.
  • Add tools/cluster_setup/test_k0s_cluster_with_stack.sh with unit tests for selected pure-logic functions.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
tools/cluster_setup/k0s_cluster_with_stack.sh Refines unhealthy-pod summary output and updates documentation links in the banner.
tools/cluster_setup/test_k0s_cluster_with_stack.sh Adds a bash unit-test harness for pure-logic helpers used by the cluster setup script.

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

Comment thread tools/cluster_setup/test_k0s_cluster_with_stack.sh Outdated
Comment thread tools/cluster_setup/test_k0s_cluster_with_stack.sh Outdated
Comment thread tools/cluster_setup/k0s_cluster_with_stack.sh Outdated
Comment thread tools/cluster_setup/k0s_cluster_with_stack.sh Outdated
Comment thread tools/cluster_setup/k0s_cluster_with_stack.sh Outdated
k0s_cluster_with_stack.sh:
- Remove no-op total=$(( total )) assignment
- Restore max_per_ns named variable in _print_pod_section
- Move _print_pod_section to a top-level helper (was re-defined as a
  global on every call to _print_unhealthy_pod_summary)

test_k0s_cluster_with_stack.sh:
- Drop set -e (grep -c returns exit 1 on zero matches, causing early exit)
- Add || true to all grep -c expressions to make them non-fatal
- Extract functions by name via _extract_fn() instead of brittle hard-coded
  line ranges; robust to unrelated edits shifting line numbers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread tools/cluster_setup/k0s_cluster_with_stack.sh
Comment thread tools/cluster_setup/k0s_cluster_with_stack.sh
…local

- Output format comment now shows the root-cause / still-initializing
  section headers instead of the old single-section format
- Remove unused unhealthy_lines local (superseded by root_cause_lines
  and downstream_lines)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kupratyu-splunk kupratyu-splunk merged commit 24bd088 into main Jun 16, 2026
10 checks passed
@kupratyu-splunk kupratyu-splunk deleted the make_customers_exp_better branch June 16, 2026 04:32
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.

3 participants