|
1 | 1 | { |
2 | 2 | "fields": [ |
3 | 3 | { |
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, |
11 | 7 | "stringField": {} |
12 | 8 | }, |
13 | 9 | { |
|
16 | 12 | "stringField": {} |
17 | 13 | }, |
18 | 14 | { |
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", |
21 | 22 | "isOps": true, |
22 | | - "stringField": { |
23 | | - "defaultValue": "info" |
24 | | - } |
| 23 | + "stringField": {} |
25 | 24 | }, |
26 | 25 | { |
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": {} |
30 | 30 | }, |
31 | 31 | { |
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", |
34 | 34 | "isOps": true, |
35 | | - "stringField": {} |
| 35 | + "boolField": {} |
36 | 36 | }, |
37 | 37 | { |
38 | 38 | "name": "otel-collector-endpoint-tls-cert", |
|
41 | 41 | "stringField": {} |
42 | 42 | }, |
43 | 43 | { |
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.", |
47 | 46 | "stringField": {} |
48 | 47 | }, |
49 | 48 | { |
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": {} |
54 | 52 | }, |
55 | 53 | { |
56 | | - "name": "otel-logging-disabled", |
57 | | - "description": "Disable OpenTelemetry logging", |
| 54 | + "name": "log-level", |
| 55 | + "description": "The log level: debug, info, warn, error", |
58 | 56 | "isOps": true, |
59 | | - "boolField": {} |
| 57 | + "stringField": { |
| 58 | + "defaultValue": "info" |
| 59 | + } |
60 | 60 | }, |
61 | 61 | { |
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", |
64 | 69 | "isOps": true, |
65 | 70 | "boolField": {} |
66 | 71 | }, |
67 | 72 | { |
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 | + ] |
71 | 85 | }, |
72 | 86 | { |
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 | + ] |
76 | 92 | } |
77 | 93 | ] |
78 | 94 | } |
0 commit comments