-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplatform.schema.json
executable file
·61 lines (61 loc) · 2.49 KB
/
platform.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://vcluster.com/schemas/platform-config",
"$defs": {
"AutoDelete": {
"properties": {
"afterInactivity": {
"type": "integer",
"description": "AfterInactivity specifies after how many seconds of inactivity the virtual cluster be deleted\n+optional"
}
},
"additionalProperties": false,
"type": "object"
},
"AutoSleep": {
"properties": {
"afterInactivity": {
"type": "integer",
"description": "AfterInactivity specifies after how many seconds of inactivity the virtual cluster should sleep\n+optional"
},
"schedule": {
"type": "string",
"description": "Schedule specifies scheduled virtual cluster sleep in Cron format, see https://en.wikipedia.org/wiki/Cron.\nNote: timezone defined in the schedule string will be ignored. Use \".Timezone\" field instead.\n+optional"
},
"timezone": {
"type": "string",
"description": "Timezone specifies time zone used for scheduled virtual cluster operations. Defaults to UTC.\nAccepts the same format as time.LoadLocation() in Go (https://pkg.go.dev/time#LoadLocation).\nThe value should be a location name corresponding to a file in the IANA Time Zone database, such as \"America/New_York\".\n+optional"
},
"autoWakeup": {
"$ref": "#/$defs/AutoWakeup",
"description": "AutoSleep holds configuration for automatic wakeup\n+optional"
}
},
"additionalProperties": false,
"type": "object"
},
"AutoWakeup": {
"properties": {
"schedule": {
"type": "string",
"description": "Schedule specifies scheduled wakeup from sleep in Cron format, see https://en.wikipedia.org/wiki/Cron.\nNote: timezone defined in the schedule string will be ignored. The timezone for the autoSleep schedule will be\nused\n+optional"
}
},
"additionalProperties": false,
"type": "object"
}
},
"properties": {
"autoSleep": {
"$ref": "#/$defs/AutoSleep",
"description": "AutoSleep holds configuration for automatic sleep and wakeup\n+optional"
},
"autoDelete": {
"$ref": "#/$defs/AutoDelete",
"description": "AutoDelete holds configuration for automatic delete\n+optional"
}
},
"additionalProperties": false,
"type": "object",
"description": "PlatformConfig describes platform configuration for a vCluster."
}