Skip to content

Commit 637be27

Browse files
committed
improve k8s log handling
1 parent 3857217 commit 637be27

File tree

3 files changed

+205
-183
lines changed

3 files changed

+205
-183
lines changed

pkg/container/container_opts.go

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,24 @@ type Volume struct {
2222
}
2323

2424
type ContainerOpts struct {
25-
Env map[string]string
26-
LogOptions map[string]string
27-
Namespace string
28-
RestartPolicy corev1.RestartPolicy
29-
PodName string
30-
Image string
31-
LogDriver string
32-
Network string
33-
ContainerName string
34-
Volumes []Volume
35-
Secrets []Secret // Kubernetes secrets to create
36-
Command []string
37-
Args []string
38-
Timeout time.Duration
39-
AttachStdout bool
40-
AttachStderr bool
41-
AutoRemove bool
25+
Env map[string]string
26+
LogOptions map[string]string
27+
Namespace string
28+
RestartPolicy corev1.RestartPolicy
29+
PodName string
30+
Image string
31+
LogDriver string
32+
Network string
33+
ContainerName string
34+
Volumes []Volume
35+
Secrets []Secret // Kubernetes secrets to create
36+
Command []string
37+
Args []string
38+
Timeout time.Duration
39+
AttachStdout bool
40+
AttachStderr bool
41+
AutoRemove bool
42+
JobTTLSecondsAfterFinished *int32 // TTL for Kubernetes Jobs after completion (in seconds)
4243
}
4344

4445
func (c *ContainerOpts) String() string {

0 commit comments

Comments
 (0)