mirror of https://github.com/kubernetes/kops.git
Fix tests and spelling
This commit is contained in:
parent
ce036d397d
commit
3799d135a3
|
@ -1,7 +1,7 @@
|
|||
# Terraform 0.12 Naming Compatability
|
||||
# Terraform 0.12 Naming Compatibility
|
||||
|
||||
Terraform 0.12 introduced new restrictions on naming, breaking
|
||||
compatability with earlier terraform versions when resource names
|
||||
compatibility with earlier terraform versions when resource names
|
||||
start with a number. Single-zone etcd clusters (and possibly some
|
||||
other scenarios) would generate terraform names for EBS volumes that
|
||||
start with a number, which are no longer permitted.
|
||||
|
|
|
@ -1116,7 +1116,7 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"AWSEC2Volume1aetcdeventscomplexexamplecom": {
|
||||
"AWSEC2Volumeaetcdeventscomplexexamplecom": {
|
||||
"Type": "AWS::EC2::Volume",
|
||||
"Properties": {
|
||||
"AvailabilityZone": "us-test-1a",
|
||||
|
@ -1130,7 +1130,7 @@
|
|||
},
|
||||
{
|
||||
"Key": "Name",
|
||||
"Value": "1a.etcd-events.complex.example.com"
|
||||
"Value": "a.etcd-events.complex.example.com"
|
||||
},
|
||||
{
|
||||
"Key": "Owner",
|
||||
|
@ -1142,7 +1142,7 @@
|
|||
},
|
||||
{
|
||||
"Key": "k8s.io/etcd/events",
|
||||
"Value": "1a/1a"
|
||||
"Value": "a/a"
|
||||
},
|
||||
{
|
||||
"Key": "k8s.io/role/master",
|
||||
|
@ -1155,7 +1155,7 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"AWSEC2Volume1aetcdmaincomplexexamplecom": {
|
||||
"AWSEC2Volumeaetcdmaincomplexexamplecom": {
|
||||
"Type": "AWS::EC2::Volume",
|
||||
"Properties": {
|
||||
"AvailabilityZone": "us-test-1a",
|
||||
|
@ -1169,7 +1169,7 @@
|
|||
},
|
||||
{
|
||||
"Key": "Name",
|
||||
"Value": "1a.etcd-main.complex.example.com"
|
||||
"Value": "a.etcd-main.complex.example.com"
|
||||
},
|
||||
{
|
||||
"Key": "Owner",
|
||||
|
@ -1181,7 +1181,7 @@
|
|||
},
|
||||
{
|
||||
"Key": "k8s.io/etcd/main",
|
||||
"Value": "1a/1a"
|
||||
"Value": "a/a"
|
||||
},
|
||||
{
|
||||
"Key": "k8s.io/role/master",
|
||||
|
|
|
@ -26,11 +26,11 @@ spec:
|
|||
etcdClusters:
|
||||
- etcdMembers:
|
||||
- instanceGroup: master-us-test-1a
|
||||
name: 1a
|
||||
name: a
|
||||
name: main
|
||||
- etcdMembers:
|
||||
- instanceGroup: master-us-test-1a
|
||||
name: 1a
|
||||
name: a
|
||||
name: events
|
||||
iam:
|
||||
permissionsBoundary: arn:aws:iam:00000000000:policy/boundaries
|
||||
|
|
|
@ -26,11 +26,11 @@ spec:
|
|||
etcdClusters:
|
||||
- etcdMembers:
|
||||
- instanceGroup: master-us-test-1a
|
||||
name: 1a
|
||||
name: a
|
||||
name: main
|
||||
- etcdMembers:
|
||||
- instanceGroup: master-us-test-1a
|
||||
name: 1a
|
||||
name: a
|
||||
name: events
|
||||
iam:
|
||||
permissionsBoundary: arn:aws:iam:00000000000:policy/boundaries
|
||||
|
|
|
@ -203,32 +203,32 @@ resource "aws_autoscaling_group" "nodes-complex-example-com" {
|
|||
vpc_zone_identifier = [aws_subnet.us-test-1a-complex-example-com.id]
|
||||
}
|
||||
|
||||
resource "aws_ebs_volume" "ebs-1a-etcd-events-complex-example-com" {
|
||||
resource "aws_ebs_volume" "a-etcd-events-complex-example-com" {
|
||||
availability_zone = "us-test-1a"
|
||||
encrypted = false
|
||||
size = 20
|
||||
tags = {
|
||||
"KubernetesCluster" = "complex.example.com"
|
||||
"Name" = "1a.etcd-events.complex.example.com"
|
||||
"Name" = "a.etcd-events.complex.example.com"
|
||||
"Owner" = "John Doe"
|
||||
"foo/bar" = "fib+baz"
|
||||
"k8s.io/etcd/events" = "1a/1a"
|
||||
"k8s.io/etcd/events" = "a/a"
|
||||
"k8s.io/role/master" = "1"
|
||||
"kubernetes.io/cluster/complex.example.com" = "owned"
|
||||
}
|
||||
type = "gp2"
|
||||
}
|
||||
|
||||
resource "aws_ebs_volume" "ebs-1a-etcd-main-complex-example-com" {
|
||||
resource "aws_ebs_volume" "a-etcd-main-complex-example-com" {
|
||||
availability_zone = "us-test-1a"
|
||||
encrypted = false
|
||||
size = 20
|
||||
tags = {
|
||||
"KubernetesCluster" = "complex.example.com"
|
||||
"Name" = "1a.etcd-main.complex.example.com"
|
||||
"Name" = "a.etcd-main.complex.example.com"
|
||||
"Owner" = "John Doe"
|
||||
"foo/bar" = "fib+baz"
|
||||
"k8s.io/etcd/main" = "1a/1a"
|
||||
"k8s.io/etcd/main" = "a/a"
|
||||
"k8s.io/role/master" = "1"
|
||||
"kubernetes.io/cluster/complex.example.com" = "owned"
|
||||
}
|
||||
|
|
|
@ -271,7 +271,7 @@ func (e *EBSVolume) PreRun(c *fi.Context) error {
|
|||
_, usedPrefix := e.TerraformName()
|
||||
if usedPrefix {
|
||||
if os.Getenv("KOPS_TERRAFORM_0_12_RENAMED") == "" {
|
||||
fmt.Fprintf(os.Stderr, "Terraform 0.12 broke compatability and disallowed names that begin with a number.\n")
|
||||
fmt.Fprintf(os.Stderr, "Terraform 0.12 broke compatibility and disallowed names that begin with a number.\n")
|
||||
fmt.Fprintf(os.Stderr, " To move an existing cluster to the new syntax, you must first move existing volumes to the new names.\n")
|
||||
fmt.Fprintf(os.Stderr, " To indicate that you have already performed the rename, pass KOPS_TERRAFORM_0_12_RENAMED=ebs environment variable.\n")
|
||||
fmt.Fprintf(os.Stderr, " Not doing so will result in data loss.\n")
|
||||
|
|
Loading…
Reference in New Issue