prevent fuzzer from generating impossible configurations
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
620d6ff679
commit
ad1847cc3c
@ -34,6 +34,19 @@ var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
|
||||
s.PprofAddress = "something:1234"
|
||||
}
|
||||
|
||||
if s.LeaderElectionConfig.Namespace == "" {
|
||||
s.LeaderElectionConfig.Namespace = "something"
|
||||
}
|
||||
if s.LeaderElectionConfig.LeaseDuration == 0 {
|
||||
s.LeaderElectionConfig.LeaseDuration = 1234
|
||||
}
|
||||
if s.LeaderElectionConfig.RenewDeadline == 0 {
|
||||
s.LeaderElectionConfig.RenewDeadline = 1234
|
||||
}
|
||||
if s.LeaderElectionConfig.RetryPeriod == 0 {
|
||||
s.LeaderElectionConfig.RetryPeriod = 1234
|
||||
}
|
||||
|
||||
logsapi.SetRecommendedLoggingConfiguration(&s.Logging)
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user