mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
cluster/rkt: Update default rkt version
This commit is contained in:
parent
807d7ba8ec
commit
a2a324bf8b
@ -151,7 +151,7 @@ NODE_OS_DISTRIBUTION="${KUBE_OS_DISTRIBUTION}"
|
||||
KUBE_NODE_IMAGE="${KUBE_NODE_IMAGE:-}"
|
||||
COREOS_CHANNEL="${COREOS_CHANNEL:-alpha}"
|
||||
CONTAINER_RUNTIME="${KUBE_CONTAINER_RUNTIME:-docker}"
|
||||
RKT_VERSION="${KUBE_RKT_VERSION:-0.5.5}"
|
||||
RKT_VERSION="${KUBE_RKT_VERSION:-1.14.0}"
|
||||
|
||||
# OpenContrail networking plugin specific settings
|
||||
NETWORK_PROVIDER="${NETWORK_PROVIDER:-none}" # opencontrail
|
||||
|
@ -137,7 +137,7 @@ NODE_OS_DISTRIBUTION="${KUBE_OS_DISTRIBUTION}"
|
||||
KUBE_NODE_IMAGE="${KUBE_NODE_IMAGE:-}"
|
||||
COREOS_CHANNEL="${COREOS_CHANNEL:-alpha}"
|
||||
CONTAINER_RUNTIME="${KUBE_CONTAINER_RUNTIME:-docker}"
|
||||
RKT_VERSION="${KUBE_RKT_VERSION:-0.5.5}"
|
||||
RKT_VERSION="${KUBE_RKT_VERSION:-1.14.0}"
|
||||
|
||||
# Optional: if set to true, kube-up will configure the cluster to run e2e tests.
|
||||
E2E_STORAGE_TEST_ENVIRONMENT=${KUBE_E2E_STORAGE_TEST_ENVIRONMENT:-false}
|
||||
|
@ -47,7 +47,7 @@ MASTER_IMAGE_PROJECT=${KUBE_GCE_MASTER_PROJECT:-google-containers}
|
||||
NODE_IMAGE=${KUBE_GCE_NODE_IMAGE:-${CVM_VERSION}}
|
||||
NODE_IMAGE_PROJECT=${KUBE_GCE_NODE_PROJECT:-google-containers}
|
||||
CONTAINER_RUNTIME=${KUBE_CONTAINER_RUNTIME:-docker}
|
||||
RKT_VERSION=${KUBE_RKT_VERSION:-1.9.1}
|
||||
RKT_VERSION=${KUBE_RKT_VERSION:-1.14.0}
|
||||
RKT_STAGE1_IMAGE=${KUBE_RKT_STAGE1_IMAGE:-coreos.com/rkt/stage1-coreos}
|
||||
|
||||
NETWORK=${KUBE_GCE_NETWORK:-default}
|
||||
|
@ -49,7 +49,7 @@ NODE_IMAGE=${KUBE_GCE_NODE_IMAGE:-${CVM_VERSION}}
|
||||
NODE_IMAGE_PROJECT=${KUBE_GCE_NODE_PROJECT:-google-containers}
|
||||
CONTAINER_RUNTIME=${KUBE_CONTAINER_RUNTIME:-docker}
|
||||
GCI_DOCKER_VERSION=${KUBE_GCI_DOCKER_VERSION:-}
|
||||
RKT_VERSION=${KUBE_RKT_VERSION:-1.9.1}
|
||||
RKT_VERSION=${KUBE_RKT_VERSION:-1.14.0}
|
||||
RKT_STAGE1_IMAGE=${KUBE_RKT_STAGE1_IMAGE:-coreos.com/rkt/stage1-coreos}
|
||||
|
||||
NETWORK=${KUBE_GCE_NETWORK:-e2e}
|
||||
|
@ -178,17 +178,15 @@ func TestCheckVersion(t *testing.T) {
|
||||
}
|
||||
fs.version = "100"
|
||||
tests := []struct {
|
||||
minimumRktBinVersion string
|
||||
recommendedRktBinVersion string
|
||||
minimumRktApiVersion string
|
||||
minimumSystemdVersion string
|
||||
err error
|
||||
calledGetInfo bool
|
||||
calledSystemVersion bool
|
||||
minimumRktBinVersion string
|
||||
minimumRktApiVersion string
|
||||
minimumSystemdVersion string
|
||||
err error
|
||||
calledGetInfo bool
|
||||
calledSystemVersion bool
|
||||
}{
|
||||
// Good versions.
|
||||
{
|
||||
"1.2.3",
|
||||
"1.2.3",
|
||||
"1.2.5",
|
||||
"99",
|
||||
@ -198,7 +196,6 @@ func TestCheckVersion(t *testing.T) {
|
||||
},
|
||||
// Good versions.
|
||||
{
|
||||
"1.2.3+git",
|
||||
"1.2.3+git",
|
||||
"1.2.6-alpha",
|
||||
"100",
|
||||
@ -208,7 +205,6 @@ func TestCheckVersion(t *testing.T) {
|
||||
},
|
||||
// Requires greater binary version.
|
||||
{
|
||||
"1.2.4",
|
||||
"1.2.4",
|
||||
"1.2.6-alpha",
|
||||
"100",
|
||||
@ -218,7 +214,6 @@ func TestCheckVersion(t *testing.T) {
|
||||
},
|
||||
// Requires greater API version.
|
||||
{
|
||||
"1.2.3",
|
||||
"1.2.3",
|
||||
"1.2.6",
|
||||
"100",
|
||||
@ -228,7 +223,6 @@ func TestCheckVersion(t *testing.T) {
|
||||
},
|
||||
// Requires greater API version.
|
||||
{
|
||||
"1.2.3",
|
||||
"1.2.3",
|
||||
"1.2.7",
|
||||
"100",
|
||||
@ -238,7 +232,6 @@ func TestCheckVersion(t *testing.T) {
|
||||
},
|
||||
// Requires greater systemd version.
|
||||
{
|
||||
"1.2.3",
|
||||
"1.2.3",
|
||||
"1.2.7",
|
||||
"101",
|
||||
@ -250,7 +243,7 @@ func TestCheckVersion(t *testing.T) {
|
||||
|
||||
for i, tt := range tests {
|
||||
testCaseHint := fmt.Sprintf("test case #%d", i)
|
||||
err := r.checkVersion(tt.minimumRktBinVersion, tt.recommendedRktBinVersion, tt.minimumRktApiVersion, tt.minimumSystemdVersion)
|
||||
err := r.checkVersion(tt.minimumRktBinVersion, tt.minimumRktApiVersion, tt.minimumSystemdVersion)
|
||||
assert.Equal(t, tt.err, err, testCaseHint)
|
||||
|
||||
if tt.calledGetInfo {
|
||||
|
Loading…
Reference in New Issue
Block a user