mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix lint issues
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
1fa6d000b0
commit
4191bfaca6
@ -222,7 +222,7 @@ export class Cluster implements ClusterModel, ClusterState {
|
||||
* @computed
|
||||
* @internal
|
||||
*/
|
||||
@computed get defaultNamespace(): string {
|
||||
@computed get defaultNamespace(): string {
|
||||
const { defaultNamespace } = this.preferences;
|
||||
|
||||
return defaultNamespace;
|
||||
@ -320,6 +320,7 @@ export class Cluster implements ClusterModel, ClusterState {
|
||||
*/
|
||||
async recreateProxyKubeconfig() {
|
||||
logger.info("Recreate proxy kubeconfig");
|
||||
|
||||
try {
|
||||
this.kubeconfigManager.clear();
|
||||
} catch {
|
||||
|
||||
@ -43,7 +43,7 @@ export class ClusterHomeDirSetting extends React.Component<Props> {
|
||||
async componentDidMount() {
|
||||
const kubeconfig = await this.props.cluster.getKubeconfig();
|
||||
|
||||
const defaultNamespace = this.props.cluster.preferences?.defaultNamespace || kubeconfig.getContextObject(this.props.cluster.contextName).namespace
|
||||
const defaultNamespace = this.props.cluster.preferences?.defaultNamespace || kubeconfig.getContextObject(this.props.cluster.contextName).namespace;
|
||||
|
||||
disposeOnUnmount(this,
|
||||
autorun(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user