Skip to content

Custom icon set via APP_ICON not working #689

@lucabtg

Description

@lucabtg

Affected Stackable version

25.11.0

Affected Apache Superset version

4.1.4

Current and expected behavior

We want to set a custom icon for our Superset deployment via the APP_ICON setting, but it only shows a placeholder icon instead:
Image

When trying to access the image file using https://<superset_domain>/static/assets/images/logo.svg, a 404 error is being returned:
Image

We use a configmap that contains our icon.svg file and use podOverrides to mount it to the superset container:

spec:
  nodes:
    podOverrides:
      spec:
        containers:
        - name: superset
          volumeMounts:
          - name: logo-volume
            mountPath: /static/assets/images/logo.svg
            subPath: logo.svg
        volumes:
        - name: logo-volume
          configMap:
            name: logo-svg

We then set the APP_ICON variable to the mounted path using configOverrides:

spec:
  nodes:
    roleGroups:
      default:
        configOverrides:
          superset_config.py: 
            FEATURE_FLAGS: "{'ENABLE_TEMPLATE_PROCESSING': 'True'}"
            APP_NAME: "'Dev Superset'"
            APP_ICON: '"/static/assets/images/logo.svg"'
            APP_ICON_WIDTH: "200"

The APP_NAME setting works as exepcted (as shown in the first screenshot).

Did you encounter this issue before or know how to fix it?

Possible solution

No response

Additional context

We already tried mounting the image file into the original directory (/stackable/app/lib/python3.9/site-packages/superset/static/assets/images/logo.svg) and also tried to use a .png file instead. Unfortunately, neither of those approaches worked.

Environment

Kubernetes 1.33.3, Stackable 25.11.0, Superset 4.1.4

Would you like to work on fixing this bug?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions