mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-19 00:31:00 +02:00
fix struct tag delimiter
This commit is contained in:
+18
-19
@@ -8,37 +8,36 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type TPR struct {
|
type TPR struct {
|
||||||
ReadyWaitInterval time.Duration `split_words:"true",default:"3s"`
|
ReadyWaitInterval time.Duration `split_words:"true" default:"3s"`
|
||||||
ReadyWaitTimeout time.Duration `split_words:"true",default:"30s"`
|
ReadyWaitTimeout time.Duration `split_words:"true" default:"30s"`
|
||||||
ResyncPeriod time.Duration `split_words:"true",default:"5m"`
|
ResyncPeriod time.Duration `split_words:"true" default:"5m"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Resources struct {
|
type Resources struct {
|
||||||
ResyncPeriodPod time.Duration `split_words:"true",default:"5m"`
|
ResyncPeriodPod time.Duration `split_words:"true" default:"5m"`
|
||||||
ResourceCheckInterval time.Duration `split_words:"true",default:"3s"`
|
ResourceCheckInterval time.Duration `split_words:"true" default:"3s"`
|
||||||
ResourceCheckTimeout time.Duration `split_words:"true",default:"10m"`
|
ResourceCheckTimeout time.Duration `split_words:"true" default:"10m"`
|
||||||
PodLabelWaitTimeout time.Duration `split_words:"true",default:"10m"`
|
PodLabelWaitTimeout time.Duration `split_words:"true" default:"10m"`
|
||||||
PodDeletionWaitTimeout time.Duration `split_words:"true",default:"10m"`
|
PodDeletionWaitTimeout time.Duration `split_words:"true" default:"10m"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Auth struct {
|
type Auth struct {
|
||||||
PamRoleName string `split_words:"true",default:"zalandos"`
|
PamRoleName string `split_words:"true" default:"zalandos"`
|
||||||
PamConfiguration string `split_words:"true",default:"https://info.example.com/oauth2/tokeninfo?access_token= uid realm=/employees"`
|
PamConfiguration string `split_words:"true" default:"https://info.example.com/oauth2/tokeninfo?access_token= uid realm=/employees"`
|
||||||
TeamsAPIUrl string `envconfig:"teams_api_url",default:"https://teams.example.com/api/"`
|
TeamsAPIUrl string `envconfig:"teams_api_url" default:"https://teams.example.com/api/"`
|
||||||
OAuthTokenSecretName string `envconfig:"oauth_token_secret_name",default:"postgresql-operator"`
|
OAuthTokenSecretName string `envconfig:"oauth_token_secret_name" default:"postgresql-operator"`
|
||||||
SuperUsername string `split_words:"true",default:"postgres"`
|
SuperUsername string `split_words:"true" default:"postgres"`
|
||||||
ReplicationUsername string `split_words:"true",default:"replication"`
|
ReplicationUsername string `split_words:"true" default:"replication"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
TPR
|
TPR
|
||||||
Resources
|
Resources
|
||||||
Auth
|
Auth
|
||||||
EtcdHost string `split_words:"true",default:"etcd-client.default.svc.cluster.local:2379"`
|
EtcdHost string `split_words:"true" default:"etcd-client.default.svc.cluster.local:2379"`
|
||||||
DockerImage string `split_words:"true",default:"registry.opensource.zalan.do/acid/spilo-9.6:1.2-p12"`
|
DockerImage string `split_words:"true" default:"registry.opensource.zalan.do/acid/spilo-9.6:1.2-p12"`
|
||||||
ServiceAccountName string `split_words:"true",default:"operator"`
|
ServiceAccountName string `split_words:"true" default:"operator"`
|
||||||
DbHostedZone string `split_words:"true",default:"db.example.com"`
|
DbHostedZone string `split_words:"true" default:"db.example.com"`
|
||||||
DebugLogging bool `split_words:"true",default:"false"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func LoadFromEnv() *Config {
|
func LoadFromEnv() *Config {
|
||||||
|
|||||||
Reference in New Issue
Block a user