Fixed lint issues.

This commit is contained in:
djeinstine
2025-02-11 21:29:51 +00:00
parent e531d7cd15
commit 1c36eb119e
4 changed files with 21 additions and 11 deletions

View File

@@ -36,7 +36,11 @@ export const getKubeConfig = () => {
export async function checkCRD(name, kc, logger) {
const apiExtensions = kc.makeApiClient(ApiextensionsV1Api);
const exist = await apiExtensions
.readCustomResourceDefinitionStatus({name:name})
.readCustomResourceDefinitionStatus(
{
name
}
)
.then(() => true)
.catch(async (error) => {
if (error.statusCode === 403) {