mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
1fa6d000b0
commit
4191bfaca6
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -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(() => {
|
||||||
|
|||||||
Reference in new issue
Block a user