Skip to content

Commit

Permalink
Stop setting deployment tool on v2 updates (#3944)
Browse files Browse the repository at this point in the history
Co-authored-by: Bryan Kendall <bkend@google.com>
  • Loading branch information
inlined and bkendall authored Dec 14, 2021
1 parent 28df16c commit f953698
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/deploy/functions/release/fabricator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ export class Fabricator {
}

async updateEndpoint(update: planner.EndpointUpdate, scraper: SourceTokenScraper): Promise<void> {
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);
Expand Down

0 comments on commit f953698

Please sign in to comment.