kpng icon indicating copy to clipboard operation
kpng copied to clipboard

[understandability] make nft/ and iptables/ packages more similar

Open jayunit100 opened this issue 2 years ago • 4 comments

Both NFT And IPTAbles import the localsink package, of course, but the import different structs from it. To make it clear where their architecture is similar lets

  • move the logic of iptables sink.go into register.go OR
  • make the register.go in nft separated out into sink.go for the part that imports the "sigs.k8s.io/kpng/client/localsink/fullstate"
  • make it so the different Sink implementations are easy to reason about
  • Add logging to the OpItem and Send functions (these run on the backends... but they are called from the brain)

jayunit100 avatar Aug 19 '22 13:08 jayunit100

@jayunit100: This request has been marked as suitable for new contributors.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-good-first-issue command.

In response to this:

Both NFT And IPTAbles import the localsink package, of course, but the import different structs from it. To make it clear where their architecture is similar lets

  • move the logic of iptables sink.go into register.go OR
  • make the register.go in nft separated out into sink.go for the part that imports the "sigs.k8s.io/kpng/client/localsink/fullstate"

/good-first-issue

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 kubernetes/test-infra repository.

k8s-ci-robot avatar Aug 19 '22 13:08 k8s-ci-robot

this is not really a good first issue :) i think ill do it

jayunit100 avatar Aug 21 '22 11:08 jayunit100

/assign

jayunit100 avatar Aug 21 '22 11:08 jayunit100

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Feb 07 '23 23:02 k8s-triage-robot