This commit is contained in:
shamoon
2025-02-11 15:52:23 -08:00
parent 1c36eb119e
commit 73573a48c8
6 changed files with 35 additions and 49 deletions

View File

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