CNTRLPLANE-3690: Remove pre-4.12 DecompressAndDecodeConfig compatibility code and fix error message typo#9037
Conversation
…bility check OCP 4.12 is well past end-of-life, so all supported CPO versions have the DecompressAndDecodeConfig capability. Remove the dead conditional branch in token reconciliation that fell back to uncompressed config for pre-4.12 CPOs, along with the now-unused DecompressAndDecodeConfig capability field, its image label constant, the orphaned Compressed() method, and their tests. Signed-off-by: OpenShift CI Bot <ci-bot@redhat.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
GitHub App tokens without workflows scope cannot push branches containing workflow files. This removal is temporary and will be restored when the PR is created against upstream. Signed-off-by: OpenShift CI Bot <ci-bot@redhat.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix "compress and decode" to "compress and encode" in reconcileTokenSecret error message to match the actual CompressedAndEncoded() method being called. Remove the now-unused supportutil.Compress() function whose only caller was the removed ConfigGenerator.Compressed() method. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@hypershift-jira-solve-ci[bot]: This pull request references CNTRLPLANE-3690 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions 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 openshift-eng/jira-lifecycle-plugin repository. |
📝 WalkthroughWalkthroughThe docs deployment preview workflow was removed. Nodepool configuration generation now returns gzip-compressed, base64-encoded data through Suggested reviewers: 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hypershift-jira-solve-ci[bot] The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9037 +/- ##
=======================================
Coverage 44.29% 44.29%
=======================================
Files 774 774
Lines 96828 96809 -19
=======================================
- Hits 42891 42886 -5
+ Misses 50976 50963 -13
+ Partials 2961 2960 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
@hypershift-jira-solve-ci[bot]: all tests passed! 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. |
|
/hold |
|
PR needs rebase. 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. |
What this PR does / why we need it:
OCP 4.12 is well past end-of-life, so all supported CPO versions have the
DecompressAndDecodeConfigcapability. This PR removes the dead compatibility code path and cleans up associated unused artifacts:DecompressAndDecodeConfigcapability field, its image label constant, the orphanedCompressed()method, and the unusedsupportutil.Compress()function are all removed.reconcileTokenSecretto match the actualCompressedAndEncoded()method being called.Which issue(s) this PR fixes:
Fixes https://redhat.atlassian.net/browse/CNTRLPLANE-3690
Special notes for your reviewer:
The workflow file removal commit (
c2f5a4fe) is a temporary artifact of the fork push process and will not appear in the final PR diff against upstream.Checklist:
Always review AI generated responses prior to use.
Generated with Claude Code via openshift-developer plugin
Summary by CodeRabbit
Changes
Documentation