File tree 4 files changed +14
-13
lines changed
4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 5
5
"os"
6
6
"path/filepath"
7
7
8
- "k8s.io/client-go/util/homedir"
9
-
10
8
flag "github.com/spf13/pflag"
9
+ "k8s.io/client-go/util/homedir"
11
10
"k8s.io/helm/pkg/helm"
12
11
helm_env "k8s.io/helm/pkg/helm/environment"
13
12
"k8s.io/helm/pkg/tlsutil"
Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ import (
6
6
"os"
7
7
"strconv"
8
8
9
- "github.com/databus23/helm-diff/diff"
10
- "github.com/databus23/helm-diff/manifest"
11
9
"github.com/spf13/cobra"
12
10
"k8s.io/helm/pkg/helm"
11
+
12
+ "github.com/databus23/helm-diff/diff"
13
+ "github.com/databus23/helm-diff/manifest"
13
14
)
14
15
15
16
type revision struct {
@@ -43,7 +44,7 @@ func revisionCmd() *cobra.Command {
43
44
Use : "revision [flags] RELEASE REVISION1 [REVISION2]" ,
44
45
Short : "Shows diff between revision's manifests" ,
45
46
Long : revisionCmdLongUsage ,
46
- PersistentPreRun : func (* cobra.Command , []string ) {
47
+ PreRun : func (* cobra.Command , []string ) {
47
48
expandTLSPaths ()
48
49
},
49
50
RunE : func (cmd * cobra.Command , args []string ) error {
Original file line number Diff line number Diff line change 1
1
package cmd
2
2
3
3
import (
4
+ "errors"
4
5
"fmt"
5
6
"os"
6
7
"strconv"
7
8
8
- "errors"
9
- "github.com/databus23/helm-diff/diff"
10
- "github.com/databus23/helm-diff/manifest"
11
9
"github.com/spf13/cobra"
12
10
"k8s.io/helm/pkg/helm"
11
+
12
+ "github.com/databus23/helm-diff/diff"
13
+ "github.com/databus23/helm-diff/manifest"
13
14
)
14
15
15
16
type rollback struct {
@@ -35,7 +36,7 @@ func rollbackCmd() *cobra.Command {
35
36
Short : "Show a diff explaining what a helm rollback could perform" ,
36
37
Long : rollbackCmdLongUsage ,
37
38
Example : " helm diff rollback my-release 2" ,
38
- PersistentPreRun : func (* cobra.Command , []string ) {
39
+ PreRun : func (* cobra.Command , []string ) {
39
40
expandTLSPaths ()
40
41
},
41
42
RunE : func (cmd * cobra.Command , args []string ) error {
Original file line number Diff line number Diff line change 1
1
package cmd
2
2
3
3
import (
4
+ "errors"
4
5
"fmt"
5
6
"os"
6
7
"strings"
7
8
8
- "errors"
9
+ "github.com/spf13/cobra"
10
+ "k8s.io/helm/pkg/helm"
9
11
10
12
"github.com/databus23/helm-diff/diff"
11
13
"github.com/databus23/helm-diff/manifest"
12
- "github.com/spf13/cobra"
13
- "k8s.io/helm/pkg/helm"
14
14
)
15
15
16
16
type diffCmd struct {
@@ -51,7 +51,7 @@ func newChartCommand() *cobra.Command {
51
51
Args : func (cmd * cobra.Command , args []string ) error {
52
52
return checkArgsLength (len (args ), "release name" , "chart path" )
53
53
},
54
- PersistentPreRun : func (* cobra.Command , []string ) {
54
+ PreRun : func (* cobra.Command , []string ) {
55
55
expandTLSPaths ()
56
56
},
57
57
RunE : func (cmd * cobra.Command , args []string ) error {
You can’t perform that action at this time.
0 commit comments