Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
edosrecki committed Jan 23, 2022
1 parent 753f711 commit aa8c415
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/lib/configurations/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import exitHook from 'exit-hook'
import { omit } from 'lodash'
import { useKubernetesContext } from '../kubectl/contexts'
import {
deletePod,
portForward,
Expand Down
8 changes: 0 additions & 8 deletions src/lib/kubectl/contexts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { bold, cyan } from 'chalk'
import memoize from 'memoizee'
import { execCommand, execCommandMultiline } from '../util/exec'

Expand All @@ -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))}'.`)
}

0 comments on commit aa8c415

Please sign in to comment.