mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix reading CRD conditions (#967)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
d0f1d7b74b
commit
265aa41968
@ -223,6 +223,7 @@ export class Issuer extends KubeObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getConditions() {
|
getConditions() {
|
||||||
|
if (!this.status?.conditions) return [];
|
||||||
const { conditions = [] } = this.status;
|
const { conditions = [] } = this.status;
|
||||||
return conditions.map(condition => {
|
return conditions.map(condition => {
|
||||||
const { message, reason, lastTransitionTime, status } = condition;
|
const { message, reason, lastTransitionTime, status } = condition;
|
||||||
|
|||||||
@ -9,12 +9,12 @@ type AdditionalPrinterColumnsCommon = {
|
|||||||
description: string;
|
description: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
type AdditionalPrinterColumnsV1 = AdditionalPrinterColumnsCommon & {
|
type AdditionalPrinterColumnsV1 = AdditionalPrinterColumnsCommon & {
|
||||||
jsonPath: string;
|
jsonPath: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
type AdditionalPrinterColumnsV1Beta = AdditionalPrinterColumnsCommon & {
|
type AdditionalPrinterColumnsV1Beta = AdditionalPrinterColumnsCommon & {
|
||||||
JSONPath: string;
|
JSONPath: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CustomResourceDefinition extends KubeObject {
|
export class CustomResourceDefinition extends KubeObject {
|
||||||
@ -132,7 +132,7 @@ export class CustomResourceDefinition extends KubeObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getConditions() {
|
getConditions() {
|
||||||
if (!this.status.conditions) return [];
|
if (!this.status?.conditions) return [];
|
||||||
return this.status.conditions.map(condition => {
|
return this.status.conditions.map(condition => {
|
||||||
const { message, reason, lastTransitionTime, status } = condition;
|
const { message, reason, lastTransitionTime, status } = condition;
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user