Jörg Thalheim
72453b5078
start spice in background
2023-11-23 17:56:05 +01:00
Jörg Thalheim
935acbd94a
spice: use unix socket instead of tcp
2023-11-23 17:34:06 +01:00
Jörg Thalheim
d4bafa9017
fake_deal: fixup call wrapper
2023-11-23 17:32:37 +01:00
Jörg Thalheim
93ab408827
switch to spice for graphical vms
2023-11-23 16:59:07 +01:00
Jörg Thalheim
4f18c48892
vms: start with cpu=max
...
This unlocks some cpu extensions
2023-11-23 16:55:36 +01:00
Jörg Thalheim
3f7bb87021
clan-cli: drop dependency on deal
2023-11-23 15:03:46 +01:00
Jörg Thalheim
1d5e87d407
drop glade backup file
2023-11-23 15:03:46 +01:00
Jörg Thalheim
d35229216e
mv clan-vm-manager to its own package
2023-11-23 15:03:46 +01:00
Qubasa
dddbe74d6a
Added gtk demo app
2023-11-23 15:03:38 +01:00
Qubasa
9698e57fa6
Added more deal tests
2023-11-21 16:44:38 +01:00
Jörg Thalheim
f27b1da6b9
drop dependency on fastapi in the cli
2023-11-21 15:09:18 +01:00
Jörg Thalheim
d76ab43136
drop join from cli
2023-11-21 14:25:51 +01:00
Jörg Thalheim
647a4214fb
get rid of pydantic in cli
2023-11-21 12:48:35 +00:00
DavHau
7eb6132c1d
history: fix: store entries only once
2023-11-20 11:39:00 +07:00
DavHau
a982084ab4
api/flake/history: implement review requests
2023-11-17 18:26:55 +07:00
clan-bot
d072d93911
Merge pull request 'hide root from api schema' ( #529 ) from hsjobeki-hsjobeki into main
2023-11-17 11:07:11 +00:00
Johannes Kirschbauer
27d1ecb3b7
hide root from api schema
2023-11-17 12:03:40 +01:00
DavHau
2306417145
api/flake/list_history: init
...
Add an api endpoint to list the history of clan flakes that have been interacted with
Also add `clan flake list`
2023-11-17 17:56:14 +07:00
Johannes Kirschbauer
3d24f9464d
hide root from api schema
2023-11-17 11:54:17 +01:00
DavHau
11fb73432b
api/flake/add: init
...
Adds an endpoint to memoize clans.
clan flakes can be added to the history either via the endpoint or by executing `clan flakes add`
2023-11-17 17:05:15 +07:00
Jörg Thalheim
44fa268205
secrets/generate-private-key: just create parent opportunistically
2023-11-16 13:19:12 +01:00
kenji
f88a17ad34
clan_cli: create key directory
2023-11-15 23:15:12 +01:00
lassulus
d8633dd29d
machines.update: remove redundant flake argument
2023-11-15 21:57:08 +01:00
lassulus
082d628497
clan_cli: flake_name -> flake_dir
2023-11-15 16:23:28 +01:00
Jörg Thalheim
15df81b45e
drop verbose command logging in task manager
2023-11-15 07:21:26 +01:00
Jörg Thalheim
4514b09f81
also regenerate secrets if a fact is missing
2023-11-14 17:07:58 +01:00
Jörg Thalheim
f65bd8aa85
fix exception when file does not exist
...
fixes https://git.clan.lol/clan/clan-core/issues/488
2023-11-14 16:57:05 +01:00
Jörg Thalheim
8b42d0207a
add cors headers in exception handler in cors
2023-11-14 16:39:20 +01:00
Jörg Thalheim
652580d57d
only enable corsmiddleware when in dev mode and allow all origins
2023-11-14 15:32:03 +01:00
DavHau
d755048dc2
api/machines: allow config verification on imaginary machines
...
Machines do not need to exist in order to verify their configuration.
This allows verifying a config before creating an actual machine with it.
2023-11-13 21:24:05 +07:00
DavHau
33944cf74e
api/machines: verify config by evaluating the .vm output
...
This fixes the problem where fileSystems were missing, or boot.loader was not set.
SInce we want VMs anyways for now, this strategy aligns well
2023-11-13 20:50:11 +07:00
DavHau
2fafc9a38b
api/machines: init put_machine replacing create_machine and set_machine_config
...
This allows creating and configuring a machine in one single step.
2023-11-13 20:25:52 +07:00
DavHau
0dae746bed
task_manager.py: fix index out of range bug
2023-11-13 20:21:51 +07:00
DavHau
52af144135
commit_file: fix diff computation
...
previously computed diff over all files
2023-11-13 19:59:20 +07:00
DavHau
3745709449
chore: remove unnecessary comment
2023-11-12 07:57:48 +07:00
DavHau
1e2e37880c
api/machines: ensure name is valid hostname
2023-11-12 07:57:48 +07:00
Jörg Thalheim
706e7970f4
vms/create: drop extra flake argument and make it work with local flakes
2023-11-10 13:43:14 +01:00
Jörg Thalheim
ba305a946e
dirs: opportuniscally create directories
2023-11-10 12:55:46 +01:00
Jörg Thalheim
2924e3e912
drop unused clan_data_dir
2023-11-10 12:55:46 +01:00
Jörg Thalheim
48d7968cf9
move flake configuration to .config/clan/flakes rather than $XDG_DATA_DIRS
2023-11-10 12:50:51 +01:00
Jörg Thalheim
cb2145be65
drop unused ClanDataPath
2023-11-10 12:46:15 +01:00
Jörg Thalheim
6ef5dab65d
breakpoint_shell: make work_dir optional
2023-11-10 12:40:51 +01:00
Jörg Thalheim
2e939bedd6
moving deal dependencies to tests only
2023-11-10 12:39:24 +01:00
clan-bot
aa15bebb0c
Merge pull request 'zerotier: allow to persist zerotier identities/ips/meshnames for non-controller' ( #482 ) from zerotier into main
2023-11-10 10:59:48 +00:00
DavHau
170d29a15a
api/schema: return list of missing modules
2023-11-10 15:07:15 +07:00
DavHau
da32031eda
api/schema: don't crash on eval error
2023-11-10 14:27:03 +07:00
Jörg Thalheim
5d972ed4a4
clan: use .local/share as default for XDG_DATA_HOME
2023-11-09 17:45:24 +01:00
Jörg Thalheim
d025902aac
fix error message if clan flake does not exist
2023-11-09 17:44:44 +01:00
DavHau
fc1591a0a8
api/schema: get schema without having a machine
...
Also done:
- add @pytest.mark.with_core indicating that a test depends on clan-core and cannot be cached
- separate unit tests into two derivations, ones that can be cached and ones that cannot.
- fix frontend typescript code
2023-11-09 15:30:25 +07:00
Qubasa
93c6270386
Added deal contract framework and testing documentation
2023-11-08 19:56:07 +01:00