fix(ci): use single plugin catalog index pin for Helm and Operator - #5263
Conversation
|
Skipping CI for Draft Pull Request. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5263 +/- ##
==========================================
- Coverage 63.69% 59.96% -3.74%
==========================================
Files 123 111 -12
Lines 2424 2198 -226
Branches 576 527 -49
==========================================
- Hits 1544 1318 -226
- Misses 878 879 +1
+ Partials 2 1 -1
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
/test ? |
|
/test images |
|
/test e2e-aks-operator-nightly |
|
/test e2e-ocp-operator-nightly |
|
/test e2e-aks-operator-nightly |
|
/test e2e-gke-operator-nightly |
PR Summary by QodoCI: centralize plugin catalog index pin via CATALOG_INDEX_IMAGE_OVERRIDE
AI Description
Diagram
High-Level Assessment
Files changed (10)
|
Code Review by Qodo
1.
|
|
Preparing PR labels... |
|
/test e2e-aks-operator-nightly |
|
/test e2e-ocp-helm |
c7a67f7 to
95e20b9
Compare
|
@zdrapela: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/test e2e-ocp-helm |
|
/lgtm |
Until the index on :next is fixed, cluster e2e uses one override for Helm and Operator. Set CATALOG_INDEX_IMAGE_OVERRIDE="" to unpin.
Clearing CATALOG_INDEX_IMAGE_OVERRIDE now uses plugin-catalog-index:${RELEASE_VERSION} instead of leaving the image unset.
Use [[ -z "${VAR+x}" ]] so an empty OVERRIDE from env_override.local.sh is not overwritten by the :1.10 pin and falls through to :${RELEASE_VERSION}.
…n set Keep the :1.10 pin as a documented assignment in env_variables.sh. Only skip filling CATALOG_INDEX_IMAGE when it is already set so Gangway/empty disable still work.
Prow wrappers export CATALOG_INDEX_IMAGE="" when Gangway does not override it, so [[ ! -v ]] skipped the :1.10 pin. Treat empty like unset, matching CHART_VERSION.
A missing line hid the Prow empty-export skip; log the resolved value even when empty.
94b7968 to
982eab5
Compare
|
|
/lgtm |
c118b0c
into
redhat-developer:main
Populate CATALOG_INDEX_IMAGE with a default based on RELEASE_VERSION so CI always uses the correct catalog index without hardcoding. Remove the temporary CATALOG_INDEX_IMAGE_OVERRIDE pin to :1.10 that was added as an interim measure in redhat-developer#5263. Ref: RHIDP-14348 Signed-off-by: Jon Koops <jonkoops@gmail.com>
redhat-developer#5263 made CATALOG_INDEX_IMAGE always set (via CATALOG_INDEX_IMAGE_OVERRIDE falling back to :RELEASE_VERSION), so the chart-value catalog-index pinning is now redundant dead code and a second source of truth. Delete it and consume the shared env contract everywhere: - Remove the CI_* chart-derived catalog block in ocp-disconnected-helm.sh; the index is mirrored from CATALOG_INDEX_IMAGE and re-pinned to the mirrored digest by resolve_catalog_index_image. - mirror.sh additionalImages now mirrors CATALOG_INDEX_IMAGE directly so CI and LOCAL_DISCONNECTED mirror and consume the same index. - Delete disconnected::pin_local_catalog_index_from_chart (local.sh), its CI-safe stub (plugins.sh), its export -f (disconnected.sh) and its call in ocp-disconnected-operator.sh. This also removes the duplicated @sha256 digest-separator normalization the catalog blocks carried (self-review #4/#5/#6); the remaining PG separator block is a single inline caller and stays as-is. Assisted-by: OpenCode
redhat-developer#5263 made CATALOG_INDEX_IMAGE always set (via CATALOG_INDEX_IMAGE_OVERRIDE falling back to :RELEASE_VERSION), so the chart-value catalog-index pinning is now redundant dead code and a second source of truth. Delete it and consume the shared env contract everywhere: - Remove the CI_* chart-derived catalog block in ocp-disconnected-helm.sh; the index is mirrored from CATALOG_INDEX_IMAGE and re-pinned to the mirrored digest by resolve_catalog_index_image. - mirror.sh additionalImages now mirrors CATALOG_INDEX_IMAGE directly so CI and LOCAL_DISCONNECTED mirror and consume the same index. - Delete disconnected::pin_local_catalog_index_from_chart (local.sh), its CI-safe stub (plugins.sh), its export -f (disconnected.sh) and its call in ocp-disconnected-operator.sh. This also removes the duplicated @sha256 digest-separator normalization the catalog blocks carried (self-review #4/#5/#6); the remaining PG separator block is a single inline caller and stays as-is. Assisted-by: OpenCode
redhat-developer#5263 made CATALOG_INDEX_IMAGE always set (via CATALOG_INDEX_IMAGE_OVERRIDE falling back to :RELEASE_VERSION), so the chart-value catalog-index pinning is now redundant dead code and a second source of truth. Delete it and consume the shared env contract everywhere: - Remove the CI_* chart-derived catalog block in ocp-disconnected-helm.sh; the index is mirrored from CATALOG_INDEX_IMAGE and re-pinned to the mirrored digest by resolve_catalog_index_image. - mirror.sh additionalImages now mirrors CATALOG_INDEX_IMAGE directly so CI and LOCAL_DISCONNECTED mirror and consume the same index. - Delete disconnected::pin_local_catalog_index_from_chart (local.sh), its CI-safe stub (plugins.sh), its export -f (disconnected.sh) and its call in ocp-disconnected-operator.sh. This also removes the duplicated @sha256 digest-separator normalization the catalog blocks carried (self-review #4/#5/#6); the remaining PG separator block is a single inline caller and stays as-is. Assisted-by: OpenCode



Description
The plugin catalog index on
:nextis currently broken. Cluster Helm e2e was already avoiding that by pinningglobal.catalogIndexto:1.10in the showcase values files. Operator e2e did not setCATALOG_INDEX_IMAGE, so it kept the product default (:next) and did not get the same pin.This PR moves that pin to a single CI override so both install methods stay in sync:
CATALOG_INDEX_IMAGE_OVERRIDE="quay.io/rhdh/plugin-catalog-index:1.10"in.ci/pipelines/env_variables.shis the pin.CATALOG_INDEX_IMAGE_OVERRIDE=""is the revert; Helm and Operator then use the product:nextdefault again.CATALOG_INDEX_IMAGE(RC/GA/mirror) still wins over the override.CATALOG_INDEX_IMAGEas the image (including K8s jobs).catalogIndex, and Helm paths that were duplicating image--setflags now go throughhelm::get_image_paramsso they honor the same variable.Cluster-free GHA is unchanged: it still resolves
:next/:<x.y>as a live index check, not this cluster pin.This PR incorporates changes proposed in #5122
Which issue(s) does this PR fix
https://redhat.atlassian.net/browse/RHDHBUGS-3658