|
|
@ -20,7 +20,6 @@ import (
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
"io"
|
|
|
|
"log"
|
|
|
|
"log"
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
"time"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/pkg/errors"
|
|
|
|
"github.com/pkg/errors"
|
|
|
@ -84,10 +83,8 @@ func newUpgradeCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
return nil, cobra.ShellCompDirectiveNoFileComp
|
|
|
|
return nil, cobra.ShellCompDirectiveNoFileComp
|
|
|
|
},
|
|
|
|
},
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
if strings.HasPrefix(args[1], "oci://") {
|
|
|
|
if err := checkOCI(args[1]); err != nil {
|
|
|
|
if !FeatureGateOCI.IsEnabled() {
|
|
|
|
return err
|
|
|
|
return FeatureGateOCI.Error()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
client.Namespace = settings.Namespace()
|
|
|
|
client.Namespace = settings.Namespace()
|
|
|
|