diff --git a/src/lib/configurations/index.ts b/src/lib/configurations/index.ts index 2264221..2fe6046 100644 --- a/src/lib/configurations/index.ts +++ b/src/lib/configurations/index.ts @@ -1,6 +1,5 @@ import exitHook from 'exit-hook' import { omit } from 'lodash' -import { useKubernetesContext } from '../kubectl/contexts' import { deletePod, portForward, diff --git a/src/lib/kubectl/contexts.ts b/src/lib/kubectl/contexts.ts index d67b9cd..249f37e 100644 --- a/src/lib/kubectl/contexts.ts +++ b/src/lib/kubectl/contexts.ts @@ -1,4 +1,3 @@ -import { bold, cyan } from 'chalk' import memoize from 'memoizee' import { execCommand, execCommandMultiline } from '../util/exec' @@ -11,10 +10,3 @@ export const fetchKubernetesContexts = memoize((): string[] => { kubectl config get-contexts --output='name' `) }) - -export const useKubernetesContext = (context: string) => { - execCommand(` - kubectl config use-context "${context}" - `) - console.log(`Using Kubernetes context '${bold(cyan(context))}'.`) -}