Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Oct 11, 2023
1 parent bf92277 commit ea53dd7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/kubernetes/container/build/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import { containerHelpers } from "../../../container/helpers"
import { buildContainer, getContainerBuildStatus } from "../../../container/build"
import { KubernetesProvider, KubernetesPluginContext } from "../../config"
import { KubernetesProvider } from "../../config"
import { loadImageToKind, getKindImageStatus } from "../../local/kind"
import chalk = require("chalk")
import { loadImageToMicrok8s, getMicrok8sImageStatus } from "../../local/microk8s"
Expand Down
4 changes: 1 addition & 3 deletions core/src/plugins/kubernetes/local/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
k8sContextSchema,
KubernetesProvider,
namespaceSchema,
KubernetesClusterType,
} from "../config"
import { ConfigureProviderParams } from "../../../plugin/handlers/Provider/configureProvider"
import { joiProviderName, joi } from "../../../config/common"
Expand Down Expand Up @@ -40,8 +39,7 @@ function isSupportedContext(context: string) {
return supportedContexts.includes(context) || context.startsWith("kind-")
}

export interface LocalKubernetesConfig extends KubernetesConfig {
}
export type LocalKubernetesConfig = KubernetesConfig

export type LocalKubernetesProvider = Provider<LocalKubernetesConfig>
export type LocalKubernetesPluginContext = PluginContext<LocalKubernetesConfig>
Expand Down
9 changes: 2 additions & 7 deletions core/src/plugins/kubernetes/local/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,15 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

import {
configureProvider,
configSchema,
LocalKubernetesConfig,
LocalKubernetesPluginContext,
} from "./config"
import { configureProvider, configSchema, LocalKubernetesConfig, LocalKubernetesPluginContext } from "./config"
import { createGardenPlugin } from "../../../plugin/plugin"
import { dedent } from "../../../util/string"
import { DOCS_BASE_URL, STATIC_DIR } from "../../../constants"
import {
PrepareEnvironmentParams,
PrepareEnvironmentResult,
} from "../../../plugin/handlers/Provider/prepareEnvironment"
import { KubernetesClusterType, KubernetesPluginContext } from "../config"
import { KubernetesClusterType } from "../config"
import { prepareEnvironment as _prepareEnvironmentBase } from "../init"
import { Log } from "../../../logger/log-entry"
import { exec, isTruthy } from "../../../util/util"
Expand Down

0 comments on commit ea53dd7

Please sign in to comment.