-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34256 from haircommander/bump-crio-2
crio: bump v2 job to latest main
- Loading branch information
Showing
4 changed files
with
132 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
--- | ||
variant: fcos | ||
version: 1.4.0 | ||
kernel_arguments: | ||
should_not_exist: | ||
- mitigations=auto,nosmt | ||
storage: | ||
files: | ||
- path: /etc/zincati/config.d/90-disable-auto-updates.toml | ||
contents: | ||
local: 90-disable-auto-updates.toml | ||
mode: 0644 | ||
- path: /root/kubelet-e2e.te | ||
contents: | ||
local: kubelet-e2e.te | ||
mode: 0644 | ||
- path: /etc/crio/crio.conf.d/20-crio.conf | ||
contents: | ||
local: 20-crio.conf | ||
mode: 0644 | ||
- path: /etc/sysctl.d/99-e2e-sysctl.conf | ||
contents: | ||
local: 99-e2e-sysctl.conf | ||
mode: 0644 | ||
- path: /etc/ssh-key-secret/ssh-public | ||
contents: | ||
# base64 encoded "GCE_SSH_PUBLIC_KEY_FILE_CONTENT" | ||
source: data:text/plain;base64,R0NFX1NTSF9QVUJMSUNfS0VZX0ZJTEVfQ09OVEVOVA== | ||
mode: 0644 | ||
systemd: | ||
units: | ||
- name: configure-sysctl.service | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Configure required sysctls. | ||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/lib/systemd/systemd-sysctl | ||
[Install] | ||
WantedBy=multi-user.target | ||
- name: tools-install.service | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Download and install required tools. | ||
Before=crio-install.service | ||
After=NetworkManager-wait-online.service | ||
[Service] | ||
Type=oneshot | ||
ExecStart=rpm-ostree install \ | ||
-y \ | ||
--apply-live \ | ||
--allow-inactive \ | ||
dbus-tools \ | ||
checkpolicy | ||
[Install] | ||
WantedBy=multi-user.target | ||
- name: selinux-install.service | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Setup SELinux policy | ||
After=tools-install.service | ||
[Service] | ||
Type=oneshot | ||
ExecStartPre=setenforce 1 | ||
ExecStartPre=checkmodule -M -m -o /root/kubelet-e2e.mod /root/kubelet-e2e.te | ||
ExecStartPre=semodule_package -o /root/kubelet-e2e.pp -m /root/kubelet-e2e.mod | ||
ExecStartPre=semodule -i /root/kubelet-e2e.pp | ||
ExecStartPre=mkdir -p /var/lib/kubelet | ||
ExecStart=chcon -R -u system_u -r object_r -t var_lib_t /var/lib/kubelet | ||
[Install] | ||
WantedBy=multi-user.target | ||
- name: crio-install.service | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Download and install crio binaries and configurations. | ||
After=selinux-install.service | ||
[Service] | ||
Type=oneshot | ||
Environment="SCRIPT_COMMIT=e8c1f1f9493bef6ecc069d573891f7ef3dda5882" | ||
Environment="CRIO_COMMIT=1c8917d362261d1793b7db27fa8d97f2ca826f43" | ||
ExecStartPre=mount /tmp /tmp -o remount,exec,suid | ||
ExecStartPre=mount -o remount,rw /dev/sda4 /usr | ||
ExecStartPre=bash -c '\ | ||
curl --fail --retry 5 --retry-delay 3 --silent --show-error \ | ||
https://raw.githubusercontent.com/cri-o/packaging/$SCRIPT_COMMIT/get |\ | ||
bash -s -- -t $CRIO_COMMIT' | ||
ExecStartPre=rm -f /etc/cni/net.d/87-podman-bridge.conflist | ||
ExecStartPre=rm -f /etc/crio/crio.conf.d/10-crio.conf | ||
ExecStart=systemctl enable --now crio.service | ||
Restart=on-failure | ||
[Install] | ||
WantedBy=multi-user.target | ||
- name: authorized-key.service | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Copy authorized keys | ||
Before=crio-install.service | ||
After=NetworkManager-wait-online.service | ||
[Service] | ||
Type=oneshot | ||
ExecStart=/bin/sh -c '\ | ||
/usr/bin/mkdir -m 0700 -p /home/core/.ssh && \ | ||
/usr/bin/cat /etc/ssh-key-secret/ssh-public \ | ||
>> /home/core/.ssh/authorized_keys && \ | ||
/usr/bin/chown -R core:core /home/core/.ssh && \ | ||
/usr/bin/chmod 0600 /home/core/.ssh/authorized_keys' | ||
[Install] | ||
WantedBy=multi-user.target | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters