Skip to content
Permalink
Browse files
feat: kubectl exposed via werf kubectl
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Mar 18, 2022
1 parent 40bd0c6 commit c6435d82a954076a7b76abca342ef78b7419dc44
Showing with 13 additions and 0 deletions.
  1. +11 −0 cmd/werf/kubectl/kubectl.go
  2. +2 −0 cmd/werf/main.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
}
@@ -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"
@@ -123,6 +124,7 @@ Find more information at https://werf.io`),
hostCmd(),
helm.NewCmd(),
crCmd(),
kubectl.NewCmd(),
},
},
{

0 comments on commit c6435d8

Please sign in to comment.