Skip to content

MINOR: specification: add runtime map replacement operation - #142

Merged
mjuraga merged 2 commits into
haproxytech:masterfrom
tkjaer:tkjaer-runtime-map-put-spec
Nov 9, 2026
Merged

mjuraga merged 2 commits into
haproxytech:masterfrom
tkjaer:tkjaer-runtime-map-put-spec

Conversation

@tkjaer

@tkjaer tkjaer commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the missing OpenAPI 2 operation for atomically replacing all entries in a runtime map.

Sorry, I missed this parallel specification update in the earlier work. This regenerates the bundled specification so the embedded /specification endpoint and generated clients include the existing API operation.

cc @mjuraga

@tkjaer
tkjaer force-pushed the tkjaer-runtime-map-put-spec branch from 627fe97 to b5feaf6 Compare November 6, 2026 20:21
Add the missing OpenAPI 2 PUT operation for atomically replacing all
entries in a runtime map. Regenerate the bundled specification used by
the embedded specification endpoint and generated clients.
@tkjaer
tkjaer force-pushed the tkjaer-runtime-map-put-spec branch 2 times, most recently from 4123e41 to ef7bc49 Compare November 6, 2026 20:35
Only remove generated top-level Go files before regenerating models.
Keep models/funcs because go-method-gen requires its overrides and helpers.
@tkjaer
tkjaer force-pushed the tkjaer-runtime-map-put-spec branch from ef7bc49 to d57b8c2 Compare November 6, 2026 20:51
@tkjaer

tkjaer commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Quick note on the force-pushes: I restored the generated specification after confirming it was required and not the original CI failure. The actual failure was the model-generation job deleting the handwritten models/funcs helpers, so I added the small CI fix in the second commit and amended its message to match the repository format.

The later Test equal failure is an unrelated randomized test flake. It reproduced 3 times in 1,000 local runs when both generated list values happened to be empty.

@mjuraga

mjuraga commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

No worries, I missed this too in my review.

@mjuraga
mjuraga merged commit 3f2830f into haproxytech:master Nov 9, 2026
18 checks passed
@mjuraga

mjuraga commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Also I need to fix our github CI in this and dataplaneapi project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants