From 4615fcef1d43838827ff35d56039bbb9defabb03 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 5 Jan 2023 15:42:34 +0200 Subject: [PATCH] fix lint Signed-off-by: Roman --- src/common/k8s-api/endpoints/ingress-class.api.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/common/k8s-api/endpoints/ingress-class.api.ts b/src/common/k8s-api/endpoints/ingress-class.api.ts index 2491b298df..d23693a9fd 100644 --- a/src/common/k8s-api/endpoints/ingress-class.api.ts +++ b/src/common/k8s-api/endpoints/ingress-class.api.ts @@ -5,7 +5,8 @@ import type { KubeObjectMetadata, KubeObjectScope } from "../kube-object"; import { KubeObject } from "../kube-object"; -import { KubeApi, ResourceDescriptor } from "../kube-api"; +import type { ResourceDescriptor } from "../kube-api"; +import { KubeApi } from "../kube-api"; export class IngressClassApi extends KubeApi { constructor() { @@ -16,7 +17,7 @@ export class IngressClassApi extends KubeApi { }); } - setAsDefault({ name }: ResourceDescriptor, isDefault: boolean = true) { + setAsDefault({ name }: ResourceDescriptor, isDefault = true) { const reqUrl = this.formatUrlForNotListing({ name }); return this.request.patch(reqUrl, { @@ -24,9 +25,9 @@ export class IngressClassApi extends KubeApi { metadata: { annotations: { [IngressClass.ANNOTATION_IS_DEFAULT]: JSON.stringify(isDefault), - } - } - } + }, + }, + }, }, { headers: { "content-type": "application/strategic-merge-patch+json",