Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require nft v1.0.1 or later #4

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

danwinship
Copy link
Collaborator

Part of fixing kubernetes/kubernetes#122743

/assign @uablrek
(though it's not autocompleting so I guess you're probably not a member of the kubernetes-sigs org so it won't actually assign you... and maybe you won't be able to /lgtm either?)

@k8s-ci-robot
Copy link
Contributor

@danwinship: GitHub didn't allow me to assign the following users: uablrek.

Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

Part of fixing kubernetes/kubernetes#122743

/assign @uablrek
(though it's not autocompleting so I guess you're probably not a member of the kubernetes-sigs org so it won't actually assign you... and maybe you won't be able to /lgtm either?)

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 k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 27, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danwinship

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

The pull request process is described here

Needs approval from an approver in each of these files:

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

@k8s-ci-robot k8s-ci-robot requested a review from aojea January 27, 2024 16:09
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 27, 2024
nftables.go Show resolved Hide resolved
@uablrek
Copy link

uablrek commented Jan 29, 2024

Beside the comment above this lgtm.

I tested to build kube-proxy with this PR just to see what happens. Log (--v=7):

E0129 08:57:36.705131     376 server.go:558] "Error running ProxyServer" err="unable to create proxier: unable to create ipv4 proxier: nft version must be v1.0.1 or later (got nftables v1.0.0 (Fearless Fosdick #2))"
E0129 08:57:36.705212     376 run.go:74] "command failed" err="unable to create proxier: unable to create ipv4 proxier: nft version must be v1.0.1 or later (got nftables v1.0.0 (Fearless Fosdick #2))"

K8s "make" doesn't work with go workspaces, so this is how I built:

cd $GOPATH/src/k8s.io/kubernetes
go work init .
go work use $GOPATH/src/github.com/kubernetes-sigs/knftables
go build -o _output/bin/kube-proxy ./cmd/kube-proxy
strip _output/bin/kube-proxy

Is there a better way?

@uablrek
Copy link

uablrek commented Jan 29, 2024

Can I become a member of the kubernetes-sigs org? If so, how? (I didn't find any instruction with google, and no "community" repo)

@aroradaman
Copy link
Member

aroradaman commented Jan 29, 2024

Can I become a member of the Kubernetes-sigs org? If so, how? (I didn't find any instruction with google, and no "community" repo)

You can directly raise a PR in k/org as you are already a member of the Kubernetes org.

@danwinship
Copy link
Collaborator Author

the comment for this function above doesn't make sense:

clarified

Is there a better way?

For quick testing I would have just copied the updated code into vendor/sigs.k8s.io/knftables in k/k. For slightly-less-quick testing I would have updated go.mod to refer to the updated git SHA and then run ./hack/update-vendor.sh

(Tim is working on workspace support for k/k: https://github.com/kubernetes/kubernetes/pull/122624/commits)

@uablrek
Copy link

uablrek commented Jan 29, 2024

You can directly raise a PR in k/org as you are already a member of the Kubernetes org.

@danwinship @aroradaman May I name you as sponsors?

@aroradaman
Copy link
Member

You can directly raise a PR in k/org as you are already a member of the Kubernetes org.

@danwinship @aroradaman May I name you as sponsors?

You don't need sponsors for this / or create an issue, you can directly raise a PR with the change in config/kubernetes-sigs/org.yaml

see - kubernetes/org#4022 (comment)

nftables.go Show resolved Hide resolved
@uablrek
Copy link

uablrek commented Jan 30, 2024

/assign

I am a member now 😄

@uablrek
Copy link

uablrek commented Jan 30, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 30, 2024
@k8s-ci-robot k8s-ci-robot merged commit e0bab2b into kubernetes-sigs:master Jan 30, 2024
5 checks passed
@danwinship danwinship deleted the version branch January 30, 2024 22:14
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants