encode kind, namespace and name

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-10-06 10:42:17 +02:00
parent 0e2893dcf6
commit 6b4fe1fafe
+3 -1
View File
@@ -54,7 +54,9 @@ export class CatalogClient implements CatalogApi {
const { kind, namespace, name } = parseEntityRef(request.entityRef);
return await this.requestRequired(
'GET',
`/entities/by-name/${kind}/${namespace}/${name}/ancestry`,
`/entities/by-name/${encodeURIComponent(kind)}/${encodeURIComponent(
namespace,
)}/${encodeURIComponent(name)}/ancestry`,
options,
);
}