Skip to content

Commit e749bd4

Browse files
committed
update to use new trait
1 parent d02bd45 commit e749bd4

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

k3s-dev/config/00-jhub-apps.py

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
c.JAppsConfig.conda_envs = [] # No conda-store in dev environment
3232
c.Spawner.debug = True
3333

34+
# Configure additional services via JAppsConfig
35+
c.JAppsConfig.additional_services = [
36+
{
37+
"name": "MyAwesomeService",
38+
"url": "/services/japps",
39+
},
40+
]
41+
3442
# Install jhub-apps - wraps KubeSpawner with jhub-apps functionality
3543
c = install_jhub_apps(c, spawner_to_subclass=KubeSpawner, oauth_no_confirm=True)
3644

@@ -41,27 +49,6 @@
4149
from jhub_apps import theme_template_paths
4250
c.JupyterHub.template_paths = theme_template_paths
4351

44-
def service_for_jhub_apps(name, url, description=None, pinned=False, thumbnail=None):
45-
return {
46-
"name": name,
47-
"display": True,
48-
"info": {
49-
"name": name,
50-
"description": description,
51-
"url": url,
52-
"external": True,
53-
"pinned": pinned,
54-
"thumbnail": thumbnail,
55-
},
56-
}
57-
58-
59-
c.JupyterHub.services.extend(
60-
[
61-
service_for_jhub_apps(name="MyAwesomeService", url="/services/japps"),
62-
]
63-
)
64-
6552
# Theme configuration (mimics Nebari's look and feel)
6653
from jhub_apps import themes
6754
c.JupyterHub.template_vars = {

0 commit comments

Comments
 (0)