From 4cd8dbae3fe4f7c12ad93936ab229cdae2f46886 Mon Sep 17 00:00:00 2001 From: Rodrigo Menezes Date: Tue, 2 Oct 2018 01:42:46 -0700 Subject: [PATCH] Update tests --- docs/security_groups.md | 6 +++--- .../update_cluster/existing_sg/in-v1alpha2.yaml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/security_groups.md b/docs/security_groups.md index 4083fba567..9e6323d9f1 100644 --- a/docs/security_groups.md +++ b/docs/security_groups.md @@ -22,7 +22,7 @@ metadata: spec: api: loadBalancer: - SecurityGroupOverride: sg-abcd1234 + securityGroupOverride: sg-abcd1234 . . @@ -36,14 +36,14 @@ metadata: kops.k8s.io/cluster: mycluster.example.com name: master-us-test-1a spec: - SecurityGroupOverride: sg-1234dcba + securityGroupOverride: sg-1234dcba ``` Now run a cluster update to create the new launch configuration, using [lifecycle overrides](./cli/kops_update_cluster.md#options) to prevent Security Group resources from being created: ``` -kops update cluster ${CLUSTER_NAME} --yes --lifecycle-overrides IAMRole=SecurityGroup=ExistsAndWarnIfChanges,SecurityGroupRule=ExistsAndWarnIfChanges +kops update cluster ${CLUSTER_NAME} --yes --lifecycle-overrides SecurityGroup=ExistsAndWarnIfChanges,SecurityGroupRule=ExistsAndWarnIfChanges ``` *Everytime `kops update cluster` is ran, it must include the above `--lifecycle-overrides`.* diff --git a/tests/integration/update_cluster/existing_sg/in-v1alpha2.yaml b/tests/integration/update_cluster/existing_sg/in-v1alpha2.yaml index fcd768e0a5..5a019aff5d 100644 --- a/tests/integration/update_cluster/existing_sg/in-v1alpha2.yaml +++ b/tests/integration/update_cluster/existing_sg/in-v1alpha2.yaml @@ -6,7 +6,7 @@ metadata: spec: api: loadBalancer: - SecurityGroupOverride: sg-abcd1234 + securityGroupOverride: sg-abcd1234 kubernetesApiAccess: - 0.0.0.0/0 channel: stable @@ -72,7 +72,7 @@ spec: role: Master subnets: - us-test-1a - SecurityGroupOverride: sg-1234dcba + securityGroupOverride: sg-1234dcba --- @@ -91,7 +91,7 @@ spec: role: Master subnets: - us-test-1b - SecurityGroupOverride: sg-1234dcba + securityGroupOverride: sg-1234dcba --- @@ -110,7 +110,7 @@ spec: role: Master subnets: - us-test-1c - SecurityGroupOverride: sg-1234dcba + securityGroupOverride: sg-1234dcba --- @@ -130,5 +130,5 @@ spec: role: Node subnets: - us-test-1a - SecurityGroupOverride: sg-1234abcd + securityGroupOverride: sg-1234abcd