Signed-off-by: Louis Cabrol <louis@cabrol.xyz>
@ -434,7 +434,7 @@ func newSecretObjects(key string, rls *rspb.Release, lbs labels) ([]*v1.Secret,
}
// check if we'll need another partial chunk
if idxStop != len(releaseBytes) {
currentChunkIndex++ // increment current chunk
currentChunkKey = makePartialKey(rls.Name, rls.Version, currentChunkIndex) // make key for the next chunk
currentSecret.ObjectMeta.Labels["continuedIn"] = currentChunkKey // store reference to it
@ -486,7 +486,7 @@ func TestSecretDeleteLarge(t *testing.T) {
t.Errorf("Expected {%v}, got {%v}", ErrReleaseNotFound, err)
// Check that there's no leftover partial secrets
for key, _ := range secrets.impl.(*MockSecretsInterface).objects {
for key := range secrets.impl.(*MockSecretsInterface).objects {
t.Errorf("Expected no extra secret, found {%s}", key)