2024-03-27 17:47:39 +01:00
|
|
|
package config
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type IntegrationsConfig struct {
|
|
|
|
Kubernetes KubernetesConfig `yaml:"kubernetes"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewDefaultIntegrationsConfig() IntegrationsConfig {
|
|
|
|
return IntegrationsConfig{
|
|
|
|
Kubernetes: KubernetesConfig{
|
2024-03-28 15:53:40 +01:00
|
|
|
Enabled: false,
|
|
|
|
WriterTokenSecret: "",
|
|
|
|
WriterTokenSecretNamespace: "",
|
|
|
|
ReaderTokenSecretNamespace: "",
|
|
|
|
PrivateKeySecret: "",
|
|
|
|
PrivateKeySecretNamespace: "",
|
|
|
|
ReaderTokenSecret: "",
|
|
|
|
LockTimeout: *NewInterpolatedDuration(30 * time.Second),
|
2024-03-27 17:47:39 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type KubernetesConfig struct {
|
|
|
|
Enabled InterpolatedBool `yaml:"enabled"`
|
|
|
|
WriterTokenSecret InterpolatedString `yaml:"writerTokenSecret"`
|
|
|
|
WriterTokenSecretNamespace InterpolatedString `yaml:"writerTokenSecretNamespace"`
|
|
|
|
ReaderTokenSecret InterpolatedString `yaml:"readerTokenSecret"`
|
|
|
|
ReaderTokenSecretNamespace InterpolatedString `yaml:"readerTokenSecretNamespace"`
|
2024-03-28 15:53:40 +01:00
|
|
|
PrivateKeySecret InterpolatedString `yaml:"privateKeySecret"`
|
|
|
|
PrivateKeySecretNamespace InterpolatedString `yaml:"privateKeySecretNamespace"`
|
2024-03-27 17:47:39 +01:00
|
|
|
LockTimeout InterpolatedDuration `yaml:"lockTimeout"`
|
|
|
|
}
|