xpk 0.17.1__py3-none-any.whl → 0.17.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
xpk/parser/shell.py DELETED
@@ -1,59 +0,0 @@
1
- """
2
- Copyright 2024 Google LLC
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- https://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- """
16
-
17
- from ..commands.shell import shell, shell_stop
18
- from .common import (
19
- add_shared_arguments,
20
- add_cluster_arguments,
21
- add_kind_cluster_arguments,
22
- )
23
- import argparse
24
-
25
-
26
- def set_shell_parser(shell_parser: argparse.ArgumentParser) -> None:
27
- shell_optional_arguments = shell_parser.add_argument_group(
28
- 'Optional Arguments', 'Arguments optional for shell.'
29
- )
30
- add_shared_arguments(shell_optional_arguments)
31
- shell_parser.set_defaults(func=shell)
32
-
33
- add_cluster_arguments(shell_optional_arguments)
34
- add_kind_cluster_arguments(shell_optional_arguments)
35
-
36
- shell_subcommands = shell_parser.add_subparsers(
37
- title='shell subcommands',
38
- dest='xpk_shell_subcommands',
39
- help=(
40
- 'These are commands related to interactive shell. Look at help for'
41
- ' specific subcommands for more details.'
42
- ),
43
- )
44
-
45
- set_shell_stop_parser(
46
- shell_stop_parser=shell_subcommands.add_parser(
47
- name='stop', help='Stop the running shell.'
48
- )
49
- )
50
-
51
-
52
- def set_shell_stop_parser(shell_stop_parser: argparse.ArgumentParser):
53
- shell_stop_optional_arguments = shell_stop_parser.add_argument_group(
54
- 'Optional Arguments', 'Arguments optional for shell stop.'
55
- )
56
- add_shared_arguments(shell_stop_optional_arguments)
57
- shell_stop_parser.set_defaults(func=shell_stop)
58
- add_cluster_arguments(shell_stop_parser)
59
- add_kind_cluster_arguments(shell_stop_optional_arguments)
@@ -1,7 +0,0 @@
1
- apiVersion: kjobctl.x-k8s.io/v1alpha1
2
- kind: VolumeBundle
3
- metadata:
4
- name: $NAME
5
- spec:
6
- volumes: []
7
- containerVolumeMounts: []
File without changes