mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Better fix
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
e84f9b9394
commit
1190b3ae0b
@ -42,7 +42,7 @@ export interface ISecretRef {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface SecretData extends KubeJsonApiData {
|
export interface SecretData extends KubeJsonApiData {
|
||||||
type?: SecretType;
|
type: SecretType;
|
||||||
data?: Record<string, string>;
|
data?: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ export class Secret extends KubeObject {
|
|||||||
static namespaced = true;
|
static namespaced = true;
|
||||||
static apiBase = "/api/v1/secrets";
|
static apiBase = "/api/v1/secrets";
|
||||||
|
|
||||||
declare type?: SecretType;
|
declare type: SecretType;
|
||||||
declare data: Record<string, string>;
|
declare data: Record<string, string>;
|
||||||
|
|
||||||
constructor(data: SecretData) {
|
constructor(data: SecretData) {
|
||||||
|
|||||||
@ -27,7 +27,7 @@ import React from "react";
|
|||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
import { secretsStore } from "../../+config-secrets/secrets.store";
|
import { secretsStore } from "../../+config-secrets/secrets.store";
|
||||||
import { Secret, ServiceAccount } from "../../../../common/k8s-api/endpoints";
|
import { Secret, SecretType, ServiceAccount } from "../../../../common/k8s-api/endpoints";
|
||||||
import { DrawerItem, DrawerTitle } from "../../drawer";
|
import { DrawerItem, DrawerTitle } from "../../drawer";
|
||||||
import { Icon } from "../../icon";
|
import { Icon } from "../../icon";
|
||||||
import type { KubeObjectDetailsProps } from "../../kube-object-details";
|
import type { KubeObjectDetailsProps } from "../../kube-object-details";
|
||||||
@ -124,7 +124,8 @@ export class ServiceAccountsDetails extends React.Component<Props> {
|
|||||||
uid: null,
|
uid: null,
|
||||||
selfLink: null,
|
selfLink: null,
|
||||||
resourceVersion: null
|
resourceVersion: null
|
||||||
}
|
},
|
||||||
|
type: SecretType.Opaque
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user