klotse 0.1.0__tar.gz
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.
- klotse-0.1.0/LICENSE +202 -0
- klotse-0.1.0/PKG-INFO +209 -0
- klotse-0.1.0/README.md +177 -0
- klotse-0.1.0/pyproject.toml +51 -0
- klotse-0.1.0/setup.cfg +4 -0
- klotse-0.1.0/src/klotse/__init__.py +1 -0
- klotse-0.1.0/src/klotse/__main__.py +44 -0
- klotse-0.1.0/src/klotse/assets/klotse_logo.png +0 -0
- klotse-0.1.0/src/klotse/cli.py +115 -0
- klotse-0.1.0/src/klotse/desktop_entry.py +103 -0
- klotse-0.1.0/src/klotse/k8s/__init__.py +0 -0
- klotse-0.1.0/src/klotse/k8s/client.py +538 -0
- klotse-0.1.0/src/klotse/k8s/models.py +126 -0
- klotse-0.1.0/src/klotse/k8s/resources.py +232 -0
- klotse-0.1.0/src/klotse/k8s/util.py +21 -0
- klotse-0.1.0/src/klotse/ui/__init__.py +0 -0
- klotse-0.1.0/src/klotse/ui/about.py +100 -0
- klotse-0.1.0/src/klotse/ui/branding.py +45 -0
- klotse-0.1.0/src/klotse/ui/command_view.py +72 -0
- klotse-0.1.0/src/klotse/ui/customizations.py +396 -0
- klotse-0.1.0/src/klotse/ui/detail_panel.py +161 -0
- klotse-0.1.0/src/klotse/ui/edit_dialog.py +36 -0
- klotse-0.1.0/src/klotse/ui/edit_menu.py +100 -0
- klotse-0.1.0/src/klotse/ui/environment.py +49 -0
- klotse-0.1.0/src/klotse/ui/log_view.py +141 -0
- klotse-0.1.0/src/klotse/ui/main_window.py +248 -0
- klotse-0.1.0/src/klotse/ui/manifest.py +22 -0
- klotse-0.1.0/src/klotse/ui/namespace_dialog.py +71 -0
- klotse-0.1.0/src/klotse/ui/navigator.py +198 -0
- klotse-0.1.0/src/klotse/ui/node_bar.py +49 -0
- klotse-0.1.0/src/klotse/ui/node_dialogs.py +71 -0
- klotse-0.1.0/src/klotse/ui/overview.py +214 -0
- klotse-0.1.0/src/klotse/ui/pod_view.py +72 -0
- klotse-0.1.0/src/klotse/ui/preferences.py +109 -0
- klotse-0.1.0/src/klotse/ui/resource_table.py +228 -0
- klotse-0.1.0/src/klotse/ui/scale_monitor.py +151 -0
- klotse-0.1.0/src/klotse/ui/settings_store.py +30 -0
- klotse-0.1.0/src/klotse/ui/table_model.py +91 -0
- klotse-0.1.0/src/klotse/ui/terminal.py +111 -0
- klotse-0.1.0/src/klotse/ui/terminal_session.py +84 -0
- klotse-0.1.0/src/klotse/ui/terminal_settings.py +51 -0
- klotse-0.1.0/src/klotse/ui/theme.py +51 -0
- klotse-0.1.0/src/klotse/ui/watcher.py +37 -0
- klotse-0.1.0/src/klotse/ui/workspace.py +904 -0
- klotse-0.1.0/src/klotse/workers.py +26 -0
- klotse-0.1.0/src/klotse.egg-info/PKG-INFO +209 -0
- klotse-0.1.0/src/klotse.egg-info/SOURCES.txt +78 -0
- klotse-0.1.0/src/klotse.egg-info/dependency_links.txt +1 -0
- klotse-0.1.0/src/klotse.egg-info/entry_points.txt +2 -0
- klotse-0.1.0/src/klotse.egg-info/requires.txt +7 -0
- klotse-0.1.0/src/klotse.egg-info/top_level.txt +1 -0
- klotse-0.1.0/tests/test_about.py +110 -0
- klotse-0.1.0/tests/test_age_sort.py +31 -0
- klotse-0.1.0/tests/test_app.py +912 -0
- klotse-0.1.0/tests/test_auto_refresh.py +108 -0
- klotse-0.1.0/tests/test_branding.py +104 -0
- klotse-0.1.0/tests/test_bulk.py +150 -0
- klotse-0.1.0/tests/test_column_layout.py +87 -0
- klotse-0.1.0/tests/test_containers.py +101 -0
- klotse-0.1.0/tests/test_customizations.py +169 -0
- klotse-0.1.0/tests/test_desktop_entry.py +110 -0
- klotse-0.1.0/tests/test_exit.py +80 -0
- klotse-0.1.0/tests/test_inline_customizations.py +100 -0
- klotse-0.1.0/tests/test_managed_fields.py +58 -0
- klotse-0.1.0/tests/test_manifest.py +40 -0
- klotse-0.1.0/tests/test_metrics.py +89 -0
- klotse-0.1.0/tests/test_node_actions.py +289 -0
- klotse-0.1.0/tests/test_node_bar.py +105 -0
- klotse-0.1.0/tests/test_node_filter.py +28 -0
- klotse-0.1.0/tests/test_node_pods.py +167 -0
- klotse-0.1.0/tests/test_packaging_support.py +145 -0
- klotse-0.1.0/tests/test_performance.py +238 -0
- klotse-0.1.0/tests/test_pod_resources.py +72 -0
- klotse-0.1.0/tests/test_pod_tab.py +142 -0
- klotse-0.1.0/tests/test_preferences.py +238 -0
- klotse-0.1.0/tests/test_secret_decode.py +90 -0
- klotse-0.1.0/tests/test_settings_file.py +205 -0
- klotse-0.1.0/tests/test_settings_migration.py +59 -0
- klotse-0.1.0/tests/test_terminal_settings.py +135 -0
- klotse-0.1.0/tests/test_watch.py +151 -0
klotse-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
klotse-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: klotse
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A native Kubernetes desktop manager built with Python and Qt
|
|
5
|
+
Author: Marcelo H. Bartsch
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/mbartsch/klotse
|
|
8
|
+
Project-URL: Repository, https://github.com/mbartsch/klotse
|
|
9
|
+
Project-URL: Issues, https://github.com/mbartsch/klotse/issues
|
|
10
|
+
Project-URL: Releases, https://github.com/mbartsch/klotse/releases
|
|
11
|
+
Keywords: kubernetes,k8s,kubectl,desktop,gui,qt,pyside6,cluster
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: X11 Applications :: Qt
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: System Administrators
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Topic :: Software Development
|
|
21
|
+
Classifier: Topic :: System :: Systems Administration
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: PySide6-Essentials>=6.6
|
|
26
|
+
Requires-Dist: kubernetes>=29
|
|
27
|
+
Requires-Dist: PyYAML>=6
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest; extra == "dev"
|
|
30
|
+
Requires-Dist: pytest-qt; extra == "dev"
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
<p align="center">
|
|
34
|
+
<img src="https://raw.githubusercontent.com/mbartsch/klotse/master/src/klotse/assets/klotse_logo.png" alt="Klotse logo" width="200">
|
|
35
|
+
</p>
|
|
36
|
+
|
|
37
|
+
# Klotse
|
|
38
|
+
|
|
39
|
+
A native Kubernetes desktop manager for Windows, macOS and Linux. Browse clusters, workloads, nodes and custom
|
|
40
|
+
resources; read logs; open shells; scale, cordon and drain, all from one window.
|
|
41
|
+
|
|
42
|
+
Built with Python, PySide6 (Qt Widgets) and the official Kubernetes Python client. It uses your existing
|
|
43
|
+
kubeconfig and authentication helpers, so there is nothing to sign in to and no server component.
|
|
44
|
+
|
|
45
|
+
> **Status:** early (version 0.1.0). Read-only use against real clusters has been tried; most of the
|
|
46
|
+
> mutating actions (cordon, drain, delete, scale) are covered by automated tests with fake services, not yet by
|
|
47
|
+
> live-cluster runs. Try them on a non-production cluster first.
|
|
48
|
+
|
|
49
|
+
## Features
|
|
50
|
+
|
|
51
|
+
- **Multiple clusters.** Every context in your kubeconfig is listed on the left; each open cluster gets its own
|
|
52
|
+
tab and its own connection.
|
|
53
|
+
- **Resources.** Overview, Workloads, Nodes, Namespaces, Pods, Deployments, ReplicaSets, StatefulSets, DaemonSets,
|
|
54
|
+
Jobs, CronJobs, ConfigMaps, Secrets, Services, Ingresses, NetworkPolicies, PVCs, PVs, StorageClasses, Events,
|
|
55
|
+
CustomResourceDefinitions, and read-only browsing of custom resource instances.
|
|
56
|
+
- **Always fresh.** The visible tab refreshes every 10 s (5/10/30/60 s selectable) and immediately when the
|
|
57
|
+
cluster reports a change. Hidden tabs and clusters are not polled.
|
|
58
|
+
- **Details.** YAML view for any resource, with Secret values masked until you pick the keys to decode.
|
|
59
|
+
`managedFields` are hidden by default (View → Show managedFields in details).
|
|
60
|
+
- **Pods and containers.** Logs (streaming, search, follow), Shell, Attach, terminate and force terminate.
|
|
61
|
+
Double-click a pod for its own tab with every regular, init and ephemeral container.
|
|
62
|
+
- **Nodes.** Cordon/uncordon, drain (with the usual kubectl options), a privileged nsenter shell, delete. Double-click
|
|
63
|
+
a node for its pods, with the node actions in a bar above them. Pod counts per node.
|
|
64
|
+
- **Bulk actions.** Select several rows (Ctrl/Shift) to scale, terminate, cordon or delete them in one confirmed
|
|
65
|
+
step. Scale accepts a number or a relative change such as `*2`, `/2`, `+1`, `-1`.
|
|
66
|
+
- **Usage.** CPU and memory in use (from metrics-server, when present) on Nodes and Pods, plus optional request,
|
|
67
|
+
limit and percent-of-request/limit columns on Pods.
|
|
68
|
+
- **Your columns.** The **Columns…** button on every list lets you hide and reorder built-in columns and add label
|
|
69
|
+
columns with short headings. Saved per resource kind.
|
|
70
|
+
- **Edit menu and Preferences.** Undo/redo/cut/copy/paste/select all (Copy in a table copies the selected rows as
|
|
71
|
+
tab-separated text). Preferences lets you choose a custom kubeconfig and open the settings folder.
|
|
72
|
+
- **macOS.** Choose Terminal or iTerm2 for shells (Settings → Terminal…).
|
|
73
|
+
|
|
74
|
+
## Requirements
|
|
75
|
+
|
|
76
|
+
- Python 3.10 or newer
|
|
77
|
+
- A kubeconfig with at least one context (or pick one in Edit → Preferences)
|
|
78
|
+
- [`kubectl`](https://kubernetes.io/docs/tasks/tools/) on your `PATH`, for drain, shells and attach
|
|
79
|
+
- Python dependencies (installed by the launchers): `PySide6-Essentials`, `kubernetes`, `PyYAML`
|
|
80
|
+
|
|
81
|
+
## Install
|
|
82
|
+
|
|
83
|
+
Native packages are built for Windows (an installer and a portable `.zip`) and macOS (a `.dmg` for Apple Silicon and
|
|
84
|
+
one for Intel). None has been published yet; once they are, they will be on the project's
|
|
85
|
+
[Releases](https://github.com/mbartsch/klotse/releases) page. Until then, run Klotse from source (below) or build the
|
|
86
|
+
packages yourself (see [Development](#development)).
|
|
87
|
+
|
|
88
|
+
- The Windows installer has been tested (install, run, uninstall). The macOS apps are built and self-tested in CI but
|
|
89
|
+
have not been run on a real Mac yet.
|
|
90
|
+
- The packages are not signed yet, so expect a warning on first start: on Windows choose **More info → Run anyway**,
|
|
91
|
+
on macOS right-click the app and choose **Open**.
|
|
92
|
+
- `kubectl` is not included and has to be installed separately.
|
|
93
|
+
|
|
94
|
+
### Linux, or anywhere with Python 3.10+: pipx
|
|
95
|
+
|
|
96
|
+
There is no native Linux package yet. Install with [pipx](https://pipx.pypa.io), which keeps Klotse and its
|
|
97
|
+
dependencies in their own environment and puts a `klotse` command on your `PATH`:
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
pipx install git+https://github.com/mbartsch/klotse # straight from GitHub (works today)
|
|
101
|
+
pipx install klotse # from PyPI, once the first release is published
|
|
102
|
+
klotse --install-desktop-entry # optional, Linux: add Klotse to the application menu
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
`klotse --uninstall-desktop-entry` removes the menu entry again. On a minimal Debian/Ubuntu install Qt may also need
|
|
106
|
+
these libraries for its X11 support (the project's CI installs exactly this list on Ubuntu and starts Klotse under
|
|
107
|
+
X11); most desktops already have them:
|
|
108
|
+
|
|
109
|
+
```sh
|
|
110
|
+
sudo apt install libegl1 libxkbcommon-x11-0 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
|
|
111
|
+
libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xinerama0 libxcb-xkb1
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
On other distributions install the equivalent packages. If Klotse stops with "could not load the Qt platform plugin
|
|
115
|
+
xcb", run `QT_DEBUG_PLUGINS=1 klotse` to see which library is missing.
|
|
116
|
+
|
|
117
|
+
## Run
|
|
118
|
+
|
|
119
|
+
macOS / Linux:
|
|
120
|
+
|
|
121
|
+
```sh
|
|
122
|
+
./run.sh # creates .venv and installs dependencies on first run
|
|
123
|
+
./run.sh --check # check that the imports work, without opening the window
|
|
124
|
+
./run.sh --install # reinstall dependencies
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Windows:
|
|
128
|
+
|
|
129
|
+
```bat
|
|
130
|
+
run.bat # starts without a console window
|
|
131
|
+
run.bat --console # keeps tracebacks visible
|
|
132
|
+
run.bat --check
|
|
133
|
+
run.bat --install
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Or, in an existing environment:
|
|
137
|
+
|
|
138
|
+
```sh
|
|
139
|
+
pip install -r requirements.txt
|
|
140
|
+
PYTHONPATH=src python -m klotse
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Configuration
|
|
144
|
+
|
|
145
|
+
Settings are stored as a plain INI file, one section per resource kind and one entry per line:
|
|
146
|
+
|
|
147
|
+
```ini
|
|
148
|
+
[columns.Pod]
|
|
149
|
+
order.0=name
|
|
150
|
+
order.1=namespace
|
|
151
|
+
order.2=ready
|
|
152
|
+
hidden.0=cpu_req
|
|
153
|
+
hidden.1=cpu_lim
|
|
154
|
+
labels.0=app.kubernetes.io/name
|
|
155
|
+
labels_name.0=App
|
|
156
|
+
labels.1=example.com/team
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
`order` is the order of the built-in columns, `hidden` lists the ones that are hidden, and `labels` the label
|
|
160
|
+
columns; `labels_name.N` gives `labels.N` a short heading. A key that is missing means the default; an empty key
|
|
161
|
+
(`hidden=`) means none. You can edit the file by hand while Klotse is closed.
|
|
162
|
+
|
|
163
|
+
Open its folder from **Edit → Preferences… → Open config folder**. The same file holds the custom kubeconfig path
|
|
164
|
+
and the macOS terminal choice. A custom kubeconfig is passed both to the Kubernetes client and, as `--kubeconfig`,
|
|
165
|
+
to every `kubectl` command Klotse starts.
|
|
166
|
+
|
|
167
|
+
Settings from the earlier name of the project (Kubeman) are copied over on the first start.
|
|
168
|
+
|
|
169
|
+
## Development
|
|
170
|
+
|
|
171
|
+
```sh
|
|
172
|
+
pip install -r requirements-dev.txt
|
|
173
|
+
PYTHONPATH=src QT_QPA_PLATFORM=offscreen python -m pytest -q
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Tests run offscreen with fake services and synthetic Kubernetes objects; they never touch a real cluster or your
|
|
177
|
+
real settings. `run_tests.sh` / `run_tests.bat` wrap the same command.
|
|
178
|
+
|
|
179
|
+
After all tests pass the pytest process can still exit non-zero (a crash during Qt teardown in some test orders).
|
|
180
|
+
This is a known, unresolved issue that predates recent work, so check the pass count and the exit status separately.
|
|
181
|
+
|
|
182
|
+
To build the native packages (details, signing and releases in [`packaging/README.md`](https://github.com/mbartsch/klotse/blob/master/packaging/README.md)):
|
|
183
|
+
|
|
184
|
+
```sh
|
|
185
|
+
powershell -ExecutionPolicy Bypass -File packaging\windows\build.ps1 # Windows: zip, plus installer if Inno Setup is installed
|
|
186
|
+
packaging/macos/build.sh # macOS: Klotse.app and a .dmg
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
A packaged app can check itself: `Klotse --version` and `Klotse --self-test [REPORT_FILE]`. GitHub Actions builds
|
|
190
|
+
everything on a version tag (`v0.1.0`) or on demand and drafts a release.
|
|
191
|
+
|
|
192
|
+
[`AGENTS.md`](https://github.com/mbartsch/klotse/blob/master/AGENTS.md) documents the architecture, file map and behavior to preserve; read it before larger
|
|
193
|
+
changes. Work goes through pull requests from a branch; do not commit to `master` directly.
|
|
194
|
+
|
|
195
|
+
## Roadmap
|
|
196
|
+
|
|
197
|
+
Klotse is written in Python with PySide6 today. The idea is to move to Qt/C++ (or a similar language) at some
|
|
198
|
+
point. Nothing is decided and there is no timeline; the Python version is the one being developed in the meantime.
|
|
199
|
+
|
|
200
|
+
## License
|
|
201
|
+
|
|
202
|
+
Klotse is released under the [Apache License 2.0](https://github.com/mbartsch/klotse/blob/master/LICENSE).
|
|
203
|
+
|
|
204
|
+
Kubernetes is a registered trademark of The Linux Foundation. Klotse is an independent project and is not
|
|
205
|
+
affiliated with or endorsed by The Linux Foundation or the Kubernetes project.
|
|
206
|
+
|
|
207
|
+
## Author
|
|
208
|
+
|
|
209
|
+
Marcelo H. Bartsch · https://github.com/mbartsch/klotse
|
klotse-0.1.0/README.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/mbartsch/klotse/master/src/klotse/assets/klotse_logo.png" alt="Klotse logo" width="200">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# Klotse
|
|
6
|
+
|
|
7
|
+
A native Kubernetes desktop manager for Windows, macOS and Linux. Browse clusters, workloads, nodes and custom
|
|
8
|
+
resources; read logs; open shells; scale, cordon and drain, all from one window.
|
|
9
|
+
|
|
10
|
+
Built with Python, PySide6 (Qt Widgets) and the official Kubernetes Python client. It uses your existing
|
|
11
|
+
kubeconfig and authentication helpers, so there is nothing to sign in to and no server component.
|
|
12
|
+
|
|
13
|
+
> **Status:** early (version 0.1.0). Read-only use against real clusters has been tried; most of the
|
|
14
|
+
> mutating actions (cordon, drain, delete, scale) are covered by automated tests with fake services, not yet by
|
|
15
|
+
> live-cluster runs. Try them on a non-production cluster first.
|
|
16
|
+
|
|
17
|
+
## Features
|
|
18
|
+
|
|
19
|
+
- **Multiple clusters.** Every context in your kubeconfig is listed on the left; each open cluster gets its own
|
|
20
|
+
tab and its own connection.
|
|
21
|
+
- **Resources.** Overview, Workloads, Nodes, Namespaces, Pods, Deployments, ReplicaSets, StatefulSets, DaemonSets,
|
|
22
|
+
Jobs, CronJobs, ConfigMaps, Secrets, Services, Ingresses, NetworkPolicies, PVCs, PVs, StorageClasses, Events,
|
|
23
|
+
CustomResourceDefinitions, and read-only browsing of custom resource instances.
|
|
24
|
+
- **Always fresh.** The visible tab refreshes every 10 s (5/10/30/60 s selectable) and immediately when the
|
|
25
|
+
cluster reports a change. Hidden tabs and clusters are not polled.
|
|
26
|
+
- **Details.** YAML view for any resource, with Secret values masked until you pick the keys to decode.
|
|
27
|
+
`managedFields` are hidden by default (View → Show managedFields in details).
|
|
28
|
+
- **Pods and containers.** Logs (streaming, search, follow), Shell, Attach, terminate and force terminate.
|
|
29
|
+
Double-click a pod for its own tab with every regular, init and ephemeral container.
|
|
30
|
+
- **Nodes.** Cordon/uncordon, drain (with the usual kubectl options), a privileged nsenter shell, delete. Double-click
|
|
31
|
+
a node for its pods, with the node actions in a bar above them. Pod counts per node.
|
|
32
|
+
- **Bulk actions.** Select several rows (Ctrl/Shift) to scale, terminate, cordon or delete them in one confirmed
|
|
33
|
+
step. Scale accepts a number or a relative change such as `*2`, `/2`, `+1`, `-1`.
|
|
34
|
+
- **Usage.** CPU and memory in use (from metrics-server, when present) on Nodes and Pods, plus optional request,
|
|
35
|
+
limit and percent-of-request/limit columns on Pods.
|
|
36
|
+
- **Your columns.** The **Columns…** button on every list lets you hide and reorder built-in columns and add label
|
|
37
|
+
columns with short headings. Saved per resource kind.
|
|
38
|
+
- **Edit menu and Preferences.** Undo/redo/cut/copy/paste/select all (Copy in a table copies the selected rows as
|
|
39
|
+
tab-separated text). Preferences lets you choose a custom kubeconfig and open the settings folder.
|
|
40
|
+
- **macOS.** Choose Terminal or iTerm2 for shells (Settings → Terminal…).
|
|
41
|
+
|
|
42
|
+
## Requirements
|
|
43
|
+
|
|
44
|
+
- Python 3.10 or newer
|
|
45
|
+
- A kubeconfig with at least one context (or pick one in Edit → Preferences)
|
|
46
|
+
- [`kubectl`](https://kubernetes.io/docs/tasks/tools/) on your `PATH`, for drain, shells and attach
|
|
47
|
+
- Python dependencies (installed by the launchers): `PySide6-Essentials`, `kubernetes`, `PyYAML`
|
|
48
|
+
|
|
49
|
+
## Install
|
|
50
|
+
|
|
51
|
+
Native packages are built for Windows (an installer and a portable `.zip`) and macOS (a `.dmg` for Apple Silicon and
|
|
52
|
+
one for Intel). None has been published yet; once they are, they will be on the project's
|
|
53
|
+
[Releases](https://github.com/mbartsch/klotse/releases) page. Until then, run Klotse from source (below) or build the
|
|
54
|
+
packages yourself (see [Development](#development)).
|
|
55
|
+
|
|
56
|
+
- The Windows installer has been tested (install, run, uninstall). The macOS apps are built and self-tested in CI but
|
|
57
|
+
have not been run on a real Mac yet.
|
|
58
|
+
- The packages are not signed yet, so expect a warning on first start: on Windows choose **More info → Run anyway**,
|
|
59
|
+
on macOS right-click the app and choose **Open**.
|
|
60
|
+
- `kubectl` is not included and has to be installed separately.
|
|
61
|
+
|
|
62
|
+
### Linux, or anywhere with Python 3.10+: pipx
|
|
63
|
+
|
|
64
|
+
There is no native Linux package yet. Install with [pipx](https://pipx.pypa.io), which keeps Klotse and its
|
|
65
|
+
dependencies in their own environment and puts a `klotse` command on your `PATH`:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
pipx install git+https://github.com/mbartsch/klotse # straight from GitHub (works today)
|
|
69
|
+
pipx install klotse # from PyPI, once the first release is published
|
|
70
|
+
klotse --install-desktop-entry # optional, Linux: add Klotse to the application menu
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
`klotse --uninstall-desktop-entry` removes the menu entry again. On a minimal Debian/Ubuntu install Qt may also need
|
|
74
|
+
these libraries for its X11 support (the project's CI installs exactly this list on Ubuntu and starts Klotse under
|
|
75
|
+
X11); most desktops already have them:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
sudo apt install libegl1 libxkbcommon-x11-0 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
|
|
79
|
+
libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xinerama0 libxcb-xkb1
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
On other distributions install the equivalent packages. If Klotse stops with "could not load the Qt platform plugin
|
|
83
|
+
xcb", run `QT_DEBUG_PLUGINS=1 klotse` to see which library is missing.
|
|
84
|
+
|
|
85
|
+
## Run
|
|
86
|
+
|
|
87
|
+
macOS / Linux:
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
./run.sh # creates .venv and installs dependencies on first run
|
|
91
|
+
./run.sh --check # check that the imports work, without opening the window
|
|
92
|
+
./run.sh --install # reinstall dependencies
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Windows:
|
|
96
|
+
|
|
97
|
+
```bat
|
|
98
|
+
run.bat # starts without a console window
|
|
99
|
+
run.bat --console # keeps tracebacks visible
|
|
100
|
+
run.bat --check
|
|
101
|
+
run.bat --install
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Or, in an existing environment:
|
|
105
|
+
|
|
106
|
+
```sh
|
|
107
|
+
pip install -r requirements.txt
|
|
108
|
+
PYTHONPATH=src python -m klotse
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Configuration
|
|
112
|
+
|
|
113
|
+
Settings are stored as a plain INI file, one section per resource kind and one entry per line:
|
|
114
|
+
|
|
115
|
+
```ini
|
|
116
|
+
[columns.Pod]
|
|
117
|
+
order.0=name
|
|
118
|
+
order.1=namespace
|
|
119
|
+
order.2=ready
|
|
120
|
+
hidden.0=cpu_req
|
|
121
|
+
hidden.1=cpu_lim
|
|
122
|
+
labels.0=app.kubernetes.io/name
|
|
123
|
+
labels_name.0=App
|
|
124
|
+
labels.1=example.com/team
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
`order` is the order of the built-in columns, `hidden` lists the ones that are hidden, and `labels` the label
|
|
128
|
+
columns; `labels_name.N` gives `labels.N` a short heading. A key that is missing means the default; an empty key
|
|
129
|
+
(`hidden=`) means none. You can edit the file by hand while Klotse is closed.
|
|
130
|
+
|
|
131
|
+
Open its folder from **Edit → Preferences… → Open config folder**. The same file holds the custom kubeconfig path
|
|
132
|
+
and the macOS terminal choice. A custom kubeconfig is passed both to the Kubernetes client and, as `--kubeconfig`,
|
|
133
|
+
to every `kubectl` command Klotse starts.
|
|
134
|
+
|
|
135
|
+
Settings from the earlier name of the project (Kubeman) are copied over on the first start.
|
|
136
|
+
|
|
137
|
+
## Development
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
pip install -r requirements-dev.txt
|
|
141
|
+
PYTHONPATH=src QT_QPA_PLATFORM=offscreen python -m pytest -q
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Tests run offscreen with fake services and synthetic Kubernetes objects; they never touch a real cluster or your
|
|
145
|
+
real settings. `run_tests.sh` / `run_tests.bat` wrap the same command.
|
|
146
|
+
|
|
147
|
+
After all tests pass the pytest process can still exit non-zero (a crash during Qt teardown in some test orders).
|
|
148
|
+
This is a known, unresolved issue that predates recent work, so check the pass count and the exit status separately.
|
|
149
|
+
|
|
150
|
+
To build the native packages (details, signing and releases in [`packaging/README.md`](https://github.com/mbartsch/klotse/blob/master/packaging/README.md)):
|
|
151
|
+
|
|
152
|
+
```sh
|
|
153
|
+
powershell -ExecutionPolicy Bypass -File packaging\windows\build.ps1 # Windows: zip, plus installer if Inno Setup is installed
|
|
154
|
+
packaging/macos/build.sh # macOS: Klotse.app and a .dmg
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
A packaged app can check itself: `Klotse --version` and `Klotse --self-test [REPORT_FILE]`. GitHub Actions builds
|
|
158
|
+
everything on a version tag (`v0.1.0`) or on demand and drafts a release.
|
|
159
|
+
|
|
160
|
+
[`AGENTS.md`](https://github.com/mbartsch/klotse/blob/master/AGENTS.md) documents the architecture, file map and behavior to preserve; read it before larger
|
|
161
|
+
changes. Work goes through pull requests from a branch; do not commit to `master` directly.
|
|
162
|
+
|
|
163
|
+
## Roadmap
|
|
164
|
+
|
|
165
|
+
Klotse is written in Python with PySide6 today. The idea is to move to Qt/C++ (or a similar language) at some
|
|
166
|
+
point. Nothing is decided and there is no timeline; the Python version is the one being developed in the meantime.
|
|
167
|
+
|
|
168
|
+
## License
|
|
169
|
+
|
|
170
|
+
Klotse is released under the [Apache License 2.0](https://github.com/mbartsch/klotse/blob/master/LICENSE).
|
|
171
|
+
|
|
172
|
+
Kubernetes is a registered trademark of The Linux Foundation. Klotse is an independent project and is not
|
|
173
|
+
affiliated with or endorsed by The Linux Foundation or the Kubernetes project.
|
|
174
|
+
|
|
175
|
+
## Author
|
|
176
|
+
|
|
177
|
+
Marcelo H. Bartsch · https://github.com/mbartsch/klotse
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"] # 77+ understands the SPDX license field
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "klotse"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "A native Kubernetes desktop manager built with Python and Qt"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
authors = [{ name = "Marcelo H. Bartsch" }]
|
|
13
|
+
keywords = ["kubernetes", "k8s", "kubectl", "desktop", "gui", "qt", "pyside6", "cluster"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 3 - Alpha",
|
|
16
|
+
"Environment :: X11 Applications :: Qt",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Intended Audience :: System Administrators",
|
|
19
|
+
"Operating System :: MacOS",
|
|
20
|
+
"Operating System :: Microsoft :: Windows",
|
|
21
|
+
"Operating System :: POSIX :: Linux",
|
|
22
|
+
"Programming Language :: Python :: 3",
|
|
23
|
+
"Topic :: Software Development",
|
|
24
|
+
"Topic :: System :: Systems Administration",
|
|
25
|
+
]
|
|
26
|
+
requires-python = ">=3.10"
|
|
27
|
+
dependencies = ["PySide6-Essentials>=6.6", "kubernetes>=29", "PyYAML>=6"]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://github.com/mbartsch/klotse"
|
|
31
|
+
Repository = "https://github.com/mbartsch/klotse"
|
|
32
|
+
Issues = "https://github.com/mbartsch/klotse/issues"
|
|
33
|
+
Releases = "https://github.com/mbartsch/klotse/releases"
|
|
34
|
+
|
|
35
|
+
[project.optional-dependencies]
|
|
36
|
+
dev = ["pytest", "pytest-qt"]
|
|
37
|
+
|
|
38
|
+
[project.gui-scripts]
|
|
39
|
+
klotse = "klotse.__main__:main"
|
|
40
|
+
|
|
41
|
+
[tool.setuptools.packages.find]
|
|
42
|
+
where = ["src"]
|
|
43
|
+
|
|
44
|
+
[tool.setuptools.dynamic]
|
|
45
|
+
version = {attr = "klotse.__version__"}
|
|
46
|
+
|
|
47
|
+
[tool.setuptools.package-data]
|
|
48
|
+
klotse = ["assets/*"]
|
|
49
|
+
|
|
50
|
+
[tool.pytest.ini_options]
|
|
51
|
+
testpaths = ["tests"]
|
klotse-0.1.0/setup.cfg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.0" # single source of truth: pyproject.toml reads it, and About shows it
|