File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
CLOUD_AGENT_CONNECTION_ID ,
11
11
CLOUD_AGENT_PROVIDER ,
12
12
CLOUD_AGENT_VERSION ,
13
+ CLOUD_AGENT_VOLUME_ONLY ,
13
14
} from './utils/env'
14
15
import { client } from './utils/grpc'
15
16
import { logger } from './utils/logger'
@@ -48,15 +49,18 @@ async function main() {
48
49
process . exit ( 1 )
49
50
}
50
51
51
- switch ( CLOUD_AGENT_PROVIDER ) {
52
- case 'fly' :
53
- startStateStream ( signal , FlyProvider )
54
- break
55
- case 'aws' :
56
- startStateStream ( signal , AwsProvider )
57
- break
58
- default :
59
- startStateStream ( signal , AwsProvider )
52
+ // Volume only mode only handles ceph volume requests.
53
+ if ( ! CLOUD_AGENT_VOLUME_ONLY ) {
54
+ switch ( CLOUD_AGENT_PROVIDER ) {
55
+ case 'fly' :
56
+ startStateStream ( signal , FlyProvider )
57
+ break
58
+ case 'aws' :
59
+ startStateStream ( signal , AwsProvider )
60
+ break
61
+ default :
62
+ startStateStream ( signal , AwsProvider )
63
+ }
60
64
}
61
65
62
66
startUpdater ( signal )
Original file line number Diff line number Diff line change 4
4
5
5
// CLOUD_AGENT_PROVIDER defines the cloud provider. It defaults to 'aws' but can be 'fly'.
6
6
export const CLOUD_AGENT_PROVIDER = process . env . CLOUD_AGENT_PROVIDER ?? 'aws'
7
+ export const CLOUD_AGENT_VOLUME_ONLY = process . env . CLOUD_AGENT_VOLUME_ONLY
7
8
8
9
export const CLOUD_AGENT_API_URL = process . env . CLOUD_AGENT_API_URL ?? 'https://api.depot.dev'
9
10
You can’t perform that action at this time.
0 commit comments