Skip to content

profile_options and choices are always sorted #888

@baryluk

Description

@baryluk

I would like to lists options and choices in the same order I specified them in config.
But they appears to be sorted instead.

It looks that maybe this is issue on helm chart side, as at the end jinja template lists items without any sorting, so they should be essentially in the same order as they are parsed.

i.e. in my hr-jupyter.yaml under values profileList in one profile profile_options and there also in choices, they are all ordered manually. But in actual running pod of hub in /usr/local/etc/jupyterhub/secret/values.yaml I see them sorted alphabetically.

Using jupyterhub chart version 3.1.0 from jupyter

[I 2025-07-04 18:13:52.276 JupyterHub app:2859] Running JupyterHub version 4.0.2
[I 2025-07-04 18:13:52.276 JupyterHub app:2889] Using Authenticator: oauthenticator.google.GoogleOAuthenticator-16.1.0
[I 2025-07-04 18:13:52.276 JupyterHub app:2889] Using Spawner: kubespawner.spawner.KubeSpawner-6.1.0
[I 2025-07-04 18:13:52.276 JupyterHub app:2889] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-4.0.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions