Skip to content

Commit

Permalink
fix: swagger expected response for adding kubeconfig (#572)
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <oorel@redhat.com>
  • Loading branch information
olexii4 authored Jul 5, 2022
1 parent 19b9425 commit aeb69fc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/dashboard-backend/src/api/kubeConfigApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@ const tags = ['Kube Config'];
export function registerKubeConfigApi(server: FastifyInstance) {
server.post(
`${baseApiPath}/namespace/:namespace/devworkspaceId/:devworkspaceId/kubeconfig`,
getSchema({ tags, params: namespacedKubeConfigSchema }),
getSchema({
tags,
params: namespacedKubeConfigSchema,
response: {
204: {
description: 'The cube config file is successfully injected',
type: 'null',
},
},
}),
async function (request: FastifyRequest, reply: FastifyReply) {
const token = getToken(request);
const { kubeConfigApi } = await getDevWorkspaceClient(token);
Expand Down

0 comments on commit aeb69fc

Please sign in to comment.