Skip to content

Log unparsed IR#361

Merged
k8s-ci-robot merged 7 commits intokubernetes-sigs:mainfrom
Stevenjin8:feature/unparsed-ir
Mar 3, 2026
Merged

Log unparsed IR#361
k8s-ci-robot merged 7 commits intokubernetes-sigs:mainfrom
Stevenjin8:feature/unparsed-ir

Conversation

@Stevenjin8
Copy link
Copy Markdown
Contributor

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

cc @kkk777-7

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 23, 2026
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 23, 2026

// Emit converts the provider intermediate representation to Gateway API resources.
func (e *Emitter) Emit(ir emitterir.EmitterIR) (i2gw.GatewayResources, field.ErrorList) {
utils.LogUnparsedErrors(ir, notify)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think about moving this function to ingress2gateway.go around L104?

That way, none of the emitters need to be aware of this function, which helps prevent missing output from some emitters.
But, there’s also the consideration that structurally we’d like to handle emitterIR within the emitter package.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I originally had in mind. I ran into two problems

  1. Emitters output GatewayResources which do not have IR. So for this to work, Emitters would need to output both GatewayResources and emitter IR, which seems a bit awkward
  2. I like the idea that emitters have control over what they output.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it makes sense! thanks

Comment thread pkg/i2gw/emitter_intermediate/intermediate_representation.go
Comment thread pkg/i2gw/emitter_intermediate/intermediate_representation.go
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 2, 2026
@kkk777-7
Copy link
Copy Markdown
Member

kkk777-7 commented Mar 3, 2026

LGTM, thanks!
could you rebase?

@Stevenjin8 Stevenjin8 force-pushed the feature/unparsed-ir branch from 37459ad to 48c0ce8 Compare March 3, 2026 15:44
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 3, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kkk777-7, Stevenjin8

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [Stevenjin8,kkk777-7]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kkk777-7
Copy link
Copy Markdown
Member

kkk777-7 commented Mar 3, 2026

LGTM, thanks!
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 3, 2026
@k8s-ci-robot k8s-ci-robot merged commit 85cd29b into kubernetes-sigs:main Mar 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants