Fix list and create tests for all storage drivers

Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
pull/8546/head
Dmitry Chepurovskiy 5 years ago
parent 37c4a13ea1
commit 0be57298db
No known key found for this signature in database
GPG Key ID: A9B6ED8F3D834514

Binary file not shown.

@ -86,15 +86,18 @@ func decodeRelease(data string) (*rspb.Release, error) {
// Returns array of system labels' keys // Returns array of system labels' keys
func systemLablesKeys() []string { func systemLablesKeys() []string {
return []string{"name", "owner", "status", "version"} return []string{"name", "owner", "status", "version", "createdAt", "modifiedAt"}
} }
// Removes system labels // Removes system labels
func filterSystemLabels(lbs map[string]string) map[string]string { func filterSystemLabels(lbs map[string]string) map[string]string {
for _, k := range systemLablesKeys() { result := make(map[string]string)
delete(lbs, k) for k, v := range lbs {
if !isSystemLabel(k){
result[k] = v
}
} }
return lbs return result
} }
func isSystemLabel(key string) bool { func isSystemLabel(key string) bool {

Loading…
Cancel
Save