CM-1038: Replace istiocsr type-specific decoders with generic DecodeObjBytes#418
CM-1038: Replace istiocsr type-specific decoders with generic DecodeObjBytes#418sebrandon1 wants to merge 1 commit into
Conversation
|
@sebrandon1: This pull request references CM-1038 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (4)
WalkthroughReplaces many bespoke decode helpers with a single generic ChangesDecoding Consolidation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sebrandon1 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 |
…bjBytes Remove 8 type-specific decode*ObjBytes functions from the istiocsr package and replace all call sites with the existing generic common.DecodeObjBytes[T] helper, matching the pattern already used by the trustmanager package. Cache the ServiceAccount name at init time to avoid redundant YAML deserialization on every reconcile cycle.
b622911 to
ee01305
Compare
|
@sebrandon1: The following test 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. |
Summary
decode*ObjBytesfunctions from the istiocsr package (~95 lines) and replace all 22 call sites with the existing genericcommon.DecodeObjBytes[T]helperTest plan
go test ./pkg/controller/istiocsr/...)go build ./pkg/controller/istiocsr/)Jira: https://redhat.atlassian.net/browse/CM-1038
Summary by CodeRabbit