mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
misc: handle undhandled error
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
16d352b15b
commit
b67a46371b
1 changed files with 3 additions and 0 deletions
|
|
@ -203,6 +203,9 @@ func NewTestEnvKubeManager(testClusterMode TestClusterMode) (*testEnvKubeManager
|
|||
|
||||
useExistingCluster := true
|
||||
config, err := clientcmd.BuildConfigFromFlags("", testKubeConfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
testEnv := &envtest.Environment{
|
||||
UseExistingCluster: &useExistingCluster,
|
||||
Config: config,
|
||||
|
|
|
|||
Loading…
Reference in a new issue