I'm currently working with DataplaneAPI and have been stumbling over the fact that a POST /services/haproxy/storage/ssl_certificates reloads HAProxy unexpectedly.
The endpoint only provides a force_reload and not a skip_reload option, when all other endpoints support that feature.
|
forceReload := false |
|
if params.ForceReload != nil { |
|
forceReload = *params.ForceReload |
|
} |
I was wondering if there is a definitive non-obvious reason for this, or if its just a "no-one made the change yet" situation.
The code looks to mirror the situation:
|
rID := h.ReloadAgent.Reload() |
I'm happy to provide a Pull Request with the changes needed to add a skip_reload, if there is no obvious reason for this behaviour.
I've found this issue, which talks about similar points: #309
I'm currently working with DataplaneAPI and have been stumbling over the fact that a
POST /services/haproxy/storage/ssl_certificatesreloads HAProxy unexpectedly.The endpoint only provides a
force_reloadand not askip_reloadoption, when all other endpoints support that feature.dataplaneapi/handlers/ssl_cert_storage.go
Lines 278 to 281 in 1b63b07
I was wondering if there is a definitive non-obvious reason for this, or if its just a "no-one made the change yet" situation.
The code looks to mirror the situation:
dataplaneapi/handlers/ssl_cert_storage.go
Line 291 in 1b63b07
I'm happy to provide a Pull Request with the changes needed to add a
skip_reload, if there is no obvious reason for this behaviour.I've found this issue, which talks about similar points: #309