Skip to content

Commit

Permalink
Contain logs in display (#64)
Browse files Browse the repository at this point in the history
* ♻️ contain log output to the window with scrollbar

* test cronjob with long lines
  • Loading branch information
mshade authored Feb 25, 2024
1 parent b583a84 commit 75fcc28
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions k8s/cron-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,28 @@ spec:
resources: {}
restartPolicy: OnFailure
schedule: 0/5 * * * *
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: example-longlines
namespace: test
spec:
jobTemplate:
metadata:
name: example
spec:
completions: 1
template:
spec:
containers:
- command:
- ash
- -c
- |
while true; do seq -s '' 1 999; sleep 1; done
image: busybox
name: example
resources: {}
restartPolicy: OnFailure
schedule: 0/5 * * * *
2 changes: 1 addition & 1 deletion templates/namespace.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<code x-text="pod.metadata.name"></code>
<small x-text="'Age: ' + pod.status.age"></small>
</li>
<div x-data="fetchLogs()">
<div style="overflow:auto;" x-data="fetchLogs()">
<details x-on:click="if (!logs) { getLogs('{{namespace}}', pod.metadata.name) }">
<summary class="secondary">logs</summary>
<template x-if="logs">
Expand Down

0 comments on commit 75fcc28

Please sign in to comment.