Skip to content

Commit 16fad0c

Browse files
authored
chore(notebooks): remove deprecated option nb-1131 (#388)
1 parent f3d1b32 commit 16fad0c

File tree

6 files changed

+0
-15
lines changed

6 files changed

+0
-15
lines changed

gradient/api_sdk/clients/notebook_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def create(
1616
registry_username=None,
1717
registry_password=None,
1818
command=None,
19-
container_user=None,
2019
shutdown_timeout=None,
2120
is_preemptible=None,
2221
is_public=None,
@@ -38,7 +37,6 @@ def create(
3837
:param str registry_username:
3938
:param str registry_password:
4039
:param str command:
41-
:param str container_user:
4240
:param int shutdown_timeout:
4341
:param bool is_preemptible:
4442
:param bool is_public:
@@ -62,7 +60,6 @@ def create(
6260
registry_username=registry_username,
6361
registry_password=registry_password,
6462
command=command,
65-
container_user=container_user,
6663
shutdown_timeout=shutdown_timeout,
6764
is_preemptible=is_preemptible,
6865
machine_type=machine_type,

gradient/api_sdk/models/notebook.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class Notebook(object):
2020
registry_password = attr.ib(type=str, default=None)
2121
command = attr.ib(type=str, default=None)
2222
default_entrypoint = attr.ib(type=str, default=None)
23-
container_user = attr.ib(type=str, default=None)
2423
shutdown_timeout = attr.ib(type=int, default=None)
2524
is_preemptible = attr.ib(type=bool, default=None)
2625
project_id = attr.ib(type=str, default=None)

gradient/api_sdk/serializers/notebook.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class NotebookSchema(BaseSchema):
2121
registry_password = marshmallow.fields.Str(load_from="registryPassword", dump_to="registryPassword")
2222
command = marshmallow.fields.Str(load_from="command", dump_to="command")
2323
default_entrypoint = marshmallow.fields.Str(load_from="defaultEntrypoint", dump_to="defaultEntrypoint")
24-
container_user = marshmallow.fields.Str(load_from="containerUser", dump_to="containerUser")
2524
shutdown_timeout = marshmallow.fields.Int(load_from="shutdownTimeout", dump_to="shutdownTimeout")
2625
is_preemptible = marshmallow.fields.Bool(load_from="isPreemptible", dump_to="isPreemptible")
2726
is_public = marshmallow.fields.Bool(load_from="isPublic", dump_to="isPublic")

gradient/cli/notebooks.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@ def notebook_metrics():
8484
help="Command (executed as `/bin/sh -c 'YOUR COMMAND'`)",
8585
cls=common.GradientOption,
8686
)
87-
@click.option(
88-
"--containerUser",
89-
"container_user",
90-
type=str,
91-
help="Container user",
92-
cls=common.GradientOption,
93-
)
9487
@click.option(
9588
"--shutdownTimeout",
9689
"shutdown_timeout",

tests/config_files/notebooks_create.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ clusterId: 321
33
projectId: pr1234
44
container: "jupyter/notebook"
55
command: some_entrypoint
6-
containerUser: some_container_user
76
isPreemptible: true
87
name: some_notebook_name
98
registryPassword: some_password

tests/functional/test_notebooks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class TestNotebooksCreate(object):
9797
"--registryUsername", "some_username",
9898
"--registryPassword", "some_password",
9999
"--command", "some_entrypoint",
100-
"--containerUser", "some_container_user",
101100
"--shutdownTimeout", "8",
102101
"--environment", '{"key":"val"}',
103102
"--isPreemptible",
@@ -112,7 +111,6 @@ class TestNotebooksCreate(object):
112111
"registryUsername": "some_username",
113112
"registryPassword": "some_password",
114113
"command": "c29tZV9lbnRyeXBvaW50",
115-
"containerUser": "some_container_user",
116114
"environment": {"key": "val"},
117115
"shutdownTimeout": 8,
118116
"isPreemptible": True,

0 commit comments

Comments
 (0)