mirror of https://github.com/kubernetes/kops.git
Convert TestMinimal_json to v1alpha2 API
This commit is contained in:
parent
4a740942fb
commit
d9e999d377
|
|
@ -138,7 +138,7 @@ func TestMinimal_json(t *testing.T) {
|
||||||
featureflag.ParseFlags("-TerraformJSON")
|
featureflag.ParseFlags("-TerraformJSON")
|
||||||
}
|
}
|
||||||
defer unsetFeaureFlag()
|
defer unsetFeaureFlag()
|
||||||
runTestAWS(t, "minimal-json.example.com", "minimal-json", "v1alpha0", false, 1, true, false, nil, true, true)
|
runTestAWS(t, "minimal-json.example.com", "minimal-json", "v1alpha2", false, 1, true, false, nil, true, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestMinimal_141 runs the test on a configuration from 1.4.1 release
|
// TestMinimal_141 runs the test on a configuration from 1.4.1 release
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
apiVersion: kops.k8s.io/v1alpha1
|
apiVersion: kops.k8s.io/v1alpha2
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: "2016-12-10T22:42:27Z"
|
creationTimestamp: "2016-12-10T22:42:27Z"
|
||||||
name: minimal-json.example.com
|
name: minimal-json.example.com
|
||||||
spec:
|
spec:
|
||||||
adminAccess:
|
kubernetesApiAccess:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
channel: stable
|
channel: stable
|
||||||
cloudProvider: aws
|
cloudProvider: aws
|
||||||
configBase: memfs://clusters.example.com/minimal-json.example.com
|
configBase: memfs://clusters.example.com/minimal-json.example.com
|
||||||
etcdClusters:
|
etcdClusters:
|
||||||
- etcdMembers:
|
- etcdMembers:
|
||||||
- name: us-test-1a
|
- instanceGroup: master-us-test-1a
|
||||||
zone: us-test-1a
|
name: us-test-1a
|
||||||
name: main
|
name: main
|
||||||
- etcdMembers:
|
- etcdMembers:
|
||||||
- name: us-test-1a
|
- instanceGroup: master-us-test-1a
|
||||||
zone: us-test-1a
|
name: us-test-1a
|
||||||
name: events
|
name: events
|
||||||
kubernetesVersion: v1.14.0
|
kubernetesVersion: v1.14.0
|
||||||
masterInternalName: api.internal.minimal-json.example.com
|
masterInternalName: api.internal.minimal-json.example.com
|
||||||
|
|
@ -25,19 +25,20 @@ spec:
|
||||||
networking:
|
networking:
|
||||||
kubenet: {}
|
kubenet: {}
|
||||||
nonMasqueradeCIDR: 100.64.0.0/10
|
nonMasqueradeCIDR: 100.64.0.0/10
|
||||||
|
sshAccess:
|
||||||
|
- 0.0.0.0/0
|
||||||
topology:
|
topology:
|
||||||
bastion:
|
|
||||||
idleTimeout: 120
|
|
||||||
machineType: t2.medium
|
|
||||||
masters: public
|
masters: public
|
||||||
nodes: public
|
nodes: public
|
||||||
zones:
|
subnets:
|
||||||
- cidr: 172.20.32.0/19
|
- cidr: 172.20.32.0/19
|
||||||
name: us-test-1a
|
name: us-test-1a
|
||||||
|
type: Public
|
||||||
|
zone: us-test-1a
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: kops.k8s.io/v1alpha1
|
apiVersion: kops.k8s.io/v1alpha2
|
||||||
kind: InstanceGroup
|
kind: InstanceGroup
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: "2016-12-10T22:42:28Z"
|
creationTimestamp: "2016-12-10T22:42:28Z"
|
||||||
|
|
@ -51,12 +52,12 @@ spec:
|
||||||
maxSize: 2
|
maxSize: 2
|
||||||
minSize: 2
|
minSize: 2
|
||||||
role: Node
|
role: Node
|
||||||
zones:
|
subnets:
|
||||||
- us-test-1a
|
- us-test-1a
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: kops.k8s.io/v1alpha1
|
apiVersion: kops.k8s.io/v1alpha2
|
||||||
kind: InstanceGroup
|
kind: InstanceGroup
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: "2016-12-10T22:42:28Z"
|
creationTimestamp: "2016-12-10T22:42:28Z"
|
||||||
|
|
@ -70,7 +71,7 @@ spec:
|
||||||
maxSize: 1
|
maxSize: 1
|
||||||
minSize: 1
|
minSize: 1
|
||||||
role: Master
|
role: Master
|
||||||
zones:
|
subnets:
|
||||||
- us-test-1a
|
- us-test-1a
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue