From 631503fc1b5c824f9cd81ecf41f74145d1ca0abe Mon Sep 17 00:00:00 2001 From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Date: Fri, 17 Feb 2023 13:56:01 +1300 Subject: [PATCH] fix(upgrade): add label to upgrade mustache template [EE-5029] (#8505) --- api/go.sum | 2 +- mustache-templates/upgrade-docker.yml.mustache | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/go.sum b/api/go.sum index db840b18f..43297ee02 100644 --- a/api/go.sum +++ b/api/go.sum @@ -754,4 +754,4 @@ sigs.k8s.io/structured-merge-diff/v4 v4.2.3/go.mod h1:qjx8mGObPmV2aSZepjQjbmb2ih sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q= sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= software.sslmate.com/src/go-pkcs12 v0.0.0-20210415151418-c5206de65a78 h1:SqYE5+A2qvRhErbsXFfUEUmpWEKxxRSMgGLkvRAFOV4= -software.sslmate.com/src/go-pkcs12 v0.0.0-20210415151418-c5206de65a78/go.mod h1:B7Wf0Ya4DHF9Yw+qfZuJijQYkWicqDa+79Ytmmq3Kjg= +software.sslmate.com/src/go-pkcs12 v0.0.0-20210415151418-c5206de65a78/go.mod h1:B7Wf0Ya4DHF9Yw+qfZuJijQYkWicqDa+79Ytmmq3Kjg= \ No newline at end of file diff --git a/mustache-templates/upgrade-docker.yml.mustache b/mustache-templates/upgrade-docker.yml.mustache index 5b931b01f..e70c4b7c7 100644 --- a/mustache-templates/upgrade-docker.yml.mustache +++ b/mustache-templates/upgrade-docker.yml.mustache @@ -3,6 +3,9 @@ version: "3" services: updater: image: {{updater_image}}{{^updater_image}}portainer/portainer-updater:latest{{/updater_image}} + labels: + - io.portainer.hideStack=true + - io.portainer.updater=true command: ["portainer", "--image", "{{image}}{{^image}}portainer/portainer-ee:latest{{/image}}", "--env-type", "{{envType}}{{^envType}}standalone{{/envType}}",