Skip to content

Commit

Permalink
cilium/cmd: Remove deprecated policy_trace command
Browse files Browse the repository at this point in the history
Remove /policy/resolve from swagger and re-generate related file
again.

Signed-off-by: Tam Mach <tam.mach@cilium.io>
  • Loading branch information
sayboras committed Feb 27, 2023
1 parent b467cc7 commit 0ce84af
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 966 deletions.
156 changes: 0 additions & 156 deletions api/v1/client/policy/get_policy_resolve_parameters.go

This file was deleted.

101 changes: 0 additions & 101 deletions api/v1/client/policy/get_policy_resolve_responses.go

This file was deleted.

40 changes: 0 additions & 40 deletions api/v1/client/policy/policy_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions api/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -556,18 +556,6 @@ paths:
x-go-name: Failure
schema:
"$ref": "#/definitions/Error"
"/policy/resolve":
get:
summary: Resolve policy for an identity context
tags:
- policy
parameters:
- "$ref": "#/parameters/trace-selector"
responses:
'200':
description: Success
schema:
"$ref": "#/definitions/PolicyTraceResult"
"/policy/selectors":
get:
summary: See what selectors match which identities
Expand Down
5 changes: 0 additions & 5 deletions api/v1/server/configure_cilium_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,6 @@ func configureAPI(api *restapi.CiliumAPIAPI) http.Handler {
return middleware.NotImplemented("operation policy.GetPolicy has not yet been implemented")
})
}
if api.PolicyGetPolicyResolveHandler == nil {
api.PolicyGetPolicyResolveHandler = policy.GetPolicyResolveHandlerFunc(func(params policy.GetPolicyResolveParams) middleware.Responder {
return middleware.NotImplemented("operation policy.GetPolicyResolve has not yet been implemented")
})
}
if api.PolicyGetPolicySelectorsHandler == nil {
api.PolicyGetPolicySelectorsHandler = policy.GetPolicySelectorsHandlerFunc(func(params policy.GetPolicySelectorsParams) middleware.Responder {
return middleware.NotImplemented("operation policy.GetPolicySelectors has not yet been implemented")
Expand Down

0 comments on commit 0ce84af

Please sign in to comment.