Skip to content

Commit f7b4e76

Browse files
authored
Merge pull request #3 from rancher-sandbox/hide-buttons
Hide KubeConfig and Kubectl Shell buttons that don't work in Rancher Desktop
2 parents 86ebabf + 3354552 commit f7b4e76

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/rancher-deskboard/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ export default function(plugin: IPlugin, internal: IInternal): void {
2525
logoRoute,
2626
logo: require(`./assets/logo.svg`),
2727
});
28+
29+
// Hide buttons in the header that don't work in Rancher Desktop.
30+
// KubeConfig buttons don't function (issues #2208) and Kubectl Shell
31+
// is not useful since users can use a local terminal (issue #8151).
32+
store.commit('type-map/product', {
33+
name: 'explorer',
34+
hideKubeShell: true,
35+
hideKubeConfig: true,
36+
hideCopyConfig: true,
37+
});
2838
}
2939

3040
/**

0 commit comments

Comments
 (0)