Skip to content

Commit

Permalink
feat: kubectl exposed via werf kubectl
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Mar 18, 2022
1 parent 40bd0c6 commit c6435d8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmd/werf/kubectl/kubectl.go
@@ -0,0 +1,11 @@
package kubectl

import (
"github.com/spf13/cobra"
"k8s.io/kubectl/pkg/cmd"
)

func NewCmd() *cobra.Command {
kubectlRootCmd := cmd.NewDefaultKubectlCommand()
return kubectlRootCmd
}
2 changes: 2 additions & 0 deletions cmd/werf/main.go
Expand Up @@ -34,6 +34,7 @@ import (
"github.com/werf/werf/cmd/werf/helm"
host_cleanup "github.com/werf/werf/cmd/werf/host/cleanup"
host_purge "github.com/werf/werf/cmd/werf/host/purge"
"github.com/werf/werf/cmd/werf/kubectl"
managed_images_add "github.com/werf/werf/cmd/werf/managed_images/add"
managed_images_ls "github.com/werf/werf/cmd/werf/managed_images/ls"
managed_images_rm "github.com/werf/werf/cmd/werf/managed_images/rm"
Expand Down Expand Up @@ -123,6 +124,7 @@ Find more information at https://werf.io`),
hostCmd(),
helm.NewCmd(),
crCmd(),
kubectl.NewCmd(),
},
},
{
Expand Down

0 comments on commit c6435d8

Please sign in to comment.