Skip to content

Commit 3c19587

Browse files
committed
BUG/MINOR: ssl: Add support for skip_reload
This parameter is used to skip the reload after the certificate is created. We also update client-native/v6 to the latest ref. Relates to #365 and haproxytech/client-native#116
1 parent 1b63b07 commit 3c19587

6 files changed

+70
-3
lines changed

embedded_spec.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/google/go-cmp v0.7.0
2525
github.com/google/renameio v1.0.1
2626
github.com/google/uuid v1.6.0
27-
github.com/haproxytech/client-native/v6 v6.1.1-0.20250227130014-5f594df98579
27+
github.com/haproxytech/client-native/v6 v6.1.1-0.20250317131355-4fd44b5ebeb7
2828
github.com/jessevdk/go-flags v1.6.1
2929
github.com/joho/godotenv v1.5.1
3030
github.com/json-iterator/go v1.1.12

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
8888
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
8989
github.com/haproxytech/client-native/v5 v5.1.15 h1:oMqyDlh+vL3yRKiaapc6SESetCIir/Of3F75vtpG1Nk=
9090
github.com/haproxytech/client-native/v5 v5.1.15/go.mod h1:6eT7/KOsczPHFE/op1TDwfo0jQAsMffl7PuXkKJ+Mt0=
91-
github.com/haproxytech/client-native/v6 v6.1.1-0.20250227130014-5f594df98579 h1:/bKToN0KZg+ynOL7SIGJjy3Js36fB+uVLPgT7DtFH3o=
92-
github.com/haproxytech/client-native/v6 v6.1.1-0.20250227130014-5f594df98579/go.mod h1:9DfctWwuRuHPPj5T01N+eFguIqWLzukF8msykecSSOk=
91+
github.com/haproxytech/client-native/v6 v6.1.1-0.20250317131355-4fd44b5ebeb7 h1:gyeH3roRLPuiZv1v7wMfGbrJewPQe/bVMSmmEJe/HZ0=
92+
github.com/haproxytech/client-native/v6 v6.1.1-0.20250317131355-4fd44b5ebeb7/go.mod h1:WbfPjQf1zkR7VLuzHK9IPemBahJj2lBjjZ9hhfeO/uE=
9393
github.com/haproxytech/go-logger v1.1.0 h1:HgGtYaI1ApkvbQdsm7f9AzQQoxTB7w37criTflh7IQE=
9494
github.com/haproxytech/go-logger v1.1.0/go.mod h1:OekUd8HCb7ubxMplzHUPBTHNxZmddOWfOjWclZsqIeM=
9595
github.com/jessevdk/go-flags v1.6.1 h1:Cvu5U8UGrLay1rZfv/zP7iLpSHGUZ/Ou68T0iX1bBK4=

handlers/ssl_cert_storage.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,20 @@ func (h *StorageCreateStorageSSLCertificateHandlerImpl) Handle(params storage.Cr
275275
IPAddresses: info.IPs,
276276
}
277277

278+
skipReload := false
279+
if params.SkipReload != nil {
280+
skipReload = *params.SkipReload
281+
}
282+
278283
forceReload := false
279284
if params.ForceReload != nil {
280285
forceReload = *params.ForceReload
281286
}
282287

288+
if skipReload {
289+
return storage.NewCreateStorageSSLCertificateCreated().WithPayload(retf)
290+
}
291+
283292
if forceReload {
284293
err := h.ReloadAgent.ForceReload()
285294
if err != nil {

operations/storage/create_storage_s_s_l_certificate_parameters.go

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

operations/storage/create_storage_s_s_l_certificate_urlbuilder.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)