diff --git a/pkg/scripts/testdata/TestKubeadmAmazonLinux-force.golden b/pkg/scripts/testdata/TestKubeadmAmazonLinux-force.golden index 12dd188ca..942c03cca 100644 --- a/pkg/scripts/testdata/TestKubeadmAmazonLinux-force.golden +++ b/pkg/scripts/testdata/TestKubeadmAmazonLinux-force.golden @@ -53,15 +53,6 @@ echo -n "${yum_proxy}" >> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <> /tmp/yum.conf sudo mv /tmp/yum.conf /etc/yum.conf -# Rebuilding the yum cache is required upon migrating from the legacy to the community-owned -# repositories, otherwise, yum will fail to upgrade the packages because it's trying to -# use old revisions (e.g. 1.27.0-0 instead of 1.27.5-150500.1.1). -repo_migration_needed=false - -if sudo grep -q "packages.cloud.google.com" /etc/yum.repos.d/kubernetes.repo; then - repo_migration_needed=true -fi - cat <