From 341cbd8c39b3f15e18cd1f11382195a6fdc3eec1 Mon Sep 17 00:00:00 2001 From: Marcin Chojnacki Date: Thu, 26 Oct 2023 18:24:40 +0200 Subject: [PATCH] Fixing and improving release labelling in rollback 1. Fixed propagating labels to rollback release 2. Added '-l' option to manage labels during rollback Signed-off-by: Marcin Chojnacki --- cmd/helm/rollback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/rollback.go b/cmd/helm/rollback.go index 783237ea7..b13ff68b2 100644 --- a/cmd/helm/rollback.go +++ b/cmd/helm/rollback.go @@ -85,7 +85,7 @@ func newRollbackCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { f.BoolVar(&client.WaitForJobs, "wait-for-jobs", false, "if set and --wait enabled, will wait until all Jobs have been completed before marking the release as successful. It will wait for as long as --timeout") f.BoolVar(&client.CleanupOnFail, "cleanup-on-fail", false, "allow deletion of new resources created in this rollback when rollback fails") f.IntVar(&client.MaxHistory, "history-max", settings.MaxHistory, "limit the maximum number of revisions saved per release. Use 0 for no limit") - f.StringToStringVarP(&client.Labels, "labels", "l", nil, "Labels that would be added to release metadata. Should be divided by comma. By default labels are propagated from the rollback target release.") + f.StringToStringVarP(&client.Labels, "labels", "l", nil, "Labels that would be added to release metadata. Should be divided by comma. Labels from the rollback target release and will be merged with rollback labels. You can unset label using null.") return cmd }