-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabling JSON output for Terraform instead of writing the HCL syntax …
…tf file. JSON syntax is officially supported in 0.12 and a terraform version requirement will be set. For previous installations you need to delete the .tf file by hand. JSON generation will fail if kubernetes.tf is present. Added Integration Test using minimal test setup Added documentation. For terraform 0.12 support the resource names need to be changed still
- Loading branch information
Showing
8 changed files
with
671 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCtWu40XQo8dczLsCq0OWV+hxm9uV3WxeH9Kgh4sMzQxNtoU1pvW0XdjpkBesRKGoolfWeCLXWxpyQb1IaiMkKoz7MdhQ/6UKjMjP66aFWWp3pwD0uj0HuJ7tq4gKHKRYGTaZIRWpzUiANBrjugVgA+Sd7E/mYwc/DMXkIyRZbvhQ== |
76 changes: 76 additions & 0 deletions
76
tests/integration/update_cluster/minimal-json/in-v1alpha0.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
apiVersion: kops.k8s.io/v1alpha1 | ||
kind: Cluster | ||
metadata: | ||
creationTimestamp: "2016-12-10T22:42:27Z" | ||
name: minimal-json.example.com | ||
spec: | ||
adminAccess: | ||
- 0.0.0.0/0 | ||
channel: stable | ||
cloudProvider: aws | ||
configBase: memfs://clusters.example.com/minimal-json.example.com | ||
etcdClusters: | ||
- etcdMembers: | ||
- name: us-test-1a | ||
zone: us-test-1a | ||
name: main | ||
- etcdMembers: | ||
- name: us-test-1a | ||
zone: us-test-1a | ||
name: events | ||
kubernetesVersion: v1.14.0 | ||
masterInternalName: api.internal.minimal-json.example.com | ||
masterPublicName: api.minimal-json.example.com | ||
networkCIDR: 172.20.0.0/16 | ||
networking: | ||
kubenet: {} | ||
nonMasqueradeCIDR: 100.64.0.0/10 | ||
topology: | ||
bastion: | ||
idleTimeout: 120 | ||
machineType: t2.medium | ||
masters: public | ||
nodes: public | ||
zones: | ||
- cidr: 172.20.32.0/19 | ||
name: us-test-1a | ||
|
||
--- | ||
|
||
apiVersion: kops.k8s.io/v1alpha1 | ||
kind: InstanceGroup | ||
metadata: | ||
creationTimestamp: "2016-12-10T22:42:28Z" | ||
name: nodes | ||
labels: | ||
kops.k8s.io/cluster: minimal-json.example.com | ||
spec: | ||
associatePublicIp: true | ||
image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 | ||
machineType: t2.medium | ||
maxSize: 2 | ||
minSize: 2 | ||
role: Node | ||
zones: | ||
- us-test-1a | ||
|
||
--- | ||
|
||
apiVersion: kops.k8s.io/v1alpha1 | ||
kind: InstanceGroup | ||
metadata: | ||
creationTimestamp: "2016-12-10T22:42:28Z" | ||
name: master-us-test-1a | ||
labels: | ||
kops.k8s.io/cluster: minimal-json.example.com | ||
spec: | ||
associatePublicIp: true | ||
image: kope.io/k8s-1.4-debian-jessie-amd64-hvm-ebs-2016-10-21 | ||
machineType: m3.medium | ||
maxSize: 1 | ||
minSize: 1 | ||
role: Master | ||
zones: | ||
- us-test-1a | ||
|
||
|
Oops, something went wrong.