Skip to content

Conversation

@psanghvi17
Copy link
Contributor

Summary

Fixes #
Implements Support Bundle download feature for Epinio UI, allowing administrators to download comprehensive troubleshooting logs from all Epinio components.

Occurred changes and/or fixed issues

New Files Created:

  • dashboard/pkg/epinio/utils/support-bundle.ts - Core utility function for downloading support bundles with comprehensive error handling
  • dashboard/pkg/epinio/pages/c/_cluster/support-bundle.vue - Vue component for the Support Bundle UI page

Modified Files:

  • dashboard/pkg/epinio/routing/epinio-routing.ts - Added route for support bundle page (/:product/c/:cluster/support-bundle)
  • dashboard/pkg/epinio/config/epinio.ts - Added virtual type configuration for Support Bundle navigation item (appears in sidebar under "System" group)
  • dashboard/pkg/epinio/types.ts - Added SUPPORT_BUNDLE type constant
  • dashboard/pkg/epinio/l10n/en-us.yaml - Added all translation keys for Support Bundle feature (title, descriptions, error messages, tooltips, etc.)

Technical notes summary

Architecture:

  • Uses Vue 3 Composition API with TypeScript
  • Follows existing Epinio codebase patterns and conventions
  • Leverages existing utilities (downloadFile from @shell/utils/download)
  • Uses Vuex store for API requests via epinio/request action

Error Handling:

  • Custom SupportBundleError class with error codes for translation support
  • Comprehensive error mapping:
    • 401 - Authentication required
    • 403 - Admin access required
    • 400 - Invalid parameters
    • 500 - Server error
    • Network errors and timeouts
    • Download failures
  • All error messages are internationalized

Areas or cases that should be tested

Functional Testing:

  1. Basic Download Flow:
    • Navigate to Support Bundle page (sidebar → System → Support Bundle, or URL: /epinio/c/<cluster>/support-bundle)
    • Click "Download Support Bundle" with default options
    • Verify file downloads with correct filename format
    • Verify file is a valid tar.gz archive

Areas which could experience regressions

Screenshot/Video

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