mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Correctly handle empty string valued secrets in SecretDetails (#4079)
This commit is contained in:
1 parent
38276bbbff
commit
b4a4cc6be4
4 files changed
+125
-58
No files matched your search
@@ -41,12 +41,9 @@ export interface ISecretRef {
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface Secret {
|
||||
export interface SecretData extends KubeJsonApiData {
|
||||
type: SecretType;
|
||||
data: {
|
||||
[prop: string]: string;
|
||||
token?: string;
|
||||
};
|
||||
data?: Record<string, string>;
|
||||
}
|
||||
|
||||
export class Secret extends KubeObject {
|
||||
@@ -54,7 +51,10 @@ export class Secret extends KubeObject {
|
||||
static namespaced = true;
|
||||
static apiBase = "/api/v1/secrets";
|
||||
|
||||
constructor(data: KubeJsonApiData) {
|
||||
declare type: SecretType;
|
||||
declare data: Record<string, string>;
|
||||
|
||||
constructor(data: SecretData) {
|
||||
super(data);
|
||||
autoBind(this);
|
||||
|
||||
|
||||
Reference in new issue
Block a user