Skip to content

Commit

Permalink
Update fixtures
Browse files Browse the repository at this point in the history
Signed-off-by: Artiom Diomin <kron82@gmail.com>
  • Loading branch information
kron4eg committed Dec 7, 2021
1 parent e02c3d8 commit 524d7b4
Show file tree
Hide file tree
Showing 31 changed files with 247 additions and 61 deletions.
10 changes: 9 additions & 1 deletion pkg/scripts/testdata/TestKubeadmAmazonLinux-force.golden
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,16 @@ sudo yum install -y \
containerd.io-1.4.* \
cri-tools-1.13.0
sudo yum versionlock add docker cri-tools containerd
sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,16 @@ sudo yum install -y \
containerd.io-1.4.* \
cri-tools-1.13.0
sudo yum versionlock add docker cri-tools containerd
sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,16 @@ sudo yum install -y \
containerd.io-1.4.* \
cri-tools-1.13.0
sudo yum versionlock add docker cri-tools containerd
sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
10 changes: 9 additions & 1 deletion pkg/scripts/testdata/TestKubeadmAmazonLinux-proxy.golden
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,16 @@ sudo yum install -y \
containerd.io-1.4.* \
cri-tools-1.13.0
sudo yum versionlock add docker cri-tools containerd
sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
10 changes: 9 additions & 1 deletion pkg/scripts/testdata/TestKubeadmAmazonLinux-simple.golden
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,16 @@ sudo yum install -y \
containerd.io-1.4.* \
cri-tools-1.13.0
sudo yum versionlock add docker cri-tools containerd
sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
10 changes: 9 additions & 1 deletion pkg/scripts/testdata/TestKubeadmAmazonLinux-v1.16.1.golden
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,16 @@ sudo yum install -y \
containerd.io-1.4.* \
cri-tools-1.13.0
sudo yum versionlock add docker cri-tools containerd
sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd


Expand Down
10 changes: 9 additions & 1 deletion pkg/scripts/testdata/TestKubeadmCentOS-force.golden
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,16 @@ sudo yum install -y \
containerd.io-1.4.*
sudo yum versionlock add docker-ce docker-ce-cli containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,16 @@ sudo yum install -y \
containerd.io-1.4.*
sudo yum versionlock add docker-ce docker-ce-cli containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,16 @@ sudo yum install -y \
containerd.io-1.4.*
sudo yum versionlock add docker-ce docker-ce-cli containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
10 changes: 9 additions & 1 deletion pkg/scripts/testdata/TestKubeadmCentOS-proxy.golden
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,16 @@ sudo yum install -y \
containerd.io-1.4.*
sudo yum versionlock add docker-ce docker-ce-cli containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
10 changes: 9 additions & 1 deletion pkg/scripts/testdata/TestKubeadmCentOS-simple.golden
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,16 @@ sudo yum install -y \
containerd.io-1.4.*
sudo yum versionlock add docker-ce docker-ce-cli containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
10 changes: 9 additions & 1 deletion pkg/scripts/testdata/TestKubeadmCentOS-v1.16.1.golden
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,16 @@ sudo yum install -y \
containerd.io-1.4.*
sudo yum versionlock add docker-ce docker-ce-cli containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,16 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install \
containerd.io=1.4.*
sudo apt-mark hold docker-ce docker-ce-cli containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,16 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install \
containerd.io=1.4.*
sudo apt-mark hold docker-ce docker-ce-cli containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
10 changes: 9 additions & 1 deletion pkg/scripts/testdata/TestKubeadmDebian-simple.golden
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,16 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install \
containerd.io=1.4.*
sudo apt-mark hold docker-ce docker-ce-cli containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd
sudo systemctl enable --now docker


Expand Down
11 changes: 11 additions & 0 deletions pkg/scripts/testdata/TestKubeadmDebian-with_containerd.golden
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@ sudo apt-mark unhold containerd.io || true
sudo apt-get install -y containerd.io=1.4.*
sudo apt-mark hold containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable containerd
sudo systemctl restart containerd



sudo DEBIAN_FRONTEND=noninteractive apt-get install \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,17 @@ sudo apt-mark unhold containerd.io || true
sudo apt-get install -y containerd.io=1.4.*
sudo apt-mark hold containerd.io

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable containerd
sudo systemctl restart containerd



sudo DEBIAN_FRONTEND=noninteractive apt-get install \
Expand Down
17 changes: 8 additions & 9 deletions pkg/scripts/testdata/TestKubeadmFlatcar-with_containerd.golden
Original file line number Diff line number Diff line change
Expand Up @@ -88,28 +88,27 @@ cat <<EOF | sudo tee /etc/crictl.yaml
runtime-endpoint: unix:///run/containerd/containerd.sock
EOF

sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF


cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/10-kubeone.conf
[Service]
Restart=always
Environment=CONTAINERD_CONFIG=/etc/containerd/config.toml
ExecStart=
ExecStart=/usr/bin/env PATH=${TORCX_BINDIR}:${PATH} ${TORCX_BINDIR}/containerd --config ${CONTAINERD_CONFIG}
EOF
sudo mkdir -p /etc/systemd/system/containerd.service.d
cat <<EOF | sudo tee /etc/systemd/system/containerd.service.d/environment.conf
[Service]
Restart=always
EnvironmentFile=-/etc/environment
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now containerd
sudo systemctl enable containerd
sudo systemctl restart containerd




sudo mkdir -p /opt/bin
cd /opt/bin
k8s_rel_baseurl=https://storage.googleapis.com/kubernetes-release/release
Expand Down
Loading

0 comments on commit 524d7b4

Please sign in to comment.