mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Merge branch 'master' into extensions-api
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
commit
4e8bdace79
13 files changed
+409
-189
No files matched your search
@@ -141,7 +141,7 @@ export class HelmRelease implements ItemObject {
|
||||
chart: string
|
||||
status: string
|
||||
updated: string
|
||||
revision: number
|
||||
revision: string
|
||||
|
||||
getId() {
|
||||
return this.namespace + this.name;
|
||||
@@ -165,7 +165,7 @@ export class HelmRelease implements ItemObject {
|
||||
}
|
||||
|
||||
getRevision() {
|
||||
return this.revision;
|
||||
return parseInt(this.revision, 10);
|
||||
}
|
||||
|
||||
getStatus() {
|
||||
|
||||
@@ -109,6 +109,14 @@ export class Ingress extends KubeObject {
|
||||
}
|
||||
return ports.join(", ")
|
||||
}
|
||||
|
||||
getLoadBalancers() {
|
||||
const { status: { loadBalancer = { ingress: [] } } } = this;
|
||||
|
||||
return (loadBalancer.ingress ?? []).map(address => (
|
||||
address.hostname || address.ip
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
export const ingressApi = new IngressApi({
|
||||
|
||||
@@ -152,7 +152,16 @@ export interface IPodContainerStatus {
|
||||
reason: string;
|
||||
};
|
||||
};
|
||||
lastState: {};
|
||||
lastState: {
|
||||
[index: string]: object;
|
||||
terminated?: {
|
||||
startedAt: string;
|
||||
finishedAt: string;
|
||||
exitCode: number;
|
||||
reason: string;
|
||||
containerID: string;
|
||||
};
|
||||
};
|
||||
ready: boolean;
|
||||
restartCount: number;
|
||||
image: string;
|
||||
|
||||
Reference in new issue
Block a user