Skip to content

Commit

Permalink
use ConversionResponseStatus (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
fffunke authored Jun 1, 2023
1 parent d36e6fe commit d0e4115
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/types/apiextensions/v1/conversionreview.ts
Original file line number Diff line number Diff line change
@@ -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<TRequest, TResponse> = Resource<typeof conversionReviewKind, typeof apiGroup> &
(
Expand All @@ -22,5 +27,5 @@ export interface ConversionRequest<TObject> {
export interface ConversionResponse<TObject> {
uid: string;
convertedObjects?: TObject[];
result: Status;
result: ConversionResponseStatus;
}

0 comments on commit d0e4115

Please sign in to comment.