Skip to content

Commit

Permalink
Update fixtures
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
  • Loading branch information
xmudrii committed Feb 1, 2022
1 parent 03e4674 commit 86d315f
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/scripts/testdata/TestKubeadmCentOS-force.golden
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down
7 changes: 7 additions & 0 deletions pkg/scripts/testdata/TestKubeadmCentOS-nutanix_cluster.golden
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down
7 changes: 7 additions & 0 deletions pkg/scripts/testdata/TestKubeadmCentOS-proxy.golden
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down
7 changes: 7 additions & 0 deletions pkg/scripts/testdata/TestKubeadmCentOS-simple.golden
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down
7 changes: 7 additions & 0 deletions pkg/scripts/testdata/TestKubeadmCentOS-v1.16.1.golden
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down
7 changes: 7 additions & 0 deletions pkg/scripts/testdata/TestKubeadmCentOS-with_containerd.golden
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down
7 changes: 7 additions & 0 deletions pkg/scripts/testdata/TestUpgradeKubeadmAndCNICentOS.golden
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

os_name=$(cat /etc/os-release | head -n1 | cut -d \" -f2)
os_version=$(cat /etc/os-release | head -n2 | tail -1 | cut -d \" -f2)
if [ "$os_name" == "CentOS Linux" ] && [ "$os_version" == "8 (Core)" ]; then
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi


sudo yum install -y \
yum-plugin-versionlock \
Expand Down

0 comments on commit 86d315f

Please sign in to comment.