File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,25 @@ import (
9
9
10
10
"github.com/pkg/errors"
11
11
"github.com/replicatedhq/kots/pkg/archives"
12
+ "github.com/replicatedhq/kots/pkg/k8sutil"
12
13
identity "github.com/replicatedhq/kots/pkg/kotsadmidentity"
13
14
"github.com/replicatedhq/kots/pkg/kotsutil"
14
15
"github.com/replicatedhq/kots/pkg/logger"
15
16
"github.com/replicatedhq/kots/pkg/pull"
16
17
registrytypes "github.com/replicatedhq/kots/pkg/registry/types"
18
+ upgradepreflight "github.com/replicatedhq/kots/pkg/upgradeservice/preflight"
17
19
"github.com/replicatedhq/kots/pkg/upgradeservice/task"
18
20
"github.com/replicatedhq/kots/pkg/upgradeservice/types"
19
21
"github.com/replicatedhq/kots/pkg/util"
20
22
)
21
23
22
24
func bootstrap (params types.UpgradeServiceParams ) (finalError error ) {
25
+ if err := k8sutil .InitHelmCapabilities (); err != nil {
26
+ return errors .Wrap (err , "failed to init helm capabilities" )
27
+ }
28
+ if err := upgradepreflight .Init (); err != nil {
29
+ return errors .Wrap (err , "failed to init preflight" )
30
+ }
23
31
if params .AppIsAirgap {
24
32
if err := pullArchiveFromAirgap (params ); err != nil {
25
33
return errors .Wrap (err , "failed to pull archive from airgap" )
Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ func Serve(params types.UpgradeServiceParams) error {
30
30
return errors .Wrap (err , "failed to bootstrap" )
31
31
}
32
32
33
- if err := upgradepreflight .Init (); err != nil {
34
- return errors .Wrap (err , "failed to init preflight" )
35
- }
36
-
37
33
r := mux .NewRouter ()
38
34
r .Use (handlers .ParamsMiddleware (params ))
39
35
You can’t perform that action at this time.
0 commit comments