move api.Probe timeout default to central defaults

This commit is contained in:
Mike Danese
2015-02-15 23:44:55 -08:00
parent 6f84bdaba8
commit 4ba8ecd1fb
4 changed files with 17 additions and 9 deletions

View File

@@ -70,5 +70,10 @@ func init() {
obj.DNSPolicy = DNSClusterFirst
}
},
func(obj *Probe) {
if obj.TimeoutSeconds == 0 {
obj.TimeoutSeconds = 1
}
},
)
}