1
0
Fork 0

Don't remove ingress config on API call failure

This commit is contained in:
Daniel Tomcej 2021-07-19 12:06:07 -06:00 committed by GitHub
parent 8d4620dc53
commit c2c4dc9b58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 19 deletions

View file

@ -1,6 +1,7 @@
package ingress
import (
"errors"
"fmt"
"testing"
"time"
@ -154,7 +155,8 @@ func TestClientIgnoresHelmOwnedSecrets(t *testing.T) {
stopCh := make(chan struct{})
eventCh, err := client.WatchAll(nil, stopCh)
require.NoError(t, err)
// Fake clientset always returns this exact serverVersion that fails our validation.
require.Error(t, errors.New(`could not parse server version: Malformed version: v0.0.0-master+$Format:%h$`), err)
select {
case event := <-eventCh: