Add enable jobtagger options. Reformat.

This commit is contained in:
Jan Eitzinger 2025-06-27 14:11:37 +02:00
parent 7531ba4b5c
commit 43edccb284

View File

@ -38,10 +38,7 @@
"db-driver": { "db-driver": {
"description": "sqlite3 or mysql (mysql will work for mariadb as well).", "description": "sqlite3 or mysql (mysql will work for mariadb as well).",
"type": "string", "type": "string",
"enum": [ "enum": ["sqlite3", "mysql"]
"sqlite3",
"mysql"
]
}, },
"db": { "db": {
"description": "For sqlite3 a filename, for mysql a DSN in this format: https://github.com/go-sql-driver/mysql#dsn-data-source-name (Without query parameters!).", "description": "For sqlite3 a filename, for mysql a DSN in this format: https://github.com/go-sql-driver/mysql#dsn-data-source-name (Without query parameters!).",
@ -54,10 +51,7 @@
"kind": { "kind": {
"description": "Backend type for job-archive", "description": "Backend type for job-archive",
"type": "string", "type": "string",
"enum": [ "enum": ["file", "s3"]
"file",
"s3"
]
}, },
"path": { "path": {
"description": "Path to job archive for file backend", "description": "Path to job archive for file backend",
@ -74,11 +68,7 @@
"policy": { "policy": {
"description": "Retention policy", "description": "Retention policy",
"type": "string", "type": "string",
"enum": [ "enum": ["none", "delete", "move"]
"none",
"delete",
"move"
]
}, },
"includeDB": { "includeDB": {
"description": "Also remove jobs from database", "description": "Also remove jobs from database",
@ -93,19 +83,19 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["policy"]
"policy"
]
} }
}, },
"required": [ "required": ["kind"]
"kind"
]
}, },
"disable-archive": { "disable-archive": {
"description": "Keep all metric data in the metric data repositories, do not write to the job-archive.", "description": "Keep all metric data in the metric data repositories, do not write to the job-archive.",
"type": "boolean" "type": "boolean"
}, },
"enable-job-taggers": {
"description": "Turn on automatic application and jobclass taggers",
"type": "boolean"
},
"validate": { "validate": {
"description": "Validate all input json documents against json schema.", "description": "Validate all input json documents against json schema.",
"type": "boolean" "type": "boolean"
@ -168,10 +158,7 @@
} }
} }
}, },
"required": [ "required": ["trigger", "resolutions"]
"trigger",
"resolutions"
]
}, },
"jwts": { "jwts": {
"description": "For JWT token authentication.", "description": "For JWT token authentication.",
@ -198,9 +185,7 @@
"type": "boolean" "type": "boolean"
} }
}, },
"required": [ "required": ["max-age"]
"max-age"
]
}, },
"oidc": { "oidc": {
"provider": { "provider": {
@ -215,9 +200,7 @@
"description": "", "description": "",
"type": "boolean" "type": "boolean"
}, },
"required": [ "required": ["provider"]
"provider"
]
}, },
"ldap": { "ldap": {
"description": "For LDAP Authentication and user synchronisation.", "description": "For LDAP Authentication and user synchronisation.",
@ -260,13 +243,7 @@
"type": "boolean" "type": "boolean"
} }
}, },
"required": [ "required": ["url", "user_base", "search_dn", "user_bind", "user_filter"]
"url",
"user_base",
"search_dn",
"user_bind",
"user_filter"
]
}, },
"clusters": { "clusters": {
"description": "Configuration for the clusters to be displayed.", "description": "Configuration for the clusters to be displayed.",
@ -284,12 +261,7 @@
"properties": { "properties": {
"kind": { "kind": {
"type": "string", "type": "string",
"enum": [ "enum": ["influxdb", "prometheus", "cc-metric-store", "test"]
"influxdb",
"prometheus",
"cc-metric-store",
"test"
]
}, },
"url": { "url": {
"type": "string" "type": "string"
@ -298,10 +270,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["kind", "url"]
"kind",
"url"
]
}, },
"filterRanges": { "filterRanges": {
"description": "This option controls the slider ranges for the UI controls of numNodes, duration, and startTime.", "description": "This option controls the slider ranges for the UI controls of numNodes, duration, and startTime.",
@ -318,10 +287,7 @@
"type": "integer" "type": "integer"
} }
}, },
"required": [ "required": ["from", "to"]
"from",
"to"
]
}, },
"duration": { "duration": {
"description": "UI slider range for duration", "description": "UI slider range for duration",
@ -334,10 +300,7 @@
"type": "integer" "type": "integer"
} }
}, },
"required": [ "required": ["from", "to"]
"from",
"to"
]
}, },
"startTime": { "startTime": {
"description": "UI slider range for start time", "description": "UI slider range for start time",
@ -351,24 +314,13 @@
"type": "null" "type": "null"
} }
}, },
"required": [ "required": ["from", "to"]
"from",
"to"
]
} }
}, },
"required": [ "required": ["numNodes", "duration", "startTime"]
"numNodes",
"duration",
"startTime"
]
} }
}, },
"required": [ "required": ["name", "metricDataRepository", "filterRanges"],
"name",
"metricDataRepository",
"filterRanges"
],
"minItems": 1 "minItems": 1
} }
}, },
@ -490,9 +442,5 @@
] ]
} }
}, },
"required": [ "required": ["jwts", "clusters", "apiAllowedIPs"]
"jwts",
"clusters",
"apiAllowedIPs"
]
} }