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
|
* @computed
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
@computed get defaultNamespace(): string {
|
@computed get defaultNamespace(): string {
|
||||||
const { defaultNamespace } = this.preferences;
|
const { defaultNamespace } = this.preferences;
|
||||||
|
|
||||||
return defaultNamespace;
|
return defaultNamespace;
|
||||||
@ -320,6 +320,7 @@ export class Cluster implements ClusterModel, ClusterState {
|
|||||||
*/
|
*/
|
||||||
async recreateProxyKubeconfig() {
|
async recreateProxyKubeconfig() {
|
||||||
logger.info("Recreate proxy kubeconfig");
|
logger.info("Recreate proxy kubeconfig");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.kubeconfigManager.clear();
|
this.kubeconfigManager.clear();
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
@ -43,7 +43,7 @@ export class ClusterHomeDirSetting extends React.Component<Props> {
|
|||||||
async componentDidMount() {
|
async componentDidMount() {
|
||||||
const kubeconfig = await this.props.cluster.getKubeconfig();
|
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,
|
disposeOnUnmount(this,
|
||||||
autorun(() => {
|
autorun(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user