Skip to content
Permalink
Browse files
fix(kube-run): temporarily disable --kube-config* opts
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Mar 22, 2022
1 parent eb6d52f commit 352a0bd883438723314671c24bbae18c68113657
Showing with 6 additions and 3 deletions.
  1. +6 −3 cmd/werf/kube_run/kube_run.go
@@ -139,8 +139,9 @@ func NewCmd() *cobra.Command {
common.SetupLogProjectDir(&commonCmdData, cmd)

common.SetupSynchronization(&commonCmdData, cmd)
common.SetupKubeConfig(&commonCmdData, cmd)
common.SetupKubeConfigBase64(&commonCmdData, cmd)
// TODO(ilya-lesikov): doesn't work, need to be passed to `werf kubectl` somehow
// common.SetupKubeConfig(&commonCmdData, cmd)
// common.SetupKubeConfigBase64(&commonCmdData, cmd)
common.SetupKubeContext(&commonCmdData, cmd)

common.SetupDryRun(&commonCmdData, cmd)
@@ -257,7 +258,9 @@ func runMain(ctx context.Context) error {
return fmt.Errorf("unable to load werf config: %s", err)
}

common.SetupOndemandKubeInitializer(*commonCmdData.KubeContext, *commonCmdData.KubeConfig, *commonCmdData.KubeConfigBase64, *commonCmdData.KubeConfigPathMergeList)
// TODO(ilya-lesikov): doesn't work, need to be passed to `werf kubectl` somehow
// common.SetupOndemandKubeInitializer(*commonCmdData.KubeContext, *commonCmdData.KubeConfig, *commonCmdData.KubeConfigBase64, *commonCmdData.KubeConfigPathMergeList)
common.SetupOndemandKubeInitializer(*commonCmdData.KubeContext, "", "", nil)
if err := common.GetOndemandKubeInitializer().Init(ctx); err != nil {
return err
}

0 comments on commit 352a0bd

Please sign in to comment.