Update k8s log options
This commit is contained in:
14
util/kubernetes/client/options.go
Normal file
14
util/kubernetes/client/options.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package client
|
||||
|
||||
type LogOptions struct {
|
||||
Params map[string]string
|
||||
}
|
||||
|
||||
type LogOption func(*LogOptions)
|
||||
|
||||
// LogParams provides additional params for logs
|
||||
func LogParams(p map[string]string) LogOption {
|
||||
return func(l *LogOptions) {
|
||||
l.Params = p
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user