Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[plugin-chart-test] Improve Helm Test Cleanup and Logging #589

Open
3 tasks
ibakshay opened this issue Jan 23, 2025 · 0 comments
Open
3 tasks

[plugin-chart-test] Improve Helm Test Cleanup and Logging #589

ibakshay opened this issue Jan 23, 2025 · 0 comments
Assignees

Comments

@ibakshay
Copy link
Contributor

ibakshay commented Jan 23, 2025

Priority

None

Is your feature request related to a problem?

Currently, when a Helm chart test fails:

  1. Resources created by the test are not immediately cleaned up, leaving debris in the cluster
  2. Logs from the test pod are not added to the plugin resource status field. This forces users to manually run helm test in remote clusters to debug test failures, leading to delays in troubleshooting.

Acceptance Criteria

  • Test Pod Logs in Plugin CR Status Field:

    • Logs from the Helm test pod are captured upon test completion and appended to the status field of the plugin custom resource (CR).
    • Logs are concise, well-formatted, and user-friendly for quick debugging.
    • Users can view the test logs directly in the plugin CR status without manually interacting with the cluster.
  • Resource Cleanup:

    • All resources created during a Helm test are cleaned up immediately, regardless of whether the test passes or fails.
    • The test cluster is left in a clean state after every test run, with no orphaned resources or debris.
    • Cleanup logic addresses ConfigMaps, Pods, RBAC permissions, and any other resources created during tests.
  • Update Documentation

    • documentation is updated accordingly

Additional context.

No response

Reference Issues

Depends on cloudoperators/greenhouse#585

@ibakshay ibakshay self-assigned this Jan 23, 2025
@ibakshay ibakshay moved this from No status to Backlog in Observability Roadmap Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant