Don't remove ingress config on API call failure
This commit is contained in:
parent
8d4620dc53
commit
c2c4dc9b58
4 changed files with 19 additions and 19 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue