Skip to content

Commit

Permalink
[test] test ci
Browse files Browse the repository at this point in the history
Signed-off-by: varshaprasad96 <varshaprasad96@gmail.com>
  • Loading branch information
varshaprasad96 committed Oct 15, 2021
1 parent d1f2fa8 commit 2f04ded
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,26 @@ import (
"sigs.k8s.io/kubebuilder/v3/pkg/model/stage"
"sigs.k8s.io/kubebuilder/v3/pkg/plugin"

hybridcmd "github.com/operator-framework/helm-operator-plugins/internal/cmd/hybrid-operator/run"
"github.com/operator-framework/helm-operator-plugins/internal/cmd/hybrid-operator/run"
"github.com/operator-framework/helm-operator-plugins/internal/version"
pluginv1 "github.com/operator-framework/helm-operator-plugins/pkg/plugins/helm/v1"
pluginv1alpha "github.com/operator-framework/helm-operator-plugins/pkg/plugins/hybrid/v1alpha"
kustomizev1 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/common/kustomize/v1"
golangv3 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/golang/v3"
)

func main() {
commands := []*cobra.Command{
hybridcmd.NewCmd(),
run.NewCmd(),
}
c, err := cli.New(
cli.WithCommandName("helm-operator"),
cli.WithVersion(getVersion()),
cli.WithPlugins(
getHybridPlugin(),
golangv3.Plugin{},
getHelmPlugin(),
),
cli.WithDefaultProjectVersion(config.Version),
cli.WithDefaultPlugins(config.Version, getHybridPlugin(), getHelmPlugin()),
cli.WithDefaultPlugins(config.Version, getHybridPlugin()),
cli.WithExtraCommands(commands...),
)
if err != nil {
Expand All @@ -72,11 +70,3 @@ func getHybridPlugin() plugin.Bundle {
)
return hybridBundle
}

func getHelmPlugin() plugin.Bundle {
helmBundle, _ := plugin.NewBundle("helm", plugin.Version{Number: 1},
kustomizev1.Plugin{},
pluginv1.Plugin{},
)
return helmBundle
}

0 comments on commit 2f04ded

Please sign in to comment.