intellij-openshift-connector icon indicating copy to clipboard operation
intellij-openshift-connector copied to clipboard

Can't list helm when connecting to devsandbox for the first time, using 'default' as project

Open sbouchet opened this issue 10 months ago • 0 comments

by default, when connecting to devsandbox for the first time, the default project/namespace is set to 'default', resulting to below exception:

2025-02-06 16:28:15,604 [ 278192]   WARN - org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure - Process exited with an error: 1 (Exit value: 1) Error: list: failed to list: secrets is forbidden: User "stephane-bouchet" cannot list resource "secrets" in API group "" in the namespace "default"

java.io.IOException: Process exited with an error: 1 (Exit value: 1) Error: list: failed to list: secrets is forbidden: User "stephane-bouchet" cannot list resource "secrets" in API group "" in the namespace "default"

	at com.redhat.devtools.intellij.common.utils.ExecHelper.executeWithResult(ExecHelper.java:261)
	at org.jboss.tools.intellij.openshift.utils.helm.HelmCli.execute(HelmCli.java:206)
	at org.jboss.tools.intellij.openshift.utils.helm.HelmCli.list(HelmCli.java:156)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.lambda$getHelmReleases$8(ApplicationsTreeStructure.java:236)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.load(ApplicationsTreeStructure.java:245)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.getHelmReleases(ApplicationsTreeStructure.java:236)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.createNamespaceChildren(ApplicationsTreeStructure.java:141)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.getChildElements(ApplicationsTreeStructure.java:84)
	at com.intellij.ui.tree.StructureTreeModel.getValidChildren(StructureTreeModel.java:424)
	at com.intellij.ui.tree.StructureTreeModel.validateChildren(StructureTreeModel.java:332)
	at com.intellij.ui.tree.StructureTreeModel.getNode(StructureTreeModel.java:326)
	at com.intellij.ui.tree.StructureTreeModel.getChildren(StructureTreeModel.java:348)
	at com.intellij.ui.tree.AsyncTreeModel$CmdGetChildren.computeNode(AsyncTreeModel.java:668)
	at com.intellij.ui.tree.AsyncTreeModel$Command.computeNode(AsyncTreeModel.java:541)
	at com.intellij.util.concurrency.Invoker$Task.run(Invoker.java:361)
	at com.intellij.util.concurrency.CoroutineInvokerDelegate.run(CoroutineInvokerDelegate.kt:38)
	at com.intellij.util.concurrency.Invoker.invokeSafely(Invoker.java:189)
	at com.intellij.util.concurrency.Invoker.lambda$offerSafely$0(Invoker.java:173)
	at com.intellij.util.concurrency.Invoker$Background.lambda$offer$0(Invoker.java:470)
	at com.intellij.util.concurrency.CoroutineInvokerDelegate.offer$lambda$2(CoroutineInvokerDelegate.kt:27)
	at com.intellij.util.concurrency.ConcurrentBgtCoroutineInvokerDelegate$doLaunch$1.invokeSuspend$lambda$1$lambda$0(CoroutineInvokerDelegate.kt:118)
	at com.intellij.util.concurrency.BgtCoroutineInvokerDelegate.withProperContext$lambda$1(CoroutineInvokerDelegate.kt:78)
	at com.intellij.openapi.progress.CoroutinesKt.blockingContextInner(coroutines.kt:341)
	at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invokeSuspend(coroutines.kt:233)
	at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
	at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:261)
	at com.intellij.openapi.progress.CoroutinesKt.blockingContext(coroutines.kt:232)
	at com.intellij.util.concurrency.BgtCoroutineInvokerDelegate.withProperContext(CoroutineInvokerDelegate.kt:77)
	at com.intellij.util.concurrency.ConcurrentBgtCoroutineInvokerDelegate$doLaunch$1.invokeSuspend(CoroutineInvokerDelegate.kt:117)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
	at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
	at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
	at com.redhat.devtools.intellij.common.utils.ExecHelper.executeWithResult(ExecHelper.java:258)
	... 36 more

sbouchet avatar Feb 06 '25 15:02 sbouchet