Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lsm5 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Ephemeral COPR build failed. @containers/packit-build please check. |
1 similar comment
|
Ephemeral COPR build failed. @containers/packit-build please check. |
32e105a to
79be198
Compare
|
A friendly reminder that this PR had no activity for 30 days. |
3e0adc8 to
dcab45a
Compare
nalind
left a comment
There was a problem hiding this comment.
Please avoid breaking the public API when possible.
| CNIPluginPath string | ||
| // CNIConfigDir is the location of CNI configuration files, if the files in | ||
| // the default configuration directory shouldn't be used. | ||
| CNIConfigDir string |
There was a problem hiding this comment.
This is an API break. I'd prefer if these fields were marked as deprecated, like BuildOutput.
pkg/cli/common.go
Outdated
| IPC string | ||
| Network string | ||
| PID string | ||
| UTS string |
| CNIPluginPath string | ||
| // CNIConfigDir is the location of CNI configuration files, if the files in | ||
| // the default configuration directory shouldn't be used. | ||
| CNIConfigDir string |
There was a problem hiding this comment.
This is an API break. I'd prefer if the godoc for these fields noted that they are deprecated and are expected to be empty, possibly with a tag indicating that they won't be saved when encoded as JSON.
| Capabilities []string | ||
| ConfigureNetwork string | ||
| CNIPluginPath string | ||
| CNIConfigDir string |
There was a problem hiding this comment.
This is an API break. I'd prefer if the godoc for these fields noted that they are deprecated and are expected to be empty.
| CNIPluginPath string | ||
| // CNIConfigDir is the location of CNI configuration files, if the files in | ||
| // the default configuration directory shouldn't be used. | ||
| CNIConfigDir string |
There was a problem hiding this comment.
This is an API break. I'd prefer if these fields were marked as deprecated, like the define package's BuildOptions.BuildOutput.
| CNIPluginPath string | ||
| // CNIConfigDir is the location of CNI configuration files, if the files in | ||
| // the default configuration directory shouldn't be used. | ||
| CNIConfigDir string |
There was a problem hiding this comment.
This is an API break. I'd prefer if these fields were marked as deprecated, like the define package's BuildOptions.BuildOutput.
|
@nalind good for another look. The testing-farm job failures are a Fedora infra issue, already notified them. |
|
This will stay in draft until containers/container-libs#412 is merged. |
| cniPluginPath string | ||
| cniConfigDir string | ||
| // NetworkInterface is the libnetwork network interface used to setup CNI or netavark networks. | ||
| // networkInterface is the libnetwork network interface used to setup netavark networks. |
Luap99
left a comment
There was a problem hiding this comment.
LGTM overall minus the one extra file
0ba7a4b to
e00419f
Compare
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Buildah no longer uses CNI for networking, so remove CNI spec version and libcni version from the version command output, build-time linker flags, and RPM spec. Also drop the FreeBSD CNI build tag from the Makefile since netavark is now the only supported network backend. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Mark CNIPluginPath and CNIConfigDir fields as deprecated in Builder, BuilderInfo, BuilderOptions, RunOptions, and BuildOptions structs. The fields are retained to avoid breaking the public API but are no longer used and are expected to be empty. Remove --cni-config-dir and --cni-plugin-path CLI flags. Simplify getNetworkInterface() to no longer accept CNI-specific parameters since netavark is now the only supported network backend. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Remove the docs/cni-examples/ directory, CNI installation section from install.md, and CNI fields from version man page. Remove the "from cni config test" from tests/from.bats and clean up --cni-config-dir usage from tests/namespaces.bats. Update comments that referenced CNI to use generic network terminology. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Remove the github.com/containernetworking/cni module from go.mod, go.sum, and vendor since it is no longer used. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Luap99
left a comment
There was a problem hiding this comment.
LGTM
One more thing I found in the CI test scrip we have an rm -rf on the cni dir which can be dropped as well
buildah/contrib/cirrus/test.sh
Lines 11 to 14 in 09917c4
Anyhow non blocking, tests look good here and this can be fixed easily later so I think it is better to merge now to continue the dance into podman
What type of PR is this?
What this PR does / why we need it:
Removes CNI for podman6
How to verify it
check if any CNI stuff still exists
Which issue(s) this PR fixes:
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?