New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Docker to v20.10.5 #11195
Update Docker to v20.10.5 #11195
Conversation
@hakman @olemarkus @rifelpet https://github.com/kubernetes/kops/blob/master/upup/pkg/fi/cloudup/populatecluster_test.go#L374
I've also added the following code snippet to
When I run
If I change the k8s version to 1.19.0 in both code snippets, the updated-expected.sh script reports no errors. How is the KubernetesVersion validated for the integration tests? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bmelbourne I took a quick look and I think you are changing too much. Unit tests should not be updated on each new Docker release. Same goes for docs examples.
To fix the error, you will need to update TestPopulateCluster_DockerVersion
to always set container runtime to docker
. As you know, starting kOps 1.20 the default container runtime is containerd
and so, there is no Docker version by default.
--- a/upup/pkg/fi/cloudup/populatecluster_test.go
+++ b/upup/pkg/fi/cloudup/populatecluster_test.go
@@ -392,11 +392,16 @@ func TestPopulateCluster_DockerVersion(t *testing.T) {
KubernetesVersion: "1.17.0",
DockerVersion: "19.03.15",
},
+ {
+ KubernetesVersion: "1.21.0",
+ DockerVersion: "20.10.5",
+ },
}
for _, test := range grid {
_, c := buildMinimalCluster()
c.Spec.KubernetesVersion = test.KubernetesVersion
+ c.Spec.ContainerRuntime = "docker"
full, err := build(c)
if err != nil {
e786b9b
to
0724e56
Compare
@hakman I've reduced the number of changes to keep the PR focused on upgrading Docker to |
Thanks @bmelbourne. I added a few more suggestions that should reduce the scope even more. |
0724e56
to
beecc3b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last set of changes, you should remove the WIP after it. :)
tests/integration/update_cluster/docker-custom/in-v1alpha2.yaml
Outdated
Show resolved
Hide resolved
tests/integration/update_cluster/docker-custom/in-v1alpha2.yaml
Outdated
Show resolved
Hide resolved
beecc3b
to
8138ca7
Compare
/retest |
...ata/aws_launch_configuration_master-us-test-1a.masters.launchtemplates.example.com_user_data
Outdated
Show resolved
Hide resolved
8138ca7
to
7c2b54c
Compare
/retest |
1 similar comment
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
7c2b54c
to
1a60629
Compare
/retest |
/lgtm |
What this PR does / why we need it:
Update default Docker version to v20.10.5 for all Kubernetes versions
v1.21+
.https://github.com/kubernetes/kubernetes/blob/v1.21.0/build/dependencies.yaml#L72-L77
Which issue(s) this PR fixes:
N/A
Special notes for your reviewer: