Commit 82ffeabe
82ffeabe1af6Merged
Sviatoslav Dumchenko <[email protected]> ยท 3 years ago ยท 2 files ยท ~2 modified
Description
feat(tests): add a bit more tests for kubedog specs
Details
- Commit
- 82ffeabe1af6
- Parent
- 2405caf8246e
pkg/plan/kubedog.gomodifiedView file
@@ -1,6 +1,7 @@
11
package plan22
33
import (4+
"errors"45
"fmt"56
67
"github.com/helmwave/helmwave/pkg/kubedog"@@ -9,6 +10,8 @@
910
"github.com/werf/kubedog/pkg/trackers/rollout/multitrack"1011
)1112
13+
var ErrMultipleKubecontexts = errors.New("kubedog can't work with releases in multiple kubecontexts")14+
1215
type manifestGetter func(release.Config) (string, error)1316
1417
func (p *Plan) kubedogSpecs(@@ -58,7 +61,7 @@
5861
}5962
6063
if len(foundContexts) > 1 {61-
return specs, "", fmt.Errorf("kubedog can't work with releases in multiple kubecontexts")64+
return specs, "", ErrMultipleKubecontexts6265
}6366
6467
return specs, kubecontext, nilpkg/plan/kubedog_internal_test.gomodifiedView file
Loading diffโฆ