diff --git a/api/mesh/v1alpha1/mesh/rest.yaml b/api/mesh/v1alpha1/mesh/rest.yaml index e5befcba9749..307b227e9692 100644 --- a/api/mesh/v1alpha1/mesh/rest.yaml +++ b/api/mesh/v1alpha1/mesh/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{name}: get: + operationId: get-Mesh summary: Returns Mesh entity tags: [ "Mesh" ] parameters: @@ -22,6 +23,7 @@ paths: $ref: "#/components/responses/MeshItem" put: + operationId: create-or-update-Mesh summary: Creates or Updates Mesh entity tags: [ "Mesh" ] parameters: @@ -53,6 +55,7 @@ paths: $ref: '#/components/schemas/MeshCreateOrUpdateSuccessResponse' delete: + operationId: delete-Mesh summary: Deletes Mesh entity tags: [ "Mesh" ] parameters: @@ -65,9 +68,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes: get: + operationId: get-Mesh-list summary: Returns a list of Mesh in the mesh. tags: [ "Mesh" ] responses: diff --git a/api/mesh/v1alpha1/meshgateway/rest.yaml b/api/mesh/v1alpha1/meshgateway/rest.yaml index 25f821f662aa..726ab1683c1e 100644 --- a/api/mesh/v1alpha1/meshgateway/rest.yaml +++ b/api/mesh/v1alpha1/meshgateway/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshgateways/{name}: get: + operationId: get-MeshGateway summary: Returns MeshGateway entity tags: [ "MeshGateway" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshGatewayItem" put: + operationId: create-or-update-MeshGateway summary: Creates or Updates MeshGateway entity tags: [ "MeshGateway" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshGatewayCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshGateway summary: Deletes MeshGateway entity tags: [ "MeshGateway" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshgateways: get: + operationId: get-MeshGateway-list summary: Returns a list of MeshGateway in the mesh. tags: [ "MeshGateway" ] parameters: diff --git a/api/openapi/specs/api.yaml b/api/openapi/specs/api.yaml index 7a60bcea6997..b5c47a27cdf4 100644 --- a/api/openapi/specs/api.yaml +++ b/api/openapi/specs/api.yaml @@ -60,6 +60,7 @@ paths: - in: path name: resourceType example: dataplanes + required: true schema: type: string enum: [dataplanes, meshgateways] @@ -80,6 +81,7 @@ paths: $ref: '#/components/responses/Internal' /meshes/{mesh}/dataplanes/{name}/_config: get: + operationId: get-meshes-mesh-dataplanes-name-config summary: Get a proxy XDS config on a CP description: Returns the configuration of the proxy ([xds](https://www.envoyproxy.io/docs/envoy/latest/api-docs/xds_protocol) configuration). parameters: diff --git a/api/openapi/specs/common/error_schema.yaml b/api/openapi/specs/common/error_schema.yaml index cc5e06d9b703..c950b10596b1 100644 --- a/api/openapi/specs/common/error_schema.yaml +++ b/api/openapi/specs/common/error_schema.yaml @@ -54,4 +54,26 @@ components: type: array description: TODO items: - $ref: "#/components/schemas/InvalidParameters" \ No newline at end of file + $ref: "#/components/schemas/InvalidParameters" + NotFoundError: + allOf: + - $ref: '#/components/schemas/Error' + - type: object + properties: + status: + example: 404 + title: + example: Not Found + type: + example: https://httpstatuses.com/404 + instance: + example: kong:trace:1234567890 + detail: + example: Not found + responses: + NotFound: + description: Not Found + content: + application/problem+json: + schema: + $ref: '#/components/schemas/NotFoundError' diff --git a/api/openapi/types/common/zz_generated.error_schema.go b/api/openapi/types/common/zz_generated.error_schema.go index 0d2946be9e1d..17a62abb1bf0 100644 --- a/api/openapi/types/common/zz_generated.error_schema.go +++ b/api/openapi/types/common/zz_generated.error_schema.go @@ -31,3 +31,18 @@ type InvalidParameters struct { Reason *string `json:"reason,omitempty"` Rule *string `json:"rule,omitempty"` } + +// NotFoundError defines model for NotFoundError. +type NotFoundError struct { + Detail *interface{} `json:"detail,omitempty"` + Instance interface{} `json:"instance"` + + // InvalidParameters TODO + InvalidParameters *[]InvalidParameters `json:"invalid_parameters,omitempty"` + Status interface{} `json:"status"` + Title interface{} `json:"title"` + Type *interface{} `json:"type,omitempty"` +} + +// NotFound defines model for NotFound. +type NotFound = NotFoundError diff --git a/docs/generated/openapi.yaml b/docs/generated/openapi.yaml index 48099db3aad8..d63b78484643 100644 --- a/docs/generated/openapi.yaml +++ b/docs/generated/openapi.yaml @@ -65,6 +65,7 @@ paths: - in: path name: resourceType example: dataplanes + required: true schema: type: string enum: @@ -87,6 +88,7 @@ paths: $ref: '#/components/responses/Internal' /meshes/{mesh}/dataplanes/{name}/_config: get: + operationId: get-meshes-mesh-dataplanes-name-config summary: Get a proxy XDS config on a CP description: >- Returns the configuration of the proxy @@ -192,6 +194,7 @@ paths: $ref: '#/components/responses/Internal' /meshes/{mesh}/meshaccesslogs/{name}: get: + operationId: get-MeshAccessLog summary: Returns MeshAccessLog entity tags: - MeshAccessLog @@ -212,6 +215,7 @@ paths: '200': $ref: '#/components/responses/MeshAccessLogItem' put: + operationId: create-or-update-MeshAccessLog summary: Creates or Updates MeshAccessLog entity tags: - MeshAccessLog @@ -251,6 +255,7 @@ paths: $ref: >- #/components/schemas/MeshAccessLogCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshAccessLog summary: Deletes MeshAccessLog entity tags: - MeshAccessLog @@ -270,8 +275,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshaccesslogs: get: + operationId: get-MeshAccessLog-list summary: Returns a list of MeshAccessLog in the mesh. tags: - MeshAccessLog @@ -287,6 +295,7 @@ paths: $ref: '#/components/responses/MeshAccessLogList' /meshes/{mesh}/meshcircuitbreakers/{name}: get: + operationId: get-MeshCircuitBreaker summary: Returns MeshCircuitBreaker entity tags: - MeshCircuitBreaker @@ -307,6 +316,7 @@ paths: '200': $ref: '#/components/responses/MeshCircuitBreakerItem' put: + operationId: create-or-update-MeshCircuitBreaker summary: Creates or Updates MeshCircuitBreaker entity tags: - MeshCircuitBreaker @@ -346,6 +356,7 @@ paths: $ref: >- #/components/schemas/MeshCircuitBreakerCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshCircuitBreaker summary: Deletes MeshCircuitBreaker entity tags: - MeshCircuitBreaker @@ -365,8 +376,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshcircuitbreakers: get: + operationId: get-MeshCircuitBreaker-list summary: Returns a list of MeshCircuitBreaker in the mesh. tags: - MeshCircuitBreaker @@ -382,6 +396,7 @@ paths: $ref: '#/components/responses/MeshCircuitBreakerList' /meshes/{mesh}/meshfaultinjections/{name}: get: + operationId: get-MeshFaultInjection summary: Returns MeshFaultInjection entity tags: - MeshFaultInjection @@ -402,6 +417,7 @@ paths: '200': $ref: '#/components/responses/MeshFaultInjectionItem' put: + operationId: create-or-update-MeshFaultInjection summary: Creates or Updates MeshFaultInjection entity tags: - MeshFaultInjection @@ -441,6 +457,7 @@ paths: $ref: >- #/components/schemas/MeshFaultInjectionCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshFaultInjection summary: Deletes MeshFaultInjection entity tags: - MeshFaultInjection @@ -460,8 +477,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshfaultinjections: get: + operationId: get-MeshFaultInjection-list summary: Returns a list of MeshFaultInjection in the mesh. tags: - MeshFaultInjection @@ -477,6 +497,7 @@ paths: $ref: '#/components/responses/MeshFaultInjectionList' /meshes/{mesh}/meshhealthchecks/{name}: get: + operationId: get-MeshHealthCheck summary: Returns MeshHealthCheck entity tags: - MeshHealthCheck @@ -497,6 +518,7 @@ paths: '200': $ref: '#/components/responses/MeshHealthCheckItem' put: + operationId: create-or-update-MeshHealthCheck summary: Creates or Updates MeshHealthCheck entity tags: - MeshHealthCheck @@ -536,6 +558,7 @@ paths: $ref: >- #/components/schemas/MeshHealthCheckCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshHealthCheck summary: Deletes MeshHealthCheck entity tags: - MeshHealthCheck @@ -555,8 +578,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshhealthchecks: get: + operationId: get-MeshHealthCheck-list summary: Returns a list of MeshHealthCheck in the mesh. tags: - MeshHealthCheck @@ -572,6 +598,7 @@ paths: $ref: '#/components/responses/MeshHealthCheckList' /meshes/{mesh}/meshhttproutes/{name}: get: + operationId: get-MeshHTTPRoute summary: Returns MeshHTTPRoute entity tags: - MeshHTTPRoute @@ -592,6 +619,7 @@ paths: '200': $ref: '#/components/responses/MeshHTTPRouteItem' put: + operationId: create-or-update-MeshHTTPRoute summary: Creates or Updates MeshHTTPRoute entity tags: - MeshHTTPRoute @@ -631,6 +659,7 @@ paths: $ref: >- #/components/schemas/MeshHTTPRouteCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshHTTPRoute summary: Deletes MeshHTTPRoute entity tags: - MeshHTTPRoute @@ -650,8 +679,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshhttproutes: get: + operationId: get-MeshHTTPRoute-list summary: Returns a list of MeshHTTPRoute in the mesh. tags: - MeshHTTPRoute @@ -667,6 +699,7 @@ paths: $ref: '#/components/responses/MeshHTTPRouteList' /meshes/{mesh}/meshloadbalancingstrategies/{name}: get: + operationId: get-MeshLoadBalancingStrategy summary: Returns MeshLoadBalancingStrategy entity tags: - MeshLoadBalancingStrategy @@ -687,6 +720,7 @@ paths: '200': $ref: '#/components/responses/MeshLoadBalancingStrategyItem' put: + operationId: create-or-update-MeshLoadBalancingStrategy summary: Creates or Updates MeshLoadBalancingStrategy entity tags: - MeshLoadBalancingStrategy @@ -726,6 +760,7 @@ paths: $ref: >- #/components/schemas/MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshLoadBalancingStrategy summary: Deletes MeshLoadBalancingStrategy entity tags: - MeshLoadBalancingStrategy @@ -745,8 +780,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshloadbalancingstrategies: get: + operationId: get-MeshLoadBalancingStrategy-list summary: Returns a list of MeshLoadBalancingStrategy in the mesh. tags: - MeshLoadBalancingStrategy @@ -762,6 +800,7 @@ paths: $ref: '#/components/responses/MeshLoadBalancingStrategyList' /meshes/{mesh}/meshmetrics/{name}: get: + operationId: get-MeshMetric summary: Returns MeshMetric entity tags: - MeshMetric @@ -782,6 +821,7 @@ paths: '200': $ref: '#/components/responses/MeshMetricItem' put: + operationId: create-or-update-MeshMetric summary: Creates or Updates MeshMetric entity tags: - MeshMetric @@ -819,6 +859,7 @@ paths: schema: $ref: '#/components/schemas/MeshMetricCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshMetric summary: Deletes MeshMetric entity tags: - MeshMetric @@ -838,8 +879,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshmetrics: get: + operationId: get-MeshMetric-list summary: Returns a list of MeshMetric in the mesh. tags: - MeshMetric @@ -855,6 +899,7 @@ paths: $ref: '#/components/responses/MeshMetricList' /meshes/{mesh}/meshpassthroughs/{name}: get: + operationId: get-MeshPassthrough summary: Returns MeshPassthrough entity tags: - MeshPassthrough @@ -875,6 +920,7 @@ paths: '200': $ref: '#/components/responses/MeshPassthroughItem' put: + operationId: create-or-update-MeshPassthrough summary: Creates or Updates MeshPassthrough entity tags: - MeshPassthrough @@ -914,6 +960,7 @@ paths: $ref: >- #/components/schemas/MeshPassthroughCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshPassthrough summary: Deletes MeshPassthrough entity tags: - MeshPassthrough @@ -933,8 +980,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshpassthroughs: get: + operationId: get-MeshPassthrough-list summary: Returns a list of MeshPassthrough in the mesh. tags: - MeshPassthrough @@ -950,6 +1000,7 @@ paths: $ref: '#/components/responses/MeshPassthroughList' /meshes/{mesh}/meshproxypatches/{name}: get: + operationId: get-MeshProxyPatch summary: Returns MeshProxyPatch entity tags: - MeshProxyPatch @@ -970,6 +1021,7 @@ paths: '200': $ref: '#/components/responses/MeshProxyPatchItem' put: + operationId: create-or-update-MeshProxyPatch summary: Creates or Updates MeshProxyPatch entity tags: - MeshProxyPatch @@ -1009,6 +1061,7 @@ paths: $ref: >- #/components/schemas/MeshProxyPatchCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshProxyPatch summary: Deletes MeshProxyPatch entity tags: - MeshProxyPatch @@ -1028,8 +1081,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshproxypatches: get: + operationId: get-MeshProxyPatch-list summary: Returns a list of MeshProxyPatch in the mesh. tags: - MeshProxyPatch @@ -1045,6 +1101,7 @@ paths: $ref: '#/components/responses/MeshProxyPatchList' /meshes/{mesh}/meshratelimits/{name}: get: + operationId: get-MeshRateLimit summary: Returns MeshRateLimit entity tags: - MeshRateLimit @@ -1065,6 +1122,7 @@ paths: '200': $ref: '#/components/responses/MeshRateLimitItem' put: + operationId: create-or-update-MeshRateLimit summary: Creates or Updates MeshRateLimit entity tags: - MeshRateLimit @@ -1104,6 +1162,7 @@ paths: $ref: >- #/components/schemas/MeshRateLimitCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshRateLimit summary: Deletes MeshRateLimit entity tags: - MeshRateLimit @@ -1123,8 +1182,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshratelimits: get: + operationId: get-MeshRateLimit-list summary: Returns a list of MeshRateLimit in the mesh. tags: - MeshRateLimit @@ -1140,6 +1202,7 @@ paths: $ref: '#/components/responses/MeshRateLimitList' /meshes/{mesh}/meshretries/{name}: get: + operationId: get-MeshRetry summary: Returns MeshRetry entity tags: - MeshRetry @@ -1160,6 +1223,7 @@ paths: '200': $ref: '#/components/responses/MeshRetryItem' put: + operationId: create-or-update-MeshRetry summary: Creates or Updates MeshRetry entity tags: - MeshRetry @@ -1197,6 +1261,7 @@ paths: schema: $ref: '#/components/schemas/MeshRetryCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshRetry summary: Deletes MeshRetry entity tags: - MeshRetry @@ -1216,8 +1281,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshretries: get: + operationId: get-MeshRetry-list summary: Returns a list of MeshRetry in the mesh. tags: - MeshRetry @@ -1233,6 +1301,7 @@ paths: $ref: '#/components/responses/MeshRetryList' /meshes/{mesh}/meshtcproutes/{name}: get: + operationId: get-MeshTCPRoute summary: Returns MeshTCPRoute entity tags: - MeshTCPRoute @@ -1253,6 +1322,7 @@ paths: '200': $ref: '#/components/responses/MeshTCPRouteItem' put: + operationId: create-or-update-MeshTCPRoute summary: Creates or Updates MeshTCPRoute entity tags: - MeshTCPRoute @@ -1290,6 +1360,7 @@ paths: schema: $ref: '#/components/schemas/MeshTCPRouteCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshTCPRoute summary: Deletes MeshTCPRoute entity tags: - MeshTCPRoute @@ -1309,8 +1380,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshtcproutes: get: + operationId: get-MeshTCPRoute-list summary: Returns a list of MeshTCPRoute in the mesh. tags: - MeshTCPRoute @@ -1326,6 +1400,7 @@ paths: $ref: '#/components/responses/MeshTCPRouteList' /meshes/{mesh}/meshtimeouts/{name}: get: + operationId: get-MeshTimeout summary: Returns MeshTimeout entity tags: - MeshTimeout @@ -1346,6 +1421,7 @@ paths: '200': $ref: '#/components/responses/MeshTimeoutItem' put: + operationId: create-or-update-MeshTimeout summary: Creates or Updates MeshTimeout entity tags: - MeshTimeout @@ -1383,6 +1459,7 @@ paths: schema: $ref: '#/components/schemas/MeshTimeoutCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshTimeout summary: Deletes MeshTimeout entity tags: - MeshTimeout @@ -1402,8 +1479,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshtimeouts: get: + operationId: get-MeshTimeout-list summary: Returns a list of MeshTimeout in the mesh. tags: - MeshTimeout @@ -1419,6 +1499,7 @@ paths: $ref: '#/components/responses/MeshTimeoutList' /meshes/{mesh}/meshtlses/{name}: get: + operationId: get-MeshTLS summary: Returns MeshTLS entity tags: - MeshTLS @@ -1439,6 +1520,7 @@ paths: '200': $ref: '#/components/responses/MeshTLSItem' put: + operationId: create-or-update-MeshTLS summary: Creates or Updates MeshTLS entity tags: - MeshTLS @@ -1476,6 +1558,7 @@ paths: schema: $ref: '#/components/schemas/MeshTLSCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshTLS summary: Deletes MeshTLS entity tags: - MeshTLS @@ -1495,8 +1578,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshtlses: get: + operationId: get-MeshTLS-list summary: Returns a list of MeshTLS in the mesh. tags: - MeshTLS @@ -1512,6 +1598,7 @@ paths: $ref: '#/components/responses/MeshTLSList' /meshes/{mesh}/meshtraces/{name}: get: + operationId: get-MeshTrace summary: Returns MeshTrace entity tags: - MeshTrace @@ -1532,6 +1619,7 @@ paths: '200': $ref: '#/components/responses/MeshTraceItem' put: + operationId: create-or-update-MeshTrace summary: Creates or Updates MeshTrace entity tags: - MeshTrace @@ -1569,6 +1657,7 @@ paths: schema: $ref: '#/components/schemas/MeshTraceCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshTrace summary: Deletes MeshTrace entity tags: - MeshTrace @@ -1588,8 +1677,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshtraces: get: + operationId: get-MeshTrace-list summary: Returns a list of MeshTrace in the mesh. tags: - MeshTrace @@ -1605,6 +1697,7 @@ paths: $ref: '#/components/responses/MeshTraceList' /meshes/{mesh}/meshtrafficpermissions/{name}: get: + operationId: get-MeshTrafficPermission summary: Returns MeshTrafficPermission entity tags: - MeshTrafficPermission @@ -1625,6 +1718,7 @@ paths: '200': $ref: '#/components/responses/MeshTrafficPermissionItem' put: + operationId: create-or-update-MeshTrafficPermission summary: Creates or Updates MeshTrafficPermission entity tags: - MeshTrafficPermission @@ -1664,6 +1758,7 @@ paths: $ref: >- #/components/schemas/MeshTrafficPermissionCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshTrafficPermission summary: Deletes MeshTrafficPermission entity tags: - MeshTrafficPermission @@ -1683,8 +1778,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshtrafficpermissions: get: + operationId: get-MeshTrafficPermission-list summary: Returns a list of MeshTrafficPermission in the mesh. tags: - MeshTrafficPermission @@ -1700,6 +1798,7 @@ paths: $ref: '#/components/responses/MeshTrafficPermissionList' /meshes/{name}: get: + operationId: get-Mesh summary: Returns Mesh entity tags: - Mesh @@ -1714,6 +1813,7 @@ paths: '200': $ref: '#/components/responses/MeshItem' put: + operationId: create-or-update-Mesh summary: Creates or Updates Mesh entity tags: - Mesh @@ -1745,6 +1845,7 @@ paths: schema: $ref: '#/components/schemas/MeshCreateOrUpdateSuccessResponse' delete: + operationId: delete-Mesh summary: Deletes Mesh entity tags: - Mesh @@ -1758,8 +1859,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes: get: + operationId: get-Mesh-list summary: Returns a list of Mesh in the mesh. tags: - Mesh @@ -1768,6 +1872,7 @@ paths: $ref: '#/components/responses/MeshList' /meshes/{mesh}/meshgateways/{name}: get: + operationId: get-MeshGateway summary: Returns MeshGateway entity tags: - MeshGateway @@ -1788,6 +1893,7 @@ paths: '200': $ref: '#/components/responses/MeshGatewayItem' put: + operationId: create-or-update-MeshGateway summary: Creates or Updates MeshGateway entity tags: - MeshGateway @@ -1825,6 +1931,7 @@ paths: schema: $ref: '#/components/schemas/MeshGatewayCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshGateway summary: Deletes MeshGateway entity tags: - MeshGateway @@ -1844,8 +1951,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshgateways: get: + operationId: get-MeshGateway-list summary: Returns a list of MeshGateway in the mesh. tags: - MeshGateway @@ -1861,6 +1971,7 @@ paths: $ref: '#/components/responses/MeshGatewayList' /hostnamegenerators/{name}: get: + operationId: get-HostnameGenerator summary: Returns HostnameGenerator entity tags: - HostnameGenerator @@ -1875,6 +1986,7 @@ paths: '200': $ref: '#/components/responses/HostnameGeneratorItem' put: + operationId: create-or-update-HostnameGenerator summary: Creates or Updates HostnameGenerator entity tags: - HostnameGenerator @@ -1908,6 +2020,7 @@ paths: $ref: >- #/components/schemas/HostnameGeneratorCreateOrUpdateSuccessResponse delete: + operationId: delete-HostnameGenerator summary: Deletes HostnameGenerator entity tags: - HostnameGenerator @@ -1921,8 +2034,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /hostnamegenerators: get: + operationId: get-HostnameGenerator-list summary: Returns a list of HostnameGenerator in the mesh. tags: - HostnameGenerator @@ -1931,6 +2047,7 @@ paths: $ref: '#/components/responses/HostnameGeneratorList' /meshes/{mesh}/meshexternalservices/{name}: get: + operationId: get-MeshExternalService summary: Returns MeshExternalService entity tags: - MeshExternalService @@ -1951,6 +2068,7 @@ paths: '200': $ref: '#/components/responses/MeshExternalServiceItem' put: + operationId: create-or-update-MeshExternalService summary: Creates or Updates MeshExternalService entity tags: - MeshExternalService @@ -1990,6 +2108,7 @@ paths: $ref: >- #/components/schemas/MeshExternalServiceCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshExternalService summary: Deletes MeshExternalService entity tags: - MeshExternalService @@ -2009,8 +2128,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshexternalservices: get: + operationId: get-MeshExternalService-list summary: Returns a list of MeshExternalService in the mesh. tags: - MeshExternalService @@ -2026,6 +2148,7 @@ paths: $ref: '#/components/responses/MeshExternalServiceList' /meshes/{mesh}/meshmultizoneservices/{name}: get: + operationId: get-MeshMultiZoneService summary: Returns MeshMultiZoneService entity tags: - MeshMultiZoneService @@ -2046,6 +2169,7 @@ paths: '200': $ref: '#/components/responses/MeshMultiZoneServiceItem' put: + operationId: create-or-update-MeshMultiZoneService summary: Creates or Updates MeshMultiZoneService entity tags: - MeshMultiZoneService @@ -2085,6 +2209,7 @@ paths: $ref: >- #/components/schemas/MeshMultiZoneServiceCreateOrUpdateSuccessResponse delete: + operationId: delete-MeshMultiZoneService summary: Deletes MeshMultiZoneService entity tags: - MeshMultiZoneService @@ -2104,8 +2229,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshmultizoneservices: get: + operationId: get-MeshMultiZoneService-list summary: Returns a list of MeshMultiZoneService in the mesh. tags: - MeshMultiZoneService @@ -2121,6 +2249,7 @@ paths: $ref: '#/components/responses/MeshMultiZoneServiceList' /meshes/{mesh}/meshservices/{name}: get: + operationId: get-MeshService summary: Returns MeshService entity tags: - MeshService @@ -2141,6 +2270,7 @@ paths: '200': $ref: '#/components/responses/MeshServiceItem' put: + operationId: create-or-update-MeshService summary: Creates or Updates MeshService entity tags: - MeshService @@ -2178,6 +2308,7 @@ paths: schema: $ref: '#/components/schemas/MeshServiceCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshService summary: Deletes MeshService entity tags: - MeshService @@ -2197,8 +2328,11 @@ paths: responses: '200': description: Successful response + '404': + $ref: '#/components/responses/NotFound' /meshes/{mesh}/meshservices: get: + operationId: get-MeshService-list summary: Returns a list of MeshService in the mesh. tags: - MeshService @@ -3465,6 +3599,21 @@ components: request should correct or be aware of. items: type: string + NotFoundError: + allOf: + - $ref: '#/components/schemas/Error' + - type: object + properties: + status: + example: 404 + title: + example: Not Found + type: + example: https://httpstatuses.com/404 + instance: + example: kong:trace:1234567890 + detail: + example: Not found MeshCircuitBreakerItem: type: object required: @@ -12909,6 +13058,12 @@ components: next: type: string description: URL to the next page + NotFound: + description: Not Found + content: + application/problem+json: + schema: + $ref: '#/components/schemas/NotFoundError' MeshCircuitBreakerItem: description: Successful response content: diff --git a/pkg/core/resources/apis/donothingresource/k8s/crd/kuma.io_donothingresources.yaml b/pkg/core/resources/apis/donothingresource/k8s/crd/kuma.io_donothingresources.yaml index ecf338d92697..a045fddd8979 100644 --- a/pkg/core/resources/apis/donothingresource/k8s/crd/kuma.io_donothingresources.yaml +++ b/pkg/core/resources/apis/donothingresource/k8s/crd/kuma.io_donothingresources.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: donothingresources.kuma.io spec: group: kuma.io diff --git a/pkg/core/resources/apis/hostnamegenerator/api/v1alpha1/rest.yaml b/pkg/core/resources/apis/hostnamegenerator/api/v1alpha1/rest.yaml index f89b716e0d56..15d2ea60ac7c 100644 --- a/pkg/core/resources/apis/hostnamegenerator/api/v1alpha1/rest.yaml +++ b/pkg/core/resources/apis/hostnamegenerator/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /hostnamegenerators/{name}: get: + operationId: get-HostnameGenerator summary: Returns HostnameGenerator entity tags: [ "HostnameGenerator" ] parameters: @@ -22,6 +23,7 @@ paths: $ref: "#/components/responses/HostnameGeneratorItem" put: + operationId: create-or-update-HostnameGenerator summary: Creates or Updates HostnameGenerator entity tags: [ "HostnameGenerator" ] parameters: @@ -53,6 +55,7 @@ paths: $ref: '#/components/schemas/HostnameGeneratorCreateOrUpdateSuccessResponse' delete: + operationId: delete-HostnameGenerator summary: Deletes HostnameGenerator entity tags: [ "HostnameGenerator" ] parameters: @@ -65,9 +68,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /hostnamegenerators: get: + operationId: get-HostnameGenerator-list summary: Returns a list of HostnameGenerator in the mesh. tags: [ "HostnameGenerator" ] responses: diff --git a/pkg/core/resources/apis/hostnamegenerator/k8s/crd/kuma.io_hostnamegenerators.yaml b/pkg/core/resources/apis/hostnamegenerator/k8s/crd/kuma.io_hostnamegenerators.yaml index dfcbe5a33773..eff06ce8f988 100644 --- a/pkg/core/resources/apis/hostnamegenerator/k8s/crd/kuma.io_hostnamegenerators.yaml +++ b/pkg/core/resources/apis/hostnamegenerator/k8s/crd/kuma.io_hostnamegenerators.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: hostnamegenerators.kuma.io spec: group: kuma.io diff --git a/pkg/core/resources/apis/meshexternalservice/api/v1alpha1/rest.yaml b/pkg/core/resources/apis/meshexternalservice/api/v1alpha1/rest.yaml index 815f04312bd3..32ae1da87e37 100644 --- a/pkg/core/resources/apis/meshexternalservice/api/v1alpha1/rest.yaml +++ b/pkg/core/resources/apis/meshexternalservice/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshexternalservices/{name}: get: + operationId: get-MeshExternalService summary: Returns MeshExternalService entity tags: [ "MeshExternalService" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshExternalServiceItem" put: + operationId: create-or-update-MeshExternalService summary: Creates or Updates MeshExternalService entity tags: [ "MeshExternalService" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshExternalServiceCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshExternalService summary: Deletes MeshExternalService entity tags: [ "MeshExternalService" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshexternalservices: get: + operationId: get-MeshExternalService-list summary: Returns a list of MeshExternalService in the mesh. tags: [ "MeshExternalService" ] parameters: diff --git a/pkg/core/resources/apis/meshexternalservice/k8s/crd/kuma.io_meshexternalservices.yaml b/pkg/core/resources/apis/meshexternalservice/k8s/crd/kuma.io_meshexternalservices.yaml index 766be6e057c7..e36f1fea5d56 100644 --- a/pkg/core/resources/apis/meshexternalservice/k8s/crd/kuma.io_meshexternalservices.yaml +++ b/pkg/core/resources/apis/meshexternalservice/k8s/crd/kuma.io_meshexternalservices.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshexternalservices.kuma.io spec: group: kuma.io diff --git a/pkg/core/resources/apis/meshmultizoneservice/api/v1alpha1/rest.yaml b/pkg/core/resources/apis/meshmultizoneservice/api/v1alpha1/rest.yaml index d2f3ada80acc..75cf8a286e4a 100644 --- a/pkg/core/resources/apis/meshmultizoneservice/api/v1alpha1/rest.yaml +++ b/pkg/core/resources/apis/meshmultizoneservice/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshmultizoneservices/{name}: get: + operationId: get-MeshMultiZoneService summary: Returns MeshMultiZoneService entity tags: [ "MeshMultiZoneService" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshMultiZoneServiceItem" put: + operationId: create-or-update-MeshMultiZoneService summary: Creates or Updates MeshMultiZoneService entity tags: [ "MeshMultiZoneService" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshMultiZoneServiceCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshMultiZoneService summary: Deletes MeshMultiZoneService entity tags: [ "MeshMultiZoneService" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshmultizoneservices: get: + operationId: get-MeshMultiZoneService-list summary: Returns a list of MeshMultiZoneService in the mesh. tags: [ "MeshMultiZoneService" ] parameters: diff --git a/pkg/core/resources/apis/meshmultizoneservice/k8s/crd/kuma.io_meshmultizoneservices.yaml b/pkg/core/resources/apis/meshmultizoneservice/k8s/crd/kuma.io_meshmultizoneservices.yaml index ac425c20c7e9..44fe7bccaa71 100644 --- a/pkg/core/resources/apis/meshmultizoneservice/k8s/crd/kuma.io_meshmultizoneservices.yaml +++ b/pkg/core/resources/apis/meshmultizoneservice/k8s/crd/kuma.io_meshmultizoneservices.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshmultizoneservices.kuma.io spec: group: kuma.io diff --git a/pkg/core/resources/apis/meshservice/api/v1alpha1/rest.yaml b/pkg/core/resources/apis/meshservice/api/v1alpha1/rest.yaml index 5212d5b0476b..649136cda2c2 100644 --- a/pkg/core/resources/apis/meshservice/api/v1alpha1/rest.yaml +++ b/pkg/core/resources/apis/meshservice/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshservices/{name}: get: + operationId: get-MeshService summary: Returns MeshService entity tags: [ "MeshService" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshServiceItem" put: + operationId: create-or-update-MeshService summary: Creates or Updates MeshService entity tags: [ "MeshService" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshServiceCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshService summary: Deletes MeshService entity tags: [ "MeshService" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshservices: get: + operationId: get-MeshService-list summary: Returns a list of MeshService in the mesh. tags: [ "MeshService" ] parameters: diff --git a/pkg/core/resources/apis/meshservice/k8s/crd/kuma.io_meshservices.yaml b/pkg/core/resources/apis/meshservice/k8s/crd/kuma.io_meshservices.yaml index 9223662ddb4d..eeec7bd51162 100644 --- a/pkg/core/resources/apis/meshservice/k8s/crd/kuma.io_meshservices.yaml +++ b/pkg/core/resources/apis/meshservice/k8s/crd/kuma.io_meshservices.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshservices.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/donothingpolicy/k8s/crd/kuma.io_donothingpolicies.yaml b/pkg/plugins/policies/donothingpolicy/k8s/crd/kuma.io_donothingpolicies.yaml index 25de0789b785..98209e6e1ca4 100644 --- a/pkg/plugins/policies/donothingpolicy/k8s/crd/kuma.io_donothingpolicies.yaml +++ b/pkg/plugins/policies/donothingpolicy/k8s/crd/kuma.io_donothingpolicies.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: donothingpolicies.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshaccesslog/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshaccesslog/api/v1alpha1/rest.yaml index 23042c4c83aa..b37534bb49bf 100644 --- a/pkg/plugins/policies/meshaccesslog/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshaccesslog/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshaccesslogs/{name}: get: + operationId: get-MeshAccessLog summary: Returns MeshAccessLog entity tags: [ "MeshAccessLog" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshAccessLogItem" put: + operationId: create-or-update-MeshAccessLog summary: Creates or Updates MeshAccessLog entity tags: [ "MeshAccessLog" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshAccessLogCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshAccessLog summary: Deletes MeshAccessLog entity tags: [ "MeshAccessLog" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshaccesslogs: get: + operationId: get-MeshAccessLog-list summary: Returns a list of MeshAccessLog in the mesh. tags: [ "MeshAccessLog" ] parameters: diff --git a/pkg/plugins/policies/meshaccesslog/k8s/crd/kuma.io_meshaccesslogs.yaml b/pkg/plugins/policies/meshaccesslog/k8s/crd/kuma.io_meshaccesslogs.yaml index 7c419cf8761b..3f75a0d39f49 100644 --- a/pkg/plugins/policies/meshaccesslog/k8s/crd/kuma.io_meshaccesslogs.yaml +++ b/pkg/plugins/policies/meshaccesslog/k8s/crd/kuma.io_meshaccesslogs.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshaccesslogs.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshcircuitbreaker/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshcircuitbreaker/api/v1alpha1/rest.yaml index 976284b0ca9e..5a793bed3d47 100644 --- a/pkg/plugins/policies/meshcircuitbreaker/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshcircuitbreaker/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshcircuitbreakers/{name}: get: + operationId: get-MeshCircuitBreaker summary: Returns MeshCircuitBreaker entity tags: [ "MeshCircuitBreaker" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshCircuitBreakerItem" put: + operationId: create-or-update-MeshCircuitBreaker summary: Creates or Updates MeshCircuitBreaker entity tags: [ "MeshCircuitBreaker" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshCircuitBreakerCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshCircuitBreaker summary: Deletes MeshCircuitBreaker entity tags: [ "MeshCircuitBreaker" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshcircuitbreakers: get: + operationId: get-MeshCircuitBreaker-list summary: Returns a list of MeshCircuitBreaker in the mesh. tags: [ "MeshCircuitBreaker" ] parameters: diff --git a/pkg/plugins/policies/meshcircuitbreaker/k8s/crd/kuma.io_meshcircuitbreakers.yaml b/pkg/plugins/policies/meshcircuitbreaker/k8s/crd/kuma.io_meshcircuitbreakers.yaml index 27f96d9731ac..a29e81afd986 100644 --- a/pkg/plugins/policies/meshcircuitbreaker/k8s/crd/kuma.io_meshcircuitbreakers.yaml +++ b/pkg/plugins/policies/meshcircuitbreaker/k8s/crd/kuma.io_meshcircuitbreakers.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshcircuitbreakers.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshfaultinjection/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshfaultinjection/api/v1alpha1/rest.yaml index b92a1a1b7d67..9af31ccb1c0d 100644 --- a/pkg/plugins/policies/meshfaultinjection/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshfaultinjection/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshfaultinjections/{name}: get: + operationId: get-MeshFaultInjection summary: Returns MeshFaultInjection entity tags: [ "MeshFaultInjection" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshFaultInjectionItem" put: + operationId: create-or-update-MeshFaultInjection summary: Creates or Updates MeshFaultInjection entity tags: [ "MeshFaultInjection" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshFaultInjectionCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshFaultInjection summary: Deletes MeshFaultInjection entity tags: [ "MeshFaultInjection" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshfaultinjections: get: + operationId: get-MeshFaultInjection-list summary: Returns a list of MeshFaultInjection in the mesh. tags: [ "MeshFaultInjection" ] parameters: diff --git a/pkg/plugins/policies/meshfaultinjection/k8s/crd/kuma.io_meshfaultinjections.yaml b/pkg/plugins/policies/meshfaultinjection/k8s/crd/kuma.io_meshfaultinjections.yaml index 9d3395af3665..80099483d908 100644 --- a/pkg/plugins/policies/meshfaultinjection/k8s/crd/kuma.io_meshfaultinjections.yaml +++ b/pkg/plugins/policies/meshfaultinjection/k8s/crd/kuma.io_meshfaultinjections.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshfaultinjections.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshhealthcheck/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshhealthcheck/api/v1alpha1/rest.yaml index 6688b31f8767..9188ad10bc82 100644 --- a/pkg/plugins/policies/meshhealthcheck/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshhealthcheck/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshhealthchecks/{name}: get: + operationId: get-MeshHealthCheck summary: Returns MeshHealthCheck entity tags: [ "MeshHealthCheck" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshHealthCheckItem" put: + operationId: create-or-update-MeshHealthCheck summary: Creates or Updates MeshHealthCheck entity tags: [ "MeshHealthCheck" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshHealthCheckCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshHealthCheck summary: Deletes MeshHealthCheck entity tags: [ "MeshHealthCheck" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshhealthchecks: get: + operationId: get-MeshHealthCheck-list summary: Returns a list of MeshHealthCheck in the mesh. tags: [ "MeshHealthCheck" ] parameters: diff --git a/pkg/plugins/policies/meshhealthcheck/k8s/crd/kuma.io_meshhealthchecks.yaml b/pkg/plugins/policies/meshhealthcheck/k8s/crd/kuma.io_meshhealthchecks.yaml index f2862c34b91d..4e37fc1fd125 100644 --- a/pkg/plugins/policies/meshhealthcheck/k8s/crd/kuma.io_meshhealthchecks.yaml +++ b/pkg/plugins/policies/meshhealthcheck/k8s/crd/kuma.io_meshhealthchecks.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshhealthchecks.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshhttproute/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshhttproute/api/v1alpha1/rest.yaml index 7753494d1bfa..d676e7fec190 100644 --- a/pkg/plugins/policies/meshhttproute/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshhttproute/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshhttproutes/{name}: get: + operationId: get-MeshHTTPRoute summary: Returns MeshHTTPRoute entity tags: [ "MeshHTTPRoute" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshHTTPRouteItem" put: + operationId: create-or-update-MeshHTTPRoute summary: Creates or Updates MeshHTTPRoute entity tags: [ "MeshHTTPRoute" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshHTTPRouteCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshHTTPRoute summary: Deletes MeshHTTPRoute entity tags: [ "MeshHTTPRoute" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshhttproutes: get: + operationId: get-MeshHTTPRoute-list summary: Returns a list of MeshHTTPRoute in the mesh. tags: [ "MeshHTTPRoute" ] parameters: diff --git a/pkg/plugins/policies/meshhttproute/k8s/crd/kuma.io_meshhttproutes.yaml b/pkg/plugins/policies/meshhttproute/k8s/crd/kuma.io_meshhttproutes.yaml index 7dc3a7cf4325..912895e1ad35 100644 --- a/pkg/plugins/policies/meshhttproute/k8s/crd/kuma.io_meshhttproutes.yaml +++ b/pkg/plugins/policies/meshhttproute/k8s/crd/kuma.io_meshhttproutes.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshhttproutes.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshloadbalancingstrategy/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshloadbalancingstrategy/api/v1alpha1/rest.yaml index f5cd9578d6d4..43ea99cb1fb2 100644 --- a/pkg/plugins/policies/meshloadbalancingstrategy/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshloadbalancingstrategy/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshloadbalancingstrategies/{name}: get: + operationId: get-MeshLoadBalancingStrategy summary: Returns MeshLoadBalancingStrategy entity tags: [ "MeshLoadBalancingStrategy" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshLoadBalancingStrategyItem" put: + operationId: create-or-update-MeshLoadBalancingStrategy summary: Creates or Updates MeshLoadBalancingStrategy entity tags: [ "MeshLoadBalancingStrategy" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshLoadBalancingStrategy summary: Deletes MeshLoadBalancingStrategy entity tags: [ "MeshLoadBalancingStrategy" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshloadbalancingstrategies: get: + operationId: get-MeshLoadBalancingStrategy-list summary: Returns a list of MeshLoadBalancingStrategy in the mesh. tags: [ "MeshLoadBalancingStrategy" ] parameters: diff --git a/pkg/plugins/policies/meshloadbalancingstrategy/k8s/crd/kuma.io_meshloadbalancingstrategies.yaml b/pkg/plugins/policies/meshloadbalancingstrategy/k8s/crd/kuma.io_meshloadbalancingstrategies.yaml index 06ac52b38947..07d2fdad96b5 100644 --- a/pkg/plugins/policies/meshloadbalancingstrategy/k8s/crd/kuma.io_meshloadbalancingstrategies.yaml +++ b/pkg/plugins/policies/meshloadbalancingstrategy/k8s/crd/kuma.io_meshloadbalancingstrategies.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshloadbalancingstrategies.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshmetric/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshmetric/api/v1alpha1/rest.yaml index ef5e22e062de..1d7615c7f243 100644 --- a/pkg/plugins/policies/meshmetric/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshmetric/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshmetrics/{name}: get: + operationId: get-MeshMetric summary: Returns MeshMetric entity tags: [ "MeshMetric" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshMetricItem" put: + operationId: create-or-update-MeshMetric summary: Creates or Updates MeshMetric entity tags: [ "MeshMetric" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshMetricCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshMetric summary: Deletes MeshMetric entity tags: [ "MeshMetric" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshmetrics: get: + operationId: get-MeshMetric-list summary: Returns a list of MeshMetric in the mesh. tags: [ "MeshMetric" ] parameters: diff --git a/pkg/plugins/policies/meshmetric/k8s/crd/kuma.io_meshmetrics.yaml b/pkg/plugins/policies/meshmetric/k8s/crd/kuma.io_meshmetrics.yaml index e4eff645f3b0..5d047cd9db72 100644 --- a/pkg/plugins/policies/meshmetric/k8s/crd/kuma.io_meshmetrics.yaml +++ b/pkg/plugins/policies/meshmetric/k8s/crd/kuma.io_meshmetrics.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshmetrics.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshpassthrough/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshpassthrough/api/v1alpha1/rest.yaml index 4fa787521755..eaf821bab6c5 100644 --- a/pkg/plugins/policies/meshpassthrough/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshpassthrough/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshpassthroughs/{name}: get: + operationId: get-MeshPassthrough summary: Returns MeshPassthrough entity tags: [ "MeshPassthrough" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshPassthroughItem" put: + operationId: create-or-update-MeshPassthrough summary: Creates or Updates MeshPassthrough entity tags: [ "MeshPassthrough" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshPassthroughCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshPassthrough summary: Deletes MeshPassthrough entity tags: [ "MeshPassthrough" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshpassthroughs: get: + operationId: get-MeshPassthrough-list summary: Returns a list of MeshPassthrough in the mesh. tags: [ "MeshPassthrough" ] parameters: diff --git a/pkg/plugins/policies/meshpassthrough/k8s/crd/kuma.io_meshpassthroughs.yaml b/pkg/plugins/policies/meshpassthrough/k8s/crd/kuma.io_meshpassthroughs.yaml index fa44e0ba84fc..1eaac22c164c 100644 --- a/pkg/plugins/policies/meshpassthrough/k8s/crd/kuma.io_meshpassthroughs.yaml +++ b/pkg/plugins/policies/meshpassthrough/k8s/crd/kuma.io_meshpassthroughs.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshpassthroughs.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshproxypatch/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshproxypatch/api/v1alpha1/rest.yaml index 692daf0d46e2..152a4628cc6e 100644 --- a/pkg/plugins/policies/meshproxypatch/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshproxypatch/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshproxypatches/{name}: get: + operationId: get-MeshProxyPatch summary: Returns MeshProxyPatch entity tags: [ "MeshProxyPatch" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshProxyPatchItem" put: + operationId: create-or-update-MeshProxyPatch summary: Creates or Updates MeshProxyPatch entity tags: [ "MeshProxyPatch" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshProxyPatchCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshProxyPatch summary: Deletes MeshProxyPatch entity tags: [ "MeshProxyPatch" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshproxypatches: get: + operationId: get-MeshProxyPatch-list summary: Returns a list of MeshProxyPatch in the mesh. tags: [ "MeshProxyPatch" ] parameters: diff --git a/pkg/plugins/policies/meshproxypatch/k8s/crd/kuma.io_meshproxypatches.yaml b/pkg/plugins/policies/meshproxypatch/k8s/crd/kuma.io_meshproxypatches.yaml index 3a1972950611..8c7b3b4130f4 100644 --- a/pkg/plugins/policies/meshproxypatch/k8s/crd/kuma.io_meshproxypatches.yaml +++ b/pkg/plugins/policies/meshproxypatch/k8s/crd/kuma.io_meshproxypatches.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshproxypatches.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshratelimit/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshratelimit/api/v1alpha1/rest.yaml index 04af94f25279..e74ebe7462a1 100644 --- a/pkg/plugins/policies/meshratelimit/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshratelimit/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshratelimits/{name}: get: + operationId: get-MeshRateLimit summary: Returns MeshRateLimit entity tags: [ "MeshRateLimit" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshRateLimitItem" put: + operationId: create-or-update-MeshRateLimit summary: Creates or Updates MeshRateLimit entity tags: [ "MeshRateLimit" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshRateLimitCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshRateLimit summary: Deletes MeshRateLimit entity tags: [ "MeshRateLimit" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshratelimits: get: + operationId: get-MeshRateLimit-list summary: Returns a list of MeshRateLimit in the mesh. tags: [ "MeshRateLimit" ] parameters: diff --git a/pkg/plugins/policies/meshratelimit/k8s/crd/kuma.io_meshratelimits.yaml b/pkg/plugins/policies/meshratelimit/k8s/crd/kuma.io_meshratelimits.yaml index f9e9077003c9..30d300e3e40b 100644 --- a/pkg/plugins/policies/meshratelimit/k8s/crd/kuma.io_meshratelimits.yaml +++ b/pkg/plugins/policies/meshratelimit/k8s/crd/kuma.io_meshratelimits.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshratelimits.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshretry/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshretry/api/v1alpha1/rest.yaml index 6ee762120e48..c0715ed7f9a7 100644 --- a/pkg/plugins/policies/meshretry/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshretry/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshretries/{name}: get: + operationId: get-MeshRetry summary: Returns MeshRetry entity tags: [ "MeshRetry" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshRetryItem" put: + operationId: create-or-update-MeshRetry summary: Creates or Updates MeshRetry entity tags: [ "MeshRetry" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshRetryCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshRetry summary: Deletes MeshRetry entity tags: [ "MeshRetry" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshretries: get: + operationId: get-MeshRetry-list summary: Returns a list of MeshRetry in the mesh. tags: [ "MeshRetry" ] parameters: diff --git a/pkg/plugins/policies/meshretry/k8s/crd/kuma.io_meshretries.yaml b/pkg/plugins/policies/meshretry/k8s/crd/kuma.io_meshretries.yaml index 592e54abf778..6a2afe4132dd 100644 --- a/pkg/plugins/policies/meshretry/k8s/crd/kuma.io_meshretries.yaml +++ b/pkg/plugins/policies/meshretry/k8s/crd/kuma.io_meshretries.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshretries.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshtcproute/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshtcproute/api/v1alpha1/rest.yaml index 15ba32fbfafb..99c7f9099d0e 100644 --- a/pkg/plugins/policies/meshtcproute/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshtcproute/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshtcproutes/{name}: get: + operationId: get-MeshTCPRoute summary: Returns MeshTCPRoute entity tags: [ "MeshTCPRoute" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshTCPRouteItem" put: + operationId: create-or-update-MeshTCPRoute summary: Creates or Updates MeshTCPRoute entity tags: [ "MeshTCPRoute" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshTCPRouteCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshTCPRoute summary: Deletes MeshTCPRoute entity tags: [ "MeshTCPRoute" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshtcproutes: get: + operationId: get-MeshTCPRoute-list summary: Returns a list of MeshTCPRoute in the mesh. tags: [ "MeshTCPRoute" ] parameters: diff --git a/pkg/plugins/policies/meshtcproute/k8s/crd/kuma.io_meshtcproutes.yaml b/pkg/plugins/policies/meshtcproute/k8s/crd/kuma.io_meshtcproutes.yaml index e3b80f443c96..ee70c8c86b14 100644 --- a/pkg/plugins/policies/meshtcproute/k8s/crd/kuma.io_meshtcproutes.yaml +++ b/pkg/plugins/policies/meshtcproute/k8s/crd/kuma.io_meshtcproutes.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshtcproutes.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshtimeout/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshtimeout/api/v1alpha1/rest.yaml index ffcf3c80d2ca..67b51ffe1dd4 100644 --- a/pkg/plugins/policies/meshtimeout/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshtimeout/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshtimeouts/{name}: get: + operationId: get-MeshTimeout summary: Returns MeshTimeout entity tags: [ "MeshTimeout" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshTimeoutItem" put: + operationId: create-or-update-MeshTimeout summary: Creates or Updates MeshTimeout entity tags: [ "MeshTimeout" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshTimeoutCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshTimeout summary: Deletes MeshTimeout entity tags: [ "MeshTimeout" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshtimeouts: get: + operationId: get-MeshTimeout-list summary: Returns a list of MeshTimeout in the mesh. tags: [ "MeshTimeout" ] parameters: diff --git a/pkg/plugins/policies/meshtimeout/k8s/crd/kuma.io_meshtimeouts.yaml b/pkg/plugins/policies/meshtimeout/k8s/crd/kuma.io_meshtimeouts.yaml index 47e3da297b54..0acdf36531bb 100644 --- a/pkg/plugins/policies/meshtimeout/k8s/crd/kuma.io_meshtimeouts.yaml +++ b/pkg/plugins/policies/meshtimeout/k8s/crd/kuma.io_meshtimeouts.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshtimeouts.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshtls/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshtls/api/v1alpha1/rest.yaml index c6f42b4d8974..e1552a0b0dd6 100644 --- a/pkg/plugins/policies/meshtls/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshtls/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshtlses/{name}: get: + operationId: get-MeshTLS summary: Returns MeshTLS entity tags: [ "MeshTLS" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshTLSItem" put: + operationId: create-or-update-MeshTLS summary: Creates or Updates MeshTLS entity tags: [ "MeshTLS" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshTLSCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshTLS summary: Deletes MeshTLS entity tags: [ "MeshTLS" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshtlses: get: + operationId: get-MeshTLS-list summary: Returns a list of MeshTLS in the mesh. tags: [ "MeshTLS" ] parameters: diff --git a/pkg/plugins/policies/meshtls/k8s/crd/kuma.io_meshtlses.yaml b/pkg/plugins/policies/meshtls/k8s/crd/kuma.io_meshtlses.yaml index 8b885455c3b6..d46cdd37a86a 100644 --- a/pkg/plugins/policies/meshtls/k8s/crd/kuma.io_meshtlses.yaml +++ b/pkg/plugins/policies/meshtls/k8s/crd/kuma.io_meshtlses.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshtlses.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshtrace/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshtrace/api/v1alpha1/rest.yaml index aa22859072f6..4dc5ce170e9b 100644 --- a/pkg/plugins/policies/meshtrace/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshtrace/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshtraces/{name}: get: + operationId: get-MeshTrace summary: Returns MeshTrace entity tags: [ "MeshTrace" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshTraceItem" put: + operationId: create-or-update-MeshTrace summary: Creates or Updates MeshTrace entity tags: [ "MeshTrace" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshTraceCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshTrace summary: Deletes MeshTrace entity tags: [ "MeshTrace" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshtraces: get: + operationId: get-MeshTrace-list summary: Returns a list of MeshTrace in the mesh. tags: [ "MeshTrace" ] parameters: diff --git a/pkg/plugins/policies/meshtrace/k8s/crd/kuma.io_meshtraces.yaml b/pkg/plugins/policies/meshtrace/k8s/crd/kuma.io_meshtraces.yaml index bf34e3c01dfa..10b794b23d14 100644 --- a/pkg/plugins/policies/meshtrace/k8s/crd/kuma.io_meshtraces.yaml +++ b/pkg/plugins/policies/meshtrace/k8s/crd/kuma.io_meshtraces.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshtraces.kuma.io spec: group: kuma.io diff --git a/pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/rest.yaml index adcdba233f16..5e12e8febcec 100644 --- a/pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/rest.yaml @@ -8,6 +8,7 @@ info: paths: /meshes/{mesh}/meshtrafficpermissions/{name}: get: + operationId: get-MeshTrafficPermission summary: Returns MeshTrafficPermission entity tags: [ "MeshTrafficPermission" ] parameters: @@ -28,6 +29,7 @@ paths: $ref: "#/components/responses/MeshTrafficPermissionItem" put: + operationId: create-or-update-MeshTrafficPermission summary: Creates or Updates MeshTrafficPermission entity tags: [ "MeshTrafficPermission" ] parameters: @@ -65,6 +67,7 @@ paths: $ref: '#/components/schemas/MeshTrafficPermissionCreateOrUpdateSuccessResponse' delete: + operationId: delete-MeshTrafficPermission summary: Deletes MeshTrafficPermission entity tags: [ "MeshTrafficPermission" ] parameters: @@ -83,9 +86,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" /meshes/{mesh}/meshtrafficpermissions: get: + operationId: get-MeshTrafficPermission-list summary: Returns a list of MeshTrafficPermission in the mesh. tags: [ "MeshTrafficPermission" ] parameters: diff --git a/pkg/plugins/policies/meshtrafficpermission/k8s/crd/kuma.io_meshtrafficpermissions.yaml b/pkg/plugins/policies/meshtrafficpermission/k8s/crd/kuma.io_meshtrafficpermissions.yaml index f87460c0ff0c..d4721600a235 100644 --- a/pkg/plugins/policies/meshtrafficpermission/k8s/crd/kuma.io_meshtrafficpermissions.yaml +++ b/pkg/plugins/policies/meshtrafficpermission/k8s/crd/kuma.io_meshtrafficpermissions.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.17.0 + controller-gen.kubebuilder.io/version: v0.16.5 name: meshtrafficpermissions.kuma.io spec: group: kuma.io diff --git a/tools/openapi/templates/endpoints.yaml b/tools/openapi/templates/endpoints.yaml index be5e52095ce4..ee27e1319184 100644 --- a/tools/openapi/templates/endpoints.yaml +++ b/tools/openapi/templates/endpoints.yaml @@ -8,6 +8,7 @@ info: paths: {{if eq .Scope "Mesh"}}/meshes/{mesh}{{end}}/{{ .Path }}/{name}: get: + operationId: get-{{ .Name }} summary: Returns {{ .Name }} entity tags: [ "{{ .Name }}" ] parameters: @@ -30,6 +31,7 @@ paths: $ref: "#/components/responses/{{.Name}}Item" put: + operationId: create-or-update-{{ .Name }} summary: Creates or Updates {{ .Name }} entity tags: [ "{{ .Name }}" ] parameters: @@ -69,6 +71,7 @@ paths: $ref: '#/components/schemas/{{.Name}}CreateOrUpdateSuccessResponse' delete: + operationId: delete-{{ .Name }} summary: Deletes {{ .Name }} entity tags: [ "{{ .Name }}" ] parameters: @@ -89,9 +92,12 @@ paths: responses: '200': description: Successful response + '404': + $ref: "/specs/base/specs/common/error_schema.yaml#/components/responses/NotFound" {{if eq .Scope "Mesh"}}/meshes/{mesh}{{end}}/{{ .Path }}: get: + operationId: get-{{ .Name }}-list summary: Returns a list of {{ .Name }} in the mesh. tags: [ "{{ .Name }}" ] {{- if eq .Scope "Mesh"}}