28 lines
882 B
Go
28 lines
882 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
type IntegrationsConfig struct {
|
|
Kubernetes KubernetesConfig `yaml:"kubernetes"`
|
|
}
|
|
|
|
func NewDefaultIntegrationsConfig() IntegrationsConfig {
|
|
return IntegrationsConfig{
|
|
Kubernetes: KubernetesConfig{
|
|
Enabled: false,
|
|
WriterTokenSecret: "",
|
|
ReaderTokenSecret: "",
|
|
LockTimeout: *NewInterpolatedDuration(30 * time.Second),
|
|
},
|
|
}
|
|
}
|
|
|
|
type KubernetesConfig struct {
|
|
Enabled InterpolatedBool `yaml:"enabled"`
|
|
WriterTokenSecret InterpolatedString `yaml:"writerTokenSecret"`
|
|
WriterTokenSecretNamespace InterpolatedString `yaml:"writerTokenSecretNamespace"`
|
|
ReaderTokenSecret InterpolatedString `yaml:"readerTokenSecret"`
|
|
ReaderTokenSecretNamespace InterpolatedString `yaml:"readerTokenSecretNamespace"`
|
|
LockTimeout InterpolatedDuration `yaml:"lockTimeout"`
|
|
}
|