Correctly handle empty string valued secrets in SecretDetails (#4079)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-10-20 08:51:03 -04:00
1 parent 38276bbbff
commit b4a4cc6be4
4 files changed
+125 -58

No files matched your search

@@ -27,7 +27,7 @@ import React from "react";
import { Link } from "react-router-dom";
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 { Icon } from "../../icon";
import type { KubeObjectDetailsProps } from "../../kube-object-details";
@@ -124,7 +124,8 @@ export class ServiceAccountsDetails extends React.Component<Props> {
uid: null,
selfLink: null,
resourceVersion: null
}
},
type: SecretType.Opaque
});
}