Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jhub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jupyterjsc
k8s
images
jhub
Commits
7effc02d
Commit
7effc02d
authored
1 year ago
by
alice grosch
Browse files
Options
Downloads
Patches
Plain Diff
Add image to allowed keys
parent
c5b03dec
No related branches found
No related tags found
No related merge requests found
Pipeline
#148613
passed
1 year ago
Stage: build
Stage: build-devel
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
custom/4.0.0/handler/page_handlers.py
+0
-2
0 additions, 2 deletions
custom/4.0.0/handler/page_handlers.py
custom/4.0.0/spawner/utils.py
+2
-0
2 additions, 0 deletions
custom/4.0.0/spawner/utils.py
with
2 additions
and
2 deletions
custom/4.0.0/handler/page_handlers.py
+
0
−
2
View file @
7effc02d
...
@@ -17,7 +17,6 @@ class CustomHomeHandler(HomeHandler):
...
@@ -17,7 +17,6 @@ class CustomHomeHandler(HomeHandler):
authentication
=
await
user
.
authenticator
.
update_auth_state_custom_config
(
authentication
,
set_service
=
"
JupyterLab
"
,
force
=
True
)
authentication
=
await
user
.
authenticator
.
update_auth_state_custom_config
(
authentication
,
set_service
=
"
JupyterLab
"
,
force
=
True
)
await
user
.
save_auth_state
(
authentication
[
"
auth_state
"
])
await
user
.
save_auth_state
(
authentication
[
"
auth_state
"
])
await
super
().
get
()
await
super
().
get
()
user
.
authenticator
.
log
.
debug
(
f
"
Updated authentication in CustomHomeHandler:
{
authentication
[
'
auth_state
'
][
'
service_active
'
]
}
"
)
class
SimplePageHandler
(
BaseHandler
):
class
SimplePageHandler
(
BaseHandler
):
...
@@ -40,7 +39,6 @@ class CustomImageHandler(SimplePageHandler):
...
@@ -40,7 +39,6 @@ class CustomImageHandler(SimplePageHandler):
await
user
.
authenticator
.
update_auth_state_custom_config
(
authentication
,
set_service
=
"
CustomImage
"
,
force
=
True
)
await
user
.
authenticator
.
update_auth_state_custom_config
(
authentication
,
set_service
=
"
CustomImage
"
,
force
=
True
)
await
user
.
save_auth_state
(
authentication
[
"
auth_state
"
])
await
user
.
save_auth_state
(
authentication
[
"
auth_state
"
])
await
super
().
get
()
await
super
().
get
()
user
.
authenticator
.
log
.
debug
(
f
"
Updated authentication in CustomHomeHandler:
{
authentication
[
'
auth_state
'
][
'
service_active
'
]
}
"
)
class
LinksHandler
(
SimplePageHandler
):
class
LinksHandler
(
SimplePageHandler
):
...
...
This diff is collapsed.
Click to expand it.
custom/4.0.0/spawner/utils.py
+
2
−
0
View file @
7effc02d
...
@@ -25,6 +25,8 @@ def check_formdata_keys(data):
...
@@ -25,6 +25,8 @@ def check_formdata_keys(data):
required_keys
=
{
"
name
"
,
"
service
"
,
"
system
"
}
required_keys
=
{
"
name
"
,
"
service
"
,
"
system
"
}
if
data
.
get
(
"
system
"
)
in
unicore_systems
:
if
data
.
get
(
"
system
"
)
in
unicore_systems
:
required_keys
=
required_keys
|
{
"
account
"
,
"
project
"
,
"
partition
"
}
required_keys
=
required_keys
|
{
"
account
"
,
"
project
"
,
"
partition
"
}
if
data
.
get
(
"
service
"
)
==
"
CustomImage
"
:
required_keys
=
required_keys
|
{
"
image
"
}
allowed_keys
=
required_keys
|
{
allowed_keys
=
required_keys
|
{
"
reservation
"
,
"
reservation
"
,
"
nodes
"
,
"
nodes
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment