-
Notifications
You must be signed in to change notification settings - Fork 265
[DNM] Use custom layered image to test nm-libreswan fix #2856
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,8 +4,11 @@ kind: MachineConfig | |
| metadata: | ||
| labels: | ||
| machineconfiguration.openshift.io/role: master | ||
| annotations: | ||
| user-ipsec-machine-config: "true" | ||
| name: 80-ipsec-master-extensions | ||
| spec: | ||
| osImageURL: quay.io/pepalani/ipsec-rhcos-layered-image:nm-libreswan-fix | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoded test image URL must not be merged. The 🤖 Prompt for AI Agents |
||
| config: | ||
| ignition: | ||
| version: 3.2.0 | ||
|
|
@@ -20,11 +23,9 @@ spec: | |
|
|
||
| [Service] | ||
| Type=oneshot | ||
| ExecStartPre=rm -f /etc/ipsec.d/cno.conf | ||
| ExecStartPre=systemd-tmpfiles --create /usr/lib/rpm-ostree/tmpfiles.d/libreswan.conf | ||
| ExecStart=systemctl enable --now ipsec.service | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target | ||
| extensions: | ||
| - ipsec | ||
| {{end}} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,8 +4,11 @@ kind: MachineConfig | |
| metadata: | ||
| labels: | ||
| machineconfiguration.openshift.io/role: worker | ||
| annotations: | ||
| user-ipsec-machine-config: "true" | ||
|
Comment on lines
+7
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Misleading annotation name for CNO-managed resource. The annotation Consider renaming to reflect CNO ownership, e.g., 🤖 Prompt for AI Agents |
||
| name: 80-ipsec-worker-extensions | ||
| spec: | ||
| osImageURL: quay.io/pepalani/ipsec-rhcos-layered-image:nm-libreswan-fix | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoded test image URL must not be merged. The 🤖 Prompt for AI Agents |
||
| config: | ||
| ignition: | ||
| version: 3.2.0 | ||
|
|
@@ -20,11 +23,9 @@ spec: | |
|
|
||
| [Service] | ||
| Type=oneshot | ||
| ExecStartPre=rm -f /etc/ipsec.d/cno.conf | ||
| ExecStartPre=systemd-tmpfiles --create /usr/lib/rpm-ostree/tmpfiles.d/libreswan.conf | ||
| ExecStart=systemctl enable --now ipsec.service | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target | ||
| extensions: | ||
| - ipsec | ||
| {{end}} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misleading annotation name for CNO-managed resource.
The annotation
user-ipsec-machine-config: "true"is misleading since this MachineConfig is managed by CNO, not user-defined. This could cause confusion about resource ownership and lifecycle management.Consider renaming to reflect CNO ownership, e.g.,
cno-ipsec-machine-config: "true"ornetwork.operator.openshift.io/ipsec-machine-config: "true".🤖 Prompt for AI Agents