Switch to libreswan-minimal in the gateway#3499
Switch to libreswan-minimal in the gateway#3499skitt wants to merge 2 commits intosubmariner-io:develfrom
Conversation
|
🤖 Created branch: z_pr3499/skitt/libreswan-minimal |
acf020f to
b5d0ac6
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
fb5ce16 to
7eef201
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
d0c2b08 to
dd259eb
Compare
dd259eb to
231fb2d
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
a7ce5d5 to
f4543f6
Compare
WalkthroughUpdated three Submariner Dockerfiles to use Fedora 43 (was 42). In the gateway Dockerfile, swapped Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (2 passed)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
package/Dockerfile.submariner-gateway(2 hunks)package/Dockerfile.submariner-globalnet(1 hunks)package/Dockerfile.submariner-route-agent(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: Go Unit Tests
- GitHub Check: Variant Analysis
- GitHub Check: Go
- GitHub Check: Dependency Licenses
- GitHub Check: Images
- GitHub Check: Latest Release to Latest Version
- GitHub Check: Check the multi-arch builds
🔇 Additional comments (4)
package/Dockerfile.submariner-route-agent (1)
2-2: LGTM! Base image version bump aligns with the other Dockerfiles in this PR.package/Dockerfile.submariner-globalnet (1)
2-2: LGTM! Base image version bump is consistent with the other Dockerfiles in this PR.package/Dockerfile.submariner-gateway (2)
27-28: Verify procps-ng necessity and libreswan-minimal functionality.The change from
libreswantolibreswan-minimalachieves the PR's goal (size reduction, systemd removal). However,procps-nghas been added without explanation in the PR description. Additionally, the gateway comment on line 23 states "libreswan provides IKE"—ensure thatlibreswan-minimalprovides all necessary IKE/IPSec functionality required for gateway operations.Please confirm:
- Why
procps-ngwas added to the package list. Is it a dependency oflibreswan-minimal, or needed for gateway runtime operations?- Does
libreswan-minimalprovide all required IKE and IPSec functionality for gateway operations, or are there any known limitations compared to the fulllibreswanpackage?
2-28: Fedora 43 migration and libreswan-minimal swap look good.The base image version bump from 42 to 43 and the swap from
libreswantolibreswan-minimalalign with the PR objectives of reducing image size from 234 MiB to 211 MiB and removing systemd dependencies. Once the incomplete comment is resolved and theprocps-ngaddition is clarified, this change is ready.
| libcurl-minimal iproute libreswan-minimal kmod \ | ||
| openssl procps-ng nss-tools | ||
|
|
||
| # util-linux-core |
There was a problem hiding this comment.
Remove the incomplete comment on line 30.
The comment # util-linux-core appears orphaned or unfinished (separated by a blank line from the RUN command). Either complete the comment if it documents a decision, or remove it.
Apply this diff to remove the incomplete comment:
openssl procps-ng nss-tools
-
-# util-linux-core
FROM scratch📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| # util-linux-core | |
| openssl procps-ng nss-tools | |
| FROM scratch |
🤖 Prompt for AI Agents
In package/Dockerfile.submariner-gateway around line 30, there is an
orphaned/incomplete comment "# util-linux-core" that should be removed; edit the
Dockerfile to delete that lone comment line (or replace it with a complete
explanatory comment if you intend to document why util-linux-core is
referenced), ensuring no extra blank line remains between related instructions.
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
|
🤖 Closed branches: [z_pr3499/skitt/libreswan-minimal] |
|
🤖 Created branch: z_pr3499/skitt/libreswan-minimal |
f4543f6 to
e6fc79f
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
e6fc79f to
ceb93c1
Compare
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
ceb93c1 to
5c1cd42
Compare
|
Seeing all the NFTables jobs failing, might be related to the incompatibility work @yboaron was digging into. |
Yes, this is the same incompatibility between F43 |
The image sizes don't vary significantly. Signed-off-by: Stephen Kitt <skitt@redhat.com>
This reduces the image size (185MiB instead of 203MiB) and drops all the systemd dependencies. Signed-off-by: Stephen Kitt <skitt@redhat.com>
5c1cd42 to
88fba45
Compare
This reduces the image size (211MiB instead of 234MiB) and drops all the systemd dependencies.
Summary by CodeRabbit