format: gofmt

Signed-off-by: Louis Cabrol <louis@cabrol.xyz>
pull/11791/head
Louis Cabrol 3 years ago
parent ab7fb02af7
commit fa8c3e69a2

@ -434,7 +434,7 @@ func newSecretObjects(key string, rls *rspb.Release, lbs labels) ([]*v1.Secret,
} }
// check if we'll need another partial chunk // check if we'll need another partial chunk
if idxStop != len(releaseBytes) { if idxStop != len(releaseBytes) {
currentChunkIndex++ // increment current chunk currentChunkIndex++ // increment current chunk
currentChunkKey = makePartialKey(rls.Name, rls.Version, currentChunkIndex) // make key for the next chunk currentChunkKey = makePartialKey(rls.Name, rls.Version, currentChunkIndex) // make key for the next chunk
currentSecret.ObjectMeta.Labels["continuedIn"] = currentChunkKey // store reference to it 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) t.Errorf("Expected {%v}, got {%v}", ErrReleaseNotFound, err)
} }
// Check that there's no leftover partial secrets // 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) t.Errorf("Expected no extra secret, found {%s}", key)
} }
} }

Loading…
Cancel
Save