From f95369812c0b15235eca907d6a4183b2a926444d Mon Sep 17 00:00:00 2001 From: Thomas Bouldin Date: Tue, 14 Dec 2021 12:39:41 -0800 Subject: [PATCH] Stop setting deployment tool on v2 updates (#3944) Co-authored-by: Bryan Kendall --- src/deploy/functions/release/fabricator.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/deploy/functions/release/fabricator.ts b/src/deploy/functions/release/fabricator.ts index 654ddefe9dc..969c5720d57 100644 --- a/src/deploy/functions/release/fabricator.ts +++ b/src/deploy/functions/release/fabricator.ts @@ -172,7 +172,10 @@ export class Fabricator { } async updateEndpoint(update: planner.EndpointUpdate, scraper: SourceTokenScraper): Promise { - update.endpoint.labels = { ...update.endpoint.labels, ...deploymentTool.labels() }; + // GCF team wants us to stop setting the deployment-tool labels on updates for gen 2 + if (update.deleteAndRecreate || update.endpoint.platform !== "gcfv2") { + update.endpoint.labels = { ...update.endpoint.labels, ...deploymentTool.labels() }; + } if (update.deleteAndRecreate) { await this.deleteEndpoint(update.deleteAndRecreate); await this.createEndpoint(update.endpoint, scraper);