Skip to content

Commit

Permalink
refactor: rename the type BaseRunParams to BaseRunAndCopyParams
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Jan 15, 2024
1 parent 98ea579 commit a68191c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/plugins/kubernetes/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const makeRunLogEntry: PodLogEntryConverter<RunLogEntry> = ({ timestamp,

export const runContainerExcludeFields: (keyof V1Container)[] = ["readinessProbe", "livenessProbe", "startupProbe"]

interface BaseRunParams {
interface BaseRunAndCopyParams {
command?: string[]
args: string[]
interactive: boolean
Expand Down Expand Up @@ -135,7 +135,7 @@ export async function runAndCopy({
privileged,
addCapabilities,
dropCapabilities,
}: BaseRunParams & {
}: BaseRunAndCopyParams & {
ctx: PluginContext
log: Log
action: SupportedRuntimeAction
Expand Down Expand Up @@ -401,7 +401,7 @@ async function runWithoutArtifacts({
api: KubeApi
provider: KubernetesProvider
podData: PodData
run: BaseRunParams
run: BaseRunAndCopyParams
}): Promise<RunResult> {
const { timeout: timeoutSec, interactive } = run

Expand Down Expand Up @@ -506,7 +506,7 @@ async function runWithArtifacts({
stdout: Writable
stderr: Writable
podData: PodData
run: BaseRunParams
run: BaseRunAndCopyParams
}): Promise<RunResult> {
const { args, command, timeout: timeoutSec } = run

Expand Down

0 comments on commit a68191c

Please sign in to comment.