New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: Add libraries to Pascalify API endpoints #24967
Conversation
3c7f138
to
ff8bfa6
Compare
ff8bfa6
to
ce7c286
Compare
Travis hit issues connecting to ubuntu apt repos, closing+reopening to fix |
We have various APIs defined in the Swagger specification, each of which has a range of API endpoints like "GET /endpoint", "DELETE /ipam/{ip}", etc. In order to make these endpoints easier to refer to in a consistent manner, introduce new api library functions that consume a go-openapi spec and generate PascalCase flags for each API. Add some additional useful functions that can be used for the purpose of restricting the accessibility of certain APIs based on this PascalCase configuration. Signed-off-by: Joe Stringer <joe@cilium.io>
ce7c286
to
e8440eb
Compare
/test Job 'Cilium-PR-K8s-1.16-kernel-4.19' failed: Click to show.Test Name
Failure Output
Jenkins URL: https://jenkins.cilium.io/job/Cilium-PR-K8s-1.16-kernel-4.19/992/ If it is a flake and a GitHub issue doesn't already exist to track it, comment |
k8s-1.16-kernel-4.19 job hit known flake #24840. |
/test-1.16-4.19 |
We have various APIs defined in the Swagger specification, each of which
has a range of API endpoints like "GET /endpoint", "DELETE /ipam/{ip}",
etc. In order to make these endpoints easier to refer to in a consistent
manner, introduce new api library functions that consume a go-openapi
spec and generate PascalCase flags for each API. Add some additional
useful functions that can be used for the purpose of restricting the
accessibility of certain APIs based on this PascalCase configuration.
As a demonstration example of the pascalized strings, see the following (incomplete) table of APIs:
This will be used by #24661 in order to allow the user to configure which API endpoints are exposed by the cilium-agent API server. See also #24968 for an example of how to use these libraries to generate a description of API flags.