From d0e4115680179a9cd3785b990533b5ffd328b93b Mon Sep 17 00:00:00 2001 From: fffunke <50409802+fffunke@users.noreply.github.com> Date: Thu, 1 Jun 2023 09:53:09 +0200 Subject: [PATCH] use ConversionResponseStatus (#78) --- src/types/apiextensions/v1/conversionreview.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/types/apiextensions/v1/conversionreview.ts b/src/types/apiextensions/v1/conversionreview.ts index edf216f..0647d67 100644 --- a/src/types/apiextensions/v1/conversionreview.ts +++ b/src/types/apiextensions/v1/conversionreview.ts @@ -1,7 +1,12 @@ -import { Resource, Status } from "../../meta"; +import { Resource } from "../../meta"; export declare const apiGroup = "apiextensions.k8s.io/v1"; +export declare type ConversionResponseStatus = { + status: "Success" | "Failed"; + message?: string; +}; + export declare const conversionReviewKind = "ConversionReview"; export declare type ConversionReview = Resource & ( @@ -22,5 +27,5 @@ export interface ConversionRequest { export interface ConversionResponse { uid: string; convertedObjects?: TObject[]; - result: Status; + result: ConversionResponseStatus; }