diff --git a/pkg/minikube/bootstrapper/kubeadm/kubeadm_test.go b/pkg/minikube/bootstrapper/kubeadm/kubeadm_test.go index 2261b9cb14c7..4a1662862ec1 100644 --- a/pkg/minikube/bootstrapper/kubeadm/kubeadm_test.go +++ b/pkg/minikube/bootstrapper/kubeadm/kubeadm_test.go @@ -19,6 +19,7 @@ package kubeadm import ( "fmt" "io/ioutil" + "strings" "testing" "github.com/pmezard/go-difflib/difflib" @@ -28,13 +29,6 @@ import ( "k8s.io/minikube/pkg/util" ) -const ( - newMajor = "v1.14.0" - recentMajor = "v1.13.0" - oldMajor = "v1.12.0" - obsoleteMajor = "v1.10.0" -) - func TestGenerateKubeletConfig(t *testing.T) { tests := []struct { description string @@ -43,10 +37,10 @@ func TestGenerateKubeletConfig(t *testing.T) { shouldErr bool }{ { - description: "docker runtime", + description: "old docker", cfg: config.KubernetesConfig{ NodeIP: "192.168.1.100", - KubernetesVersion: recentMajor, + KubernetesVersion: constants.OldestKubernetesVersion, NodeName: "minikube", ContainerRuntime: "docker", }, @@ -56,7 +50,7 @@ Wants=docker.socket [Service] ExecStart= -ExecStart=/usr/bin/kubelet --allow-privileged=true --authorization-mode=Webhook --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --cgroup-driver=cgroupfs --client-ca-file=/var/lib/minikube/certs/ca.crt --cluster-dns=10.96.0.10 --cluster-domain=cluster.local --container-runtime=docker --fail-swap-on=false --hostname-override=minikube --kubeconfig=/etc/kubernetes/kubelet.conf --pod-manifest-path=/etc/kubernetes/manifests +ExecStart=/usr/bin/kubelet --allow-privileged=true --authorization-mode=Webhook --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --cadvisor-port=0 --cgroup-driver=cgroupfs --client-ca-file=/var/lib/minikube/certs/ca.crt --cluster-dns=10.96.0.10 --cluster-domain=cluster.local --container-runtime=docker --fail-swap-on=false --hostname-override=minikube --kubeconfig=/etc/kubernetes/kubelet.conf --pod-manifest-path=/etc/kubernetes/manifests [Install] `, @@ -95,7 +89,7 @@ Wants=docker.socket [Service] ExecStart= -ExecStart=/usr/bin/kubelet --allow-privileged=true --authorization-mode=Webhook --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --cgroup-driver=cgroupfs --client-ca-file=/var/lib/minikube/certs/ca.crt --cluster-dns=10.96.0.10 --cluster-domain=cluster.local --container-runtime=docker --fail-swap-on=false --hostname-override=minikube --kubeconfig=/etc/kubernetes/kubelet.conf --pod-infra-container-image=docker-proxy-image.io/google_containers/pause:3.1 --pod-manifest-path=/etc/kubernetes/manifests +ExecStart=/usr/bin/kubelet --authorization-mode=Webhook --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --cgroup-driver=cgroupfs --client-ca-file=/var/lib/minikube/certs/ca.crt --cluster-dns=10.96.0.10 --cluster-domain=cluster.local --container-runtime=docker --fail-swap-on=false --hostname-override=minikube --kubeconfig=/etc/kubernetes/kubelet.conf --pod-infra-container-image=docker-proxy-image.io/google_containers/pause:3.1 --pod-manifest-path=/etc/kubernetes/manifests [Install] `, @@ -173,13 +167,26 @@ func TestGenerateConfig(t *testing.T) { }, } - // Test version policy: Last 4 major releases (slightly looser than our general policy) - versions := map[string]string{ - "default": constants.DefaultKubernetesVersion, - "new": newMajor, - "recent": recentMajor, - "old": oldMajor, - "obsolete": obsoleteMajor, + // test the 6 most recent releases + versions := []string{"v1.15", "v1.14", "v1.13", "v1.12", "v1.11", "v1.10"} + foundNewest := false + foundDefault := false + + for _, v := range versions { + if strings.HasPrefix(constants.NewestKubernetesVersion, v) { + foundNewest = true + } + if strings.HasPrefix(constants.DefaultKubernetesVersion, v) { + foundDefault = true + } + } + + if !foundNewest { + t.Errorf("No tests exist yet for newest minor version: %s", constants.NewestKubernetesVersion) + } + + if !foundDefault { + t.Errorf("No tests exist yet for default minor version: %s", constants.DefaultKubernetesVersion) } tests := []struct { @@ -198,18 +205,18 @@ func TestGenerateConfig(t *testing.T) { {"containerd-pod-network-cidr", "containerd", false, config.KubernetesConfig{ExtraOptions: extraOptsPodCidr}}, {"image-repository", "docker", false, config.KubernetesConfig{ImageRepository: "test/repo"}}, } - for vname, version := range versions { + for _, version := range versions { for _, tc := range tests { runtime, err := cruntime.New(cruntime.Config{Type: tc.runtime}) if err != nil { t.Fatalf("runtime: %v", err) } - tname := tc.name + "__" + vname + tname := tc.name + "_" + version t.Run(tname, func(t *testing.T) { cfg := tc.cfg cfg.NodeIP = "1.1.1.1" cfg.NodeName = "mk" - cfg.KubernetesVersion = version + cfg.KubernetesVersion = version + ".0" got, err := generateConfig(cfg, runtime) if err != nil && !tc.shouldErr { @@ -221,7 +228,7 @@ func TestGenerateConfig(t *testing.T) { if tc.shouldErr { return } - expected, err := ioutil.ReadFile(fmt.Sprintf("testdata/%s.yaml", tname)) + expected, err := ioutil.ReadFile(fmt.Sprintf("testdata/%s/%s.yaml", version, tc.name)) if err != nil { t.Fatalf("unable to read testdata: %v", err) } diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__obsolete.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/containerd-api-port.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__obsolete.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/containerd-api-port.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__obsolete.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/containerd-pod-network-cidr.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__obsolete.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/containerd-pod-network-cidr.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd__obsolete.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/containerd.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd__obsolete.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/containerd.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__obsolete.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/crio-options-gates.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__obsolete.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/crio-options-gates.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/crio__obsolete.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/crio.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/crio__obsolete.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/crio.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/default__obsolete.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/default.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/default__obsolete.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/default.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__obsolete.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/image-repository.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__obsolete.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/image-repository.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/options__obsolete.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/options.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/options__obsolete.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.10/options.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/containerd-api-port.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/containerd-api-port.yaml new file mode 100644 index 000000000000..c7edeea5f254 --- /dev/null +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/containerd-api-port.yaml @@ -0,0 +1,17 @@ +apiVersion: kubeadm.k8s.io/v1alpha1 +kind: MasterConfiguration +noTaintMaster: true +api: + advertiseAddress: 1.1.1.1 + bindPort: 12345 + controlPlaneEndpoint: localhost +kubernetesVersion: v1.11.0 +certificatesDir: /var/lib/minikube/certs/ +networking: + serviceSubnet: 10.96.0.0/12 +etcd: + dataDir: /data/minikube +nodeName: mk +criSocket: /run/containerd/containerd.sock +apiServerExtraArgs: + enable-admission-plugins: "Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/containerd-pod-network-cidr.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/containerd-pod-network-cidr.yaml new file mode 100644 index 000000000000..320c88592764 --- /dev/null +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/containerd-pod-network-cidr.yaml @@ -0,0 +1,17 @@ +apiVersion: kubeadm.k8s.io/v1alpha1 +kind: MasterConfiguration +noTaintMaster: true +api: + advertiseAddress: 1.1.1.1 + bindPort: 8443 + controlPlaneEndpoint: localhost +kubernetesVersion: v1.11.0 +certificatesDir: /var/lib/minikube/certs/ +networking: + serviceSubnet: 10.96.0.0/12 +etcd: + dataDir: /data/minikube +nodeName: mk +criSocket: /run/containerd/containerd.sock +apiServerExtraArgs: + enable-admission-plugins: "Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/containerd.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/containerd.yaml new file mode 100644 index 000000000000..320c88592764 --- /dev/null +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/containerd.yaml @@ -0,0 +1,17 @@ +apiVersion: kubeadm.k8s.io/v1alpha1 +kind: MasterConfiguration +noTaintMaster: true +api: + advertiseAddress: 1.1.1.1 + bindPort: 8443 + controlPlaneEndpoint: localhost +kubernetesVersion: v1.11.0 +certificatesDir: /var/lib/minikube/certs/ +networking: + serviceSubnet: 10.96.0.0/12 +etcd: + dataDir: /data/minikube +nodeName: mk +criSocket: /run/containerd/containerd.sock +apiServerExtraArgs: + enable-admission-plugins: "Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/crio-options-gates.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/crio-options-gates.yaml new file mode 100644 index 000000000000..37e2d4729ab3 --- /dev/null +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/crio-options-gates.yaml @@ -0,0 +1,25 @@ +apiVersion: kubeadm.k8s.io/v1alpha1 +kind: MasterConfiguration +noTaintMaster: true +api: + advertiseAddress: 1.1.1.1 + bindPort: 8443 + controlPlaneEndpoint: localhost +kubernetesVersion: v1.11.0 +certificatesDir: /var/lib/minikube/certs/ +networking: + serviceSubnet: 10.96.0.0/12 +etcd: + dataDir: /data/minikube +nodeName: mk +criSocket: /var/run/crio/crio.sock +apiServerExtraArgs: + enable-admission-plugins: "Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" + fail-no-swap: "true" + feature-gates: "a=b" +controllerManagerExtraArgs: + feature-gates: "a=b" + kube-api-burst: "32" +schedulerExtraArgs: + feature-gates: "a=b" + scheduler-name: "mini-scheduler" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/crio.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/crio.yaml new file mode 100644 index 000000000000..2b394b5335ea --- /dev/null +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/crio.yaml @@ -0,0 +1,17 @@ +apiVersion: kubeadm.k8s.io/v1alpha1 +kind: MasterConfiguration +noTaintMaster: true +api: + advertiseAddress: 1.1.1.1 + bindPort: 8443 + controlPlaneEndpoint: localhost +kubernetesVersion: v1.11.0 +certificatesDir: /var/lib/minikube/certs/ +networking: + serviceSubnet: 10.96.0.0/12 +etcd: + dataDir: /data/minikube +nodeName: mk +criSocket: /var/run/crio/crio.sock +apiServerExtraArgs: + enable-admission-plugins: "Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/default.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/default.yaml new file mode 100644 index 000000000000..f831b4e46ee5 --- /dev/null +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/default.yaml @@ -0,0 +1,16 @@ +apiVersion: kubeadm.k8s.io/v1alpha1 +kind: MasterConfiguration +noTaintMaster: true +api: + advertiseAddress: 1.1.1.1 + bindPort: 8443 + controlPlaneEndpoint: localhost +kubernetesVersion: v1.11.0 +certificatesDir: /var/lib/minikube/certs/ +networking: + serviceSubnet: 10.96.0.0/12 +etcd: + dataDir: /data/minikube +nodeName: mk +apiServerExtraArgs: + enable-admission-plugins: "Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/image-repository.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/image-repository.yaml new file mode 100644 index 000000000000..72ac00feb798 --- /dev/null +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/image-repository.yaml @@ -0,0 +1,17 @@ +apiVersion: kubeadm.k8s.io/v1alpha1 +kind: MasterConfiguration +noTaintMaster: true +api: + advertiseAddress: 1.1.1.1 + bindPort: 8443 + controlPlaneEndpoint: localhost +kubernetesVersion: v1.11.0 +certificatesDir: /var/lib/minikube/certs/ +networking: + serviceSubnet: 10.96.0.0/12 +etcd: + dataDir: /data/minikube +nodeName: mk +imageRepository: test/repo +apiServerExtraArgs: + enable-admission-plugins: "Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/options.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/options.yaml new file mode 100644 index 000000000000..653a3e4428a3 --- /dev/null +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.11/options.yaml @@ -0,0 +1,21 @@ +apiVersion: kubeadm.k8s.io/v1alpha1 +kind: MasterConfiguration +noTaintMaster: true +api: + advertiseAddress: 1.1.1.1 + bindPort: 8443 + controlPlaneEndpoint: localhost +kubernetesVersion: v1.11.0 +certificatesDir: /var/lib/minikube/certs/ +networking: + serviceSubnet: 10.96.0.0/12 +etcd: + dataDir: /data/minikube +nodeName: mk +apiServerExtraArgs: + enable-admission-plugins: "Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota" + fail-no-swap: "true" +controllerManagerExtraArgs: + kube-api-burst: "32" +schedulerExtraArgs: + scheduler-name: "mini-scheduler" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__old.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/containerd-api-port.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__old.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/containerd-api-port.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__old.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/containerd-pod-network-cidr.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__old.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/containerd-pod-network-cidr.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd__old.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/containerd.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd__old.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/containerd.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__old.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/crio-options-gates.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__old.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/crio-options-gates.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/crio__old.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/crio.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/crio__old.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/crio.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/default__old.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/default.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/default__old.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/default.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__old.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/image-repository.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__old.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/image-repository.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/options__old.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/options.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/options__old.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.12/options.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__recent.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/containerd-api-port.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__recent.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/containerd-api-port.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__recent.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/containerd-pod-network-cidr.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__recent.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/containerd-pod-network-cidr.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd__recent.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/containerd.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd__recent.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/containerd.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__recent.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/crio-options-gates.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__recent.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/crio-options-gates.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/crio__recent.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/crio.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/crio__recent.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/crio.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/default__recent.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/default.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/default__recent.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/default.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__recent.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/image-repository.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__recent.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/image-repository.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/options__recent.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/options.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/options__recent.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.13/options.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__new.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/containerd-api-port.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__new.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/containerd-api-port.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__new.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/containerd-pod-network-cidr.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__new.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/containerd-pod-network-cidr.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd__new.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/containerd.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd__new.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/containerd.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__new.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/crio-options-gates.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__new.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/crio-options-gates.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/crio__new.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/crio.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/crio__new.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/crio.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/default__new.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/default.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/default__new.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/default.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__new.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/image-repository.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__new.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/image-repository.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/options__new.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/options.yaml similarity index 100% rename from pkg/minikube/bootstrapper/kubeadm/testdata/options__new.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.14/options.yaml diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__default.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/containerd-api-port.yaml similarity index 97% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__default.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/containerd-api-port.yaml index f6b37397cae5..0fbf400ebf03 100644 --- a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-api-port__default.yaml +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/containerd-api-port.yaml @@ -28,7 +28,7 @@ dns: etcd: local: dataDir: /data/minikube -kubernetesVersion: v1.14.3 +kubernetesVersion: v1.15.0 networking: dnsDomain: cluster.local podSubnet: "" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__default.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/containerd-pod-network-cidr.yaml similarity index 97% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__default.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/containerd-pod-network-cidr.yaml index f11516f99dc7..c6354e860bcb 100644 --- a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd-pod-network-cidr__default.yaml +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/containerd-pod-network-cidr.yaml @@ -28,7 +28,7 @@ dns: etcd: local: dataDir: /data/minikube -kubernetesVersion: v1.14.3 +kubernetesVersion: v1.15.0 networking: dnsDomain: cluster.local podSubnet: "" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd__default.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/containerd.yaml similarity index 97% rename from pkg/minikube/bootstrapper/kubeadm/testdata/containerd__default.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/containerd.yaml index f11516f99dc7..c6354e860bcb 100644 --- a/pkg/minikube/bootstrapper/kubeadm/testdata/containerd__default.yaml +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/containerd.yaml @@ -28,7 +28,7 @@ dns: etcd: local: dataDir: /data/minikube -kubernetesVersion: v1.14.3 +kubernetesVersion: v1.15.0 networking: dnsDomain: cluster.local podSubnet: "" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__default.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/crio-options-gates.yaml similarity index 97% rename from pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__default.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/crio-options-gates.yaml index cdef8bafa1aa..78bbe09f1ce6 100644 --- a/pkg/minikube/bootstrapper/kubeadm/testdata/crio-options-gates__default.yaml +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/crio-options-gates.yaml @@ -38,7 +38,7 @@ dns: etcd: local: dataDir: /data/minikube -kubernetesVersion: v1.14.3 +kubernetesVersion: v1.15.0 networking: dnsDomain: cluster.local podSubnet: "" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/crio__default.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/crio.yaml similarity index 97% rename from pkg/minikube/bootstrapper/kubeadm/testdata/crio__default.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/crio.yaml index bf8ba7daefa5..b956109b8178 100644 --- a/pkg/minikube/bootstrapper/kubeadm/testdata/crio__default.yaml +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/crio.yaml @@ -28,7 +28,7 @@ dns: etcd: local: dataDir: /data/minikube -kubernetesVersion: v1.14.3 +kubernetesVersion: v1.15.0 networking: dnsDomain: cluster.local podSubnet: "" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/default__default.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/default.yaml similarity index 97% rename from pkg/minikube/bootstrapper/kubeadm/testdata/default__default.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/default.yaml index d2dc46469314..46d6e4e78ca0 100644 --- a/pkg/minikube/bootstrapper/kubeadm/testdata/default__default.yaml +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/default.yaml @@ -28,7 +28,7 @@ dns: etcd: local: dataDir: /data/minikube -kubernetesVersion: v1.14.3 +kubernetesVersion: v1.15.0 networking: dnsDomain: cluster.local podSubnet: "" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__default.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/image-repository.yaml similarity index 97% rename from pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__default.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/image-repository.yaml index 66cab56ad3ea..8ab50ff90286 100644 --- a/pkg/minikube/bootstrapper/kubeadm/testdata/image-repository__default.yaml +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/image-repository.yaml @@ -29,7 +29,7 @@ dns: etcd: local: dataDir: /data/minikube -kubernetesVersion: v1.14.3 +kubernetesVersion: v1.15.0 networking: dnsDomain: cluster.local podSubnet: "" diff --git a/pkg/minikube/bootstrapper/kubeadm/testdata/options__default.yaml b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/options.yaml similarity index 97% rename from pkg/minikube/bootstrapper/kubeadm/testdata/options__default.yaml rename to pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/options.yaml index 1c1ff1c39522..2e6f561dd489 100644 --- a/pkg/minikube/bootstrapper/kubeadm/testdata/options__default.yaml +++ b/pkg/minikube/bootstrapper/kubeadm/testdata/v1.15/options.yaml @@ -35,7 +35,7 @@ dns: etcd: local: dataDir: /data/minikube -kubernetesVersion: v1.14.3 +kubernetesVersion: v1.15.0 networking: dnsDomain: cluster.local podSubnet: "" diff --git a/pkg/minikube/constants/constants.go b/pkg/minikube/constants/constants.go index b40a26be57ec..bc8f90b27f56 100644 --- a/pkg/minikube/constants/constants.go +++ b/pkg/minikube/constants/constants.go @@ -162,10 +162,10 @@ var DefaultISOURL = fmt.Sprintf("https://storage.googleapis.com/%s/minikube-%s.i var DefaultISOSHAURL = DefaultISOURL + SHASuffix // DefaultKubernetesVersion is the default kubernetes version -var DefaultKubernetesVersion = "v1.14.3" +var DefaultKubernetesVersion = "v1.15.0" // NewestKubernetesVersion is the newest Kubernetes version to test against -var NewestKubernetesVersion = "v1.15.0-beta.1" +var NewestKubernetesVersion = "v1.15.0" // OldestKubernetesVersion is the oldest Kubernetes version to test against var OldestKubernetesVersion = "v1.10.13"