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. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
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 (7)
WalkthroughReplaces bespoke embedded-manifest decode helpers with ChangesIstioCSR Decoding Consolidation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 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 |
b622911 to
ee01305
Compare
|
/retest |
ee01305 to
b251d62
Compare
|
/retest |
b251d62 to
0132362
Compare
…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.
0132362 to
de5454a
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