Skip to content

Commit abaa4e2

Browse files
Updating config schema.
1 parent ae4f9ca commit abaa4e2

File tree

1 file changed

+52
-36
lines changed

1 file changed

+52
-36
lines changed

config_schema.json

Lines changed: 52 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
{
22
"fields": [
33
{
4-
"name": "app-id",
5-
"description": "The GitHub App to connect to.",
6-
"stringField": {}
7-
},
8-
{
9-
"name": "app-privatekey-path",
10-
"description": "Path to private key that is used to connect to the GitHub App",
4+
"name": "otel-collector-endpoint",
5+
"description": "The endpoint of the OpenTelemetry collector to send observability data to (used for both tracing and logging if specific endpoints are not provided)",
6+
"isOps": true,
117
"stringField": {}
128
},
139
{
@@ -16,23 +12,27 @@
1612
"stringField": {}
1713
},
1814
{
19-
"name": "log-level",
20-
"description": "The log level: debug, info, warn, error",
15+
"name": "sync-secrets",
16+
"description": "Whether to sync secrets or not",
17+
"boolField": {}
18+
},
19+
{
20+
"name": "otel-collector-endpoint-tls-cert-path",
21+
"description": "Path to a file containing a PEM-encoded certificate to use as a CA for TLS connections to the OpenTelemetry collector",
2122
"isOps": true,
22-
"stringField": {
23-
"defaultValue": "info"
24-
}
23+
"stringField": {}
2524
},
2625
{
27-
"name": "orgs",
28-
"description": "Limit syncing to specific organizations.",
29-
"stringSliceField": {}
26+
"name": "otel-logging-disabled",
27+
"description": "Disable OpenTelemetry logging",
28+
"isOps": true,
29+
"boolField": {}
3030
},
3131
{
32-
"name": "otel-collector-endpoint",
33-
"description": "The endpoint of the OpenTelemetry collector to send observability data to (used for both tracing and logging if specific endpoints are not provided)",
32+
"name": "otel-tracing-disabled",
33+
"description": "Disable OpenTelemetry tracing",
3434
"isOps": true,
35-
"stringField": {}
35+
"boolField": {}
3636
},
3737
{
3838
"name": "otel-collector-endpoint-tls-cert",
@@ -41,38 +41,54 @@
4141
"stringField": {}
4242
},
4343
{
44-
"name": "otel-collector-endpoint-tls-cert-path",
45-
"description": "Path to a file containing a PEM-encoded certificate to use as a CA for TLS connections to the OpenTelemetry collector",
46-
"isOps": true,
44+
"name": "token",
45+
"description": "The GitHub access token used to connect to the GitHub API.",
4746
"stringField": {}
4847
},
4948
{
50-
"name": "otel-collector-endpoint-tls-insecure",
51-
"description": "Allow insecure connections to the OpenTelemetry collector",
52-
"isOps": true,
53-
"boolField": {}
49+
"name": "app-privatekey-path",
50+
"description": "Path to private key that is used to connect to the GitHub App",
51+
"stringField": {}
5452
},
5553
{
56-
"name": "otel-logging-disabled",
57-
"description": "Disable OpenTelemetry logging",
54+
"name": "log-level",
55+
"description": "The log level: debug, info, warn, error",
5856
"isOps": true,
59-
"boolField": {}
57+
"stringField": {
58+
"defaultValue": "info"
59+
}
6060
},
6161
{
62-
"name": "otel-tracing-disabled",
63-
"description": "Disable OpenTelemetry tracing",
62+
"name": "app-id",
63+
"description": "The GitHub App to connect to.",
64+
"stringField": {}
65+
},
66+
{
67+
"name": "otel-collector-endpoint-tls-insecure",
68+
"description": "Allow insecure connections to the OpenTelemetry collector",
6469
"isOps": true,
6570
"boolField": {}
6671
},
6772
{
68-
"name": "sync-secrets",
69-
"description": "Whether to sync secrets or not",
70-
"boolField": {}
73+
"name": "orgs",
74+
"description": "Limit syncing to specific organizations.",
75+
"stringSliceField": {}
76+
}
77+
],
78+
"constraints": [
79+
{
80+
"kind": "CONSTRAINT_KIND_MUTUALLY_EXCLUSIVE",
81+
"fieldNames": [
82+
"token",
83+
"app-privatekey-path"
84+
]
7185
},
7286
{
73-
"name": "token",
74-
"description": "The GitHub access token used to connect to the GitHub API.",
75-
"stringField": {}
87+
"kind": "CONSTRAINT_KIND_REQUIRED_TOGETHER",
88+
"fieldNames": [
89+
"app-privatekey-path",
90+
"app-id"
91+
]
7692
}
7793
]
7894
}

0 commit comments

Comments
 (0)