mirror of
https://github.com/helm/helm.git
synced 2026-08-04 15:10:47 +00:00
Make default release fixture contain custom labels to make tests check that labels are not lost
Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net> Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
This commit is contained in:
committed by
Dmitry Chepurovskiy
parent
68721de93d
commit
2f29ccb9d0
@@ -40,6 +40,10 @@ func releaseStub(name string, vers int, namespace string, status rspb.Status) *r
|
||||
Version: vers,
|
||||
Namespace: namespace,
|
||||
Info: &rspb.Info{Status: status},
|
||||
Labels: map[string]string{
|
||||
"k1": "v1",
|
||||
"k2": "v2",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -104,10 +104,5 @@ func filterSystemLabels(lbs map[string]string) map[string]string {
|
||||
result[k] = v
|
||||
}
|
||||
}
|
||||
|
||||
// Workaround to make tests work while labels storage is not implemented for SQL storage driver
|
||||
if len(result) == 0 {
|
||||
return nil
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user