Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 15cd56f

Browse files
myan9starpit
authored andcommitted
fix(plugins/plugin-k8s): latest and previous logs labels are translated but not externalized
Fixes #3038
1 parent 0a6c140 commit 15cd56f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/plugin-k8s/src/lib/controller/kubectl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const executeLocally = (command: string) => (opts: Commands.Arguments<Options>)
241241
options.o ||
242242
(command === 'helm' && verb === 'get' && 'yaml') || // helm get seems to spit out yaml without our asking
243243
(isKube && verb === 'describe' && 'yaml') ||
244-
(isKube && verb === 'logs' && 'Latest') ||
244+
(isKube && verb === 'logs' && 'latest') ||
245245
(isKube && verb === 'get' && execOptions.raw && 'json'))
246246

247247
if (
@@ -566,6 +566,7 @@ const executeLocally = (command: string) => (opts: Commands.Arguments<Options>)
566566
if (verb === 'logs') {
567567
modes.push({
568568
mode: 'previous',
569+
label: strings('previous'),
569570
direct: `${rawCommand} --previous`,
570571
execOptions: {
571572
exec: 'pexec'

0 commit comments

Comments
 (0)