Skip to content

Commit 86b767f

Browse files
gnossenejona86
authored andcommitted
Drop xDS v2 support from bootstrap generator
1 parent 203db6c commit 86b767f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

main.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,6 @@ func generate(in configInput) ([]byte, error) {
216216
},
217217
}
218218

219-
if in.configScope != "" {
220-
c.Node.Metadata["TRAFFICDIRECTOR_SCOPE_NAME"] = in.configScope
221-
}
222-
223219
for k, v := range in.metadataLabels {
224220
c.Node.Metadata[k] = v
225221
}

main_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ func TestGenerate(t *testing.T) {
314314
"INSTANCE_IP": "10.9.8.7",
315315
"TRAFFICDIRECTOR_GCP_PROJECT_NUMBER": "123456789012345",
316316
"TRAFFICDIRECTOR_NETWORK_NAME": "thedefault",
317-
"TRAFFICDIRECTOR_SCOPE_NAME": "testscope",
318317
"TRAFFIC_DIRECTOR_CLIENT_ENVIRONMENT": {
319318
"GCE-VM": "test-gce-vm",
320319
"GCP-ZONE": "uscentral-5",
@@ -357,8 +356,7 @@ func TestGenerate(t *testing.T) {
357356
"cluster": "cluster",
358357
"metadata": {
359358
"TRAFFICDIRECTOR_GCP_PROJECT_NUMBER": "123456789012345",
360-
"TRAFFICDIRECTOR_NETWORK_NAME": "thedefault",
361-
"TRAFFICDIRECTOR_SCOPE_NAME": "testscope"
359+
"TRAFFICDIRECTOR_NETWORK_NAME": "thedefault"
362360
},
363361
"locality": {
364362
"zone": "uscentral-5"

0 commit comments

Comments
 (0)