fix(storage): filter out system labels from custom labels apply

Signed-off-by: maxime1907 <19607336+maxime1907@users.noreply.github.com>
pull/13485/head
maxime1907 10 months ago
parent e0a33f095b
commit 99259a83be

@ -245,9 +245,9 @@ func newConfigMapsObject(key string, rls *rspb.Release, lbs labels) (*v1.ConfigM
}
// apply custom labels
lbs.fromMap(rls.Labels)
lbs.fromMap(filterSystemLabels(rls.Labels))
// apply labels
// apply system labels
lbs.set("name", rls.Name)
lbs.set("owner", owner)
lbs.set("status", rls.Info.Status.String())

@ -227,9 +227,9 @@ func newSecretsObject(key string, rls *rspb.Release, lbs labels) (*v1.Secret, er
}
// apply custom labels
lbs.fromMap(rls.Labels)
lbs.fromMap(filterSystemLabels(rls.Labels))
// apply labels
// apply system labels
lbs.set("name", rls.Name)
lbs.set("owner", owner)
lbs.set("status", rls.Info.Status.String())

Loading…
Cancel
Save