GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
318 stars 59 forks source link

"Deployed Resources" view does not display deployments to non-default namespaces #3099

Closed dallasvaughan closed 1 year ago

dallasvaughan commented 1 year ago

Expected Behavior

"Deployed Resources" shows resources related to the namespace(s) being deployed to according to the Skaffold configuration (or default to showing all namespaces)

Actual Behavior

"Deployed Resources" only shows resources deployed to the default namespace.

Additional Information

ivanporty commented 1 year ago

Thanks for the report @dallasvaughan! This seems to be a bug on our side, we should be checking for a namespace in the context used for deployments. We'll evaluate this and get back to you about further steps or plans.

ivanporty commented 1 year ago

The current design of the display resources UI element is to only display resources in the current context, and a single namespace associated with this context. If the context is using a non-default namespace, the display resources shows the deployment for this different namespace (as shown in this screenshot, namespace name is development):

Tue Oct 11 2022 15_34_29 GMT-0700 (Pacific Daylight Time)

We don't display deployed resources across multiple namespaces as this would make deployment window resource intensive and a bit heavy on UI, but you can always use Kubernetes Explorer to watch resource changes for other namespaces or even other clusters if you need to - the explorer supports viewing and updating all namespaces and clusters regardless of the current context.

Please let us know if that makes sense @dallasvaughan

dallasvaughan commented 1 year ago

Makes sense! Thanks for looking into this.

ivanporty commented 1 year ago

Thanks @dallasvaughan! Closing for now - working as designed. Let us know if you can use the explorer successfully for your multi-namespaces deployments.