14558 Commits

Author SHA1 Message Date
sophia
47a0a2d7d2
Record machine client in machine index entry 2022-04-25 12:24:27 -05:00
sophia
6eea1b0afd
Add endpoint for getting all machines from the index 2022-04-25 12:24:27 -05:00
sophia
c5e6a97892
Cache machines in machine index 2022-04-25 12:24:27 -05:00
sophia
8808ef353e
Clean up logging 2022-04-25 12:24:27 -05:00
sophia
f103797592
go generate . 2022-04-25 12:24:27 -05:00
sophia
01fc2926c9
Save machine index entries remotely 2022-04-25 12:24:27 -05:00
sophia
6f54cf51a2
Allow Machine Index entries to have a remote machine reference 2022-04-25 12:24:27 -05:00
sophia
81913d1042
debug target object in machine index 2022-04-25 12:24:27 -05:00
sophia
991f7db5c5
Find target in index 2022-04-25 12:24:27 -05:00
sophia
90968ea430
pPss environment client to machine index eentry environment 2022-04-25 12:24:27 -05:00
sophia
3bda8b24ef
Save point: Get a target successfully from target index 2022-04-25 12:24:26 -05:00
sophia
b22c128671
Get a target from target index 2022-04-25 12:24:26 -05:00
sophia
6dae3576a3
Get project ref 2022-04-25 12:24:26 -05:00
sophia
1ea5b2ba91
Save point: use target ref to retrieve info from target index 2022-04-25 12:24:26 -05:00
sophia
663fbab87a
Fill in remote machine index module 2022-04-25 12:24:26 -05:00
sophia
f3210fff4c
Fill in Ruby machine index client 2022-04-25 12:24:26 -05:00
sophia
7de0fe1bd8
Get machine index remote service setup 2022-04-25 12:24:26 -05:00
sophia
c123335456
Save point: connect to machine index service 2022-04-25 12:24:26 -05:00
sophia
c124a583d7
Add machine index client 2022-04-25 12:24:26 -05:00
sophia
293af5de29
Fill in target index implementation 2022-04-25 12:24:26 -05:00
sophia
a5445b708e
go generate 2022-04-25 12:24:26 -05:00
sophia
be074047eb
wip 2022-04-25 12:24:25 -05:00
sophia
ea313d1291
Implement service endpoint to delete target 2022-04-25 12:24:25 -05:00
sophia
040f02e60d
Add proto to delete target 2022-04-25 12:24:25 -05:00
sophia
551aa2970f
Rename machine index to target index 2022-04-25 12:24:25 -05:00
sophia
16f3ba3574
Setup machine index class 2022-04-25 12:24:25 -05:00
Chris Roberts
92551a4ab5
Update argmapper dependency 2022-04-25 12:24:25 -05:00
Chris Roberts
04c4cce085
Bump go to 1.16 for tests 2022-04-25 12:24:25 -05:00
Chris Roberts
9e514cc8c1
Remove target from spec 2022-04-25 12:24:25 -05:00
Chris Roberts
378019f014
Generated proto updates 2022-04-25 12:24:25 -05:00
Chris Roberts
6bc65c10c8
Update dynamic to use client directly and automatically set scope 2022-04-25 12:24:25 -05:00
Chris Roberts
9caa92a20a
Update command setup to use base client and then load scope
There are still some things left to address like how to handle
a target (or targets) and if that is something we should even
be doing. It may be best to just let the command deal with
target loading. There are also some considerations to make
around remote source.
2022-04-25 12:24:25 -05:00
Chris Roberts
dd9f7f19b4
Update types used 2022-04-25 12:24:24 -05:00
Chris Roberts
cd222f4622
Clean loading UI usage. Add an extra logging flag.
Use the UI provided by the built client instead of creating a
new one. Add support for an extra `v` flag when enabling logging
via flag. An exclude function is added to the logger to prevent
outputting log lines where the content is extremely long for trace
messages. Adding the extra `v` will prevent the suppression and
all log output will be displayed.
2022-04-25 12:24:24 -05:00
Chris Roberts
b86e9c3e8b
Temporarily disable local check in client UI setup 2022-04-25 12:24:24 -05:00
Chris Roberts
219cfe81c5
Rename client target file to properly reflect contents 2022-04-25 12:24:24 -05:00
Chris Roberts
5a4d607437
Remove things no longer required of target 2022-04-25 12:24:24 -05:00
Chris Roberts
cf7630d14d
Update target and vagrantfile loading in project 2022-04-25 12:24:24 -05:00
Chris Roberts
07dbd15ea6
Attach functions to client instead of basis 2022-04-25 12:24:24 -05:00
Chris Roberts
1c87679bc0
Introduce a base client
Provide a base client type that can then be used for loading
scoped items (like basis, project, etc). Allow per-run setup
of server and runner be handled by the client. Add project
loading and project detection support to basis implementation
and load vagrantfiles during client setup.
2022-04-25 12:24:24 -05:00
Chris Roberts
d16eee410f
Add target initialization when loading project 2022-04-25 12:24:24 -05:00
Chris Roberts
4de0da5749
Remove factory usage from test 2022-04-25 12:24:24 -05:00
Chris Roberts
e7c1584822
Use path helper for config path 2022-04-25 12:24:24 -05:00
Chris Roberts
785c38f755
Remove factory usage within runner testing 2022-04-25 12:24:23 -05:00
Chris Roberts
415a6b6b5b
Allow setting a custom context for the runner 2022-04-25 12:24:23 -05:00
Chris Roberts
e9c3494778
Remove path requirement from basis and project in state 2022-04-25 12:24:23 -05:00
Chris Roberts
ff973e380c
When a machine cannot be loaded, raise exception 2022-04-25 12:24:23 -05:00
Chris Roberts
2929a7ab98
Update the go-argmapper dependency to latest release 2022-04-25 12:24:23 -05:00
Chris Roberts
fe293dfd1f
Require client to be set and provide stub on initial startup
When running in server mode, make the Environment validate a client
option is provided on instantiation. If no client option is provided,
raise an exception since it is required in server mode.

Since an initial Environment is required during start, include a
stub value for the client so the initial Environment can be instantiated
successfully and the GRPC service can be started.
2022-04-25 12:24:23 -05:00
Chris Roberts
3ca9519f5c
Generated proto updates 2022-04-25 12:24:23 -05:00