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);