Added labels info to test release generator. Now all tests for storage drivers should fail due to missing support of labels saving.

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

@ -37,8 +37,9 @@ type Release struct {
Version int `json:"version,omitempty"` Version int `json:"version,omitempty"`
// Namespace is the kubernetes namespace of the release. // Namespace is the kubernetes namespace of the release.
Namespace string `json:"namespace,omitempty"` Namespace string `json:"namespace,omitempty"`
// Labels of the release // Labels of the release.
Labels map[string]string `json:"labels,omitempty"` // Disabled encoding into Json cause labels are stored in storage driver metadata field.
Labels map[string]string `json:"-"`
} }
// SetStatus is a helper for setting the status on a release. // SetStatus is a helper for setting the status on a release.

@ -40,6 +40,7 @@ func releaseStub(name string, vers int, namespace string, status rspb.Status) *r
Version: vers, Version: vers,
Namespace: namespace, Namespace: namespace,
Info: &rspb.Info{Status: status}, Info: &rspb.Info{Status: status},
Labels: map[string]string{"key": "value"},
} }
} }

Loading…
Cancel
Save