You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a custom chart plugin and tested it locally (through docker-compose deployment) and the chart was working fine. I tried deploying the same docker image on Kubernetes cluster where my application is working, I can see the new plugin code is there at the desired location after this but the chart doesn't appear on the UI.
How to reproduce the bug
1.) Create a new chart plugin.
2.) Deploy on Superset running through Kubernetes.
3.) After successful deployment, check if the new chart appears on UI.
Screenshots/recordings
No response
Superset version
3.1.3
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
I have searched Superset docs and Slack and didn't find a solution to my problem.
I have searched the GitHub issue tracker and didn't find a similar bug report.
I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
The text was updated successfully, but these errors were encountered:
The issue might be related to the dynamic imports (lazy-loading) of your custom chart plugin components. When deploying on a Kubernetes cluster, the environment might not be correctly resolving these dynamic imports, which can cause the plugin not to appear on the UI.
In the ChartPlugin class, the sanitizeLoader function is used to handle dynamic imports. Ensure that your Kubernetes environment has the necessary configurations to support these dynamic imports.
Here is a snippet from the ChartPlugin class that deals with dynamic imports:
Make sure that your Kubernetes deployment is set up to handle these dynamic imports correctly. This might involve ensuring that the necessary files are available and correctly referenced in your deployment configuration [1].
Additionally, you need to enable the DYNAMIC_PLUGINS feature flag in the superset_config.py file. This can be done by specifying key/value entries in configOverrides in your values.yaml file:
Bug description
I made a custom chart plugin and tested it locally (through docker-compose deployment) and the chart was working fine. I tried deploying the same docker image on Kubernetes cluster where my application is working, I can see the new plugin code is there at the desired location after this but the chart doesn't appear on the UI.
How to reproduce the bug
1.) Create a new chart plugin.
2.) Deploy on Superset running through Kubernetes.
3.) After successful deployment, check if the new chart appears on UI.
Screenshots/recordings
No response
Superset version
3.1.3
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: