Skip to content

Commit

Permalink
Remove hold from the docker-ce-cli package on upgrade (#941)
Browse files Browse the repository at this point in the history
* Remove hold from the docker-ce-cli package on upgrade

* Update test fixtures
  • Loading branch information
xmudrii authored Jul 2, 2020
1 parent 650e100 commit a70e3d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/scripts/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ kube_ver=$(apt-cache madison kubelet | grep "{{ .KUBERNETES_VERSION }}" | head -
cni_ver=$(apt-cache madison kubernetes-cni | grep "{{ .KUBERNETES_CNI_VERSION }}" | head -1 | awk '{print $3}')
{{- if or .FORCE .UPGRADE }}
sudo apt-mark unhold docker-ce kubelet kubeadm kubectl kubernetes-cni
sudo apt-mark unhold docker-ce docker-ce-cli kubelet kubeadm kubectl kubernetes-cni
{{- end }}
sudo DEBIAN_FRONTEND=noninteractive apt-get install \
Expand Down
2 changes: 1 addition & 1 deletion pkg/scripts/testdata/TestUpgradeKubeadmAndCNIDebian.golden
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install --option "Dpkg::Options::=--

kube_ver=$(apt-cache madison kubelet | grep "v1.17.4" | head -1 | awk '{print $3}')
cni_ver=$(apt-cache madison kubernetes-cni | grep "0.8.6" | head -1 | awk '{print $3}')
sudo apt-mark unhold docker-ce kubelet kubeadm kubectl kubernetes-cni
sudo apt-mark unhold docker-ce docker-ce-cli kubelet kubeadm kubectl kubernetes-cni

sudo DEBIAN_FRONTEND=noninteractive apt-get install \
--option "Dpkg::Options::=--force-confold" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install --option "Dpkg::Options::=--

kube_ver=$(apt-cache madison kubelet | grep "v1.17.4" | head -1 | awk '{print $3}')
cni_ver=$(apt-cache madison kubernetes-cni | grep "0.8.6" | head -1 | awk '{print $3}')
sudo apt-mark unhold docker-ce kubelet kubeadm kubectl kubernetes-cni
sudo apt-mark unhold docker-ce docker-ce-cli kubelet kubeadm kubectl kubernetes-cni

sudo DEBIAN_FRONTEND=noninteractive apt-get install \
--option "Dpkg::Options::=--force-confold" \
Expand Down

0 comments on commit a70e3d9

Please sign in to comment.