forked from grafana/kubernetes-diff-logger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.go
More file actions
26 lines (23 loc) · 724 Bytes
/
config.go
File metadata and controls
26 lines (23 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main
// Config represents the configuration options for kubernetes-diff-logger
type Config struct {
Differs []DifferConfig `yaml:"differs"`
}
// DifferConfig represents the configuration options for a single Diffing process
type DifferConfig struct {
// NameFilter is a glob-based filter for the object type
NameFilter string `yaml:"nameFilter"`
// Type specifies the Kubernetes object type to watch. Currently supporting statefulsets, daemonsets, deployments
Type string `yaml:"type"`
}
// DefaultConfig returns a default deployment watching config
func DefaultConfig() Config {
return Config{
Differs: []DifferConfig{
DifferConfig{
NameFilter: "*",
Type: "deployment",
},
},
}
}