Skip to content

Conversation

@skattoju
Copy link

@skattoju skattoju commented Mar 31, 2025

Adding a check to verify that the helm charts were tested on a cluster that is not end of life. The Red Hat Product Lifecycle Data API is used to get information on the versions that are end of life.

Fixes #474

@skattoju skattoju marked this pull request as ready for review April 8, 2025 17:31
skattoju and others added 5 commits August 14, 2025 15:33
The ClusterIsNotEOL check requires Kubernetes API access, but integration
tests run without a real cluster. Added the EOL check to the disabled
checks list in tests that already disable ChartTesting and ImagesAreCertified.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
All functional tests were failing due to a mismatch between the expected
profile version (v1.3) in test report files and the actual profile version
(v1.4) generated by the current codebase.

Updated all test report expectation files to use profile version v1.4:
- tests/charts/psql-service/*/partner-report-info.json
- tests/charts/psql-service/*/redhat-report-info.json
- tests/charts/psql-service/*/community-report-info.json

The EOL check functionality is working correctly - this was purely a test
data synchronization issue.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
func (*LifecycleData) GetLifecycleStatus(clusterVersion string) (string, error) {
// Get lifecycle data
requestURL := fmt.Sprintf("https://%s?name=%s", ApiEndpoint, url.QueryEscape(SearchString))
res, err := http.Get(requestURL)

Check failure

Code scanning / gosec

Potential HTTP request made with variable url Error

Potential HTTP request made with variable url
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.

Add EOL check for the cluster used for testing a chart (e.g. testedOpenShiftversion)

1 participant