mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 10:19:54 +00:00
* feat(nodeResources): add GPU support * add resourceCapacity and sum test * update with make schemas * Correct tests names Signed-off-by: Evans Mungai <evans@replicated.com> --------- Signed-off-by: Evans Mungai <evans@replicated.com> Co-authored-by: Evans Mungai <evans@replicated.com>
1573 lines
52 KiB
JSON
1573 lines
52 KiB
JSON
{
|
|
"description": "SupportBundle is the Schema for the SupportBundles API",
|
|
"type": "object",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
|
"type": "string"
|
|
},
|
|
"kind": {
|
|
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object"
|
|
},
|
|
"spec": {
|
|
"description": "SupportBundleSpec defines the desired state of SupportBundle",
|
|
"type": "object",
|
|
"properties": {
|
|
"afterCollection": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"callback": {
|
|
"type": "object",
|
|
"required": [
|
|
"method",
|
|
"redactUri",
|
|
"uri"
|
|
],
|
|
"properties": {
|
|
"method": {
|
|
"type": "string"
|
|
},
|
|
"redactUri": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"uploadResultsTo": {
|
|
"type": "object",
|
|
"required": [
|
|
"method",
|
|
"redactUri",
|
|
"uri"
|
|
],
|
|
"properties": {
|
|
"method": {
|
|
"type": "string"
|
|
},
|
|
"redactUri": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"analyzers": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"clusterVersion": {
|
|
"type": "object",
|
|
"required": [
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"containerRuntime": {
|
|
"type": "object",
|
|
"required": [
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"customResourceDefinition": {
|
|
"type": "object",
|
|
"required": [
|
|
"customResourceDefinitionName",
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"customResourceDefinitionName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"deploymentStatus": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"namespace",
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"distribution": {
|
|
"type": "object",
|
|
"required": [
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imagePullSecret": {
|
|
"type": "object",
|
|
"required": [
|
|
"outcomes",
|
|
"registryName"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"registryName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"ingress": {
|
|
"type": "object",
|
|
"required": [
|
|
"ingressName",
|
|
"namespace",
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"ingressName": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"mysql": {
|
|
"type": "object",
|
|
"required": [
|
|
"collectorName",
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"fileName": {
|
|
"type": "string"
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"nodeResources": {
|
|
"type": "object",
|
|
"required": [
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"filters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"cpuAllocatable": {
|
|
"type": "string"
|
|
},
|
|
"cpuCapacity": {
|
|
"type": "string"
|
|
},
|
|
"ephemeralStorageAllocatable": {
|
|
"type": "string"
|
|
},
|
|
"ephemeralStorageCapacity": {
|
|
"type": "string"
|
|
},
|
|
"memoryAllocatable": {
|
|
"type": "string"
|
|
},
|
|
"memoryCapacity": {
|
|
"type": "string"
|
|
},
|
|
"podAllocatable": {
|
|
"type": "string"
|
|
},
|
|
"podCapacity": {
|
|
"type": "string"
|
|
},
|
|
"resourceAllocatable": {
|
|
"type": "string"
|
|
},
|
|
"resourceCapacity": {
|
|
"type": "string"
|
|
},
|
|
"resourceName": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"type": "object",
|
|
"properties": {
|
|
"matchLabel": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"postgres": {
|
|
"type": "object",
|
|
"required": [
|
|
"collectorName",
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"fileName": {
|
|
"type": "string"
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"redis": {
|
|
"type": "object",
|
|
"required": [
|
|
"collectorName",
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"fileName": {
|
|
"type": "string"
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"secret": {
|
|
"type": "object",
|
|
"required": [
|
|
"namespace",
|
|
"outcomes",
|
|
"secretName"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"secretName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"statefulsetStatus": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"namespace",
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"storageClass": {
|
|
"type": "object",
|
|
"required": [
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"storageClassName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"textAnalyze": {
|
|
"type": "object",
|
|
"required": [
|
|
"outcomes"
|
|
],
|
|
"properties": {
|
|
"checkName": {
|
|
"type": "string"
|
|
},
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"fileName": {
|
|
"type": "string"
|
|
},
|
|
"outcomes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fail": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"pass": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"warn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
},
|
|
"when": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"regex": {
|
|
"type": "string"
|
|
},
|
|
"regexGroups": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"collectors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"clusterInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
}
|
|
}
|
|
},
|
|
"clusterResources": {
|
|
"type": "object",
|
|
"properties": {
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
}
|
|
}
|
|
},
|
|
"copy": {
|
|
"type": "object",
|
|
"required": [
|
|
"containerPath",
|
|
"namespace",
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"containerName": {
|
|
"type": "string"
|
|
},
|
|
"containerPath": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"required": [
|
|
"data"
|
|
],
|
|
"properties": {
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"data": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"exec": {
|
|
"type": "object",
|
|
"required": [
|
|
"namespace",
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"args": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"command": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"containerName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"http": {
|
|
"type": "object",
|
|
"properties": {
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"get": {
|
|
"type": "object",
|
|
"required": [
|
|
"url"
|
|
],
|
|
"properties": {
|
|
"headers": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"insecureSkipVerify": {
|
|
"type": "boolean"
|
|
},
|
|
"timeout": {
|
|
"description": "A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"post": {
|
|
"type": "object",
|
|
"required": [
|
|
"url"
|
|
],
|
|
"properties": {
|
|
"body": {
|
|
"type": "string"
|
|
},
|
|
"headers": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"insecureSkipVerify": {
|
|
"type": "boolean"
|
|
},
|
|
"timeout": {
|
|
"description": "A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"type": "object",
|
|
"required": [
|
|
"url"
|
|
],
|
|
"properties": {
|
|
"body": {
|
|
"type": "string"
|
|
},
|
|
"headers": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"insecureSkipVerify": {
|
|
"type": "boolean"
|
|
},
|
|
"timeout": {
|
|
"description": "A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.",
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"logs": {
|
|
"type": "object",
|
|
"required": [
|
|
"selector"
|
|
],
|
|
"properties": {
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"containerNames": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"limits": {
|
|
"type": "object",
|
|
"properties": {
|
|
"maxAge": {
|
|
"type": "string"
|
|
},
|
|
"maxLines": {
|
|
"type": "integer",
|
|
"format": "int64"
|
|
}
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"selector": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"mysql": {
|
|
"type": "object",
|
|
"required": [
|
|
"uri"
|
|
],
|
|
"properties": {
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"postgres": {
|
|
"type": "object",
|
|
"required": [
|
|
"uri"
|
|
],
|
|
"properties": {
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"redis": {
|
|
"type": "object",
|
|
"required": [
|
|
"uri"
|
|
],
|
|
"properties": {
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"uri": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"run": {
|
|
"type": "object",
|
|
"required": [
|
|
"image",
|
|
"namespace"
|
|
],
|
|
"properties": {
|
|
"args": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"command": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"image": {
|
|
"type": "string"
|
|
},
|
|
"imagePullPolicy": {
|
|
"type": "string"
|
|
},
|
|
"imagePullSecret": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"secret": {
|
|
"type": "object",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"collectorName": {
|
|
"type": "string"
|
|
},
|
|
"exclude": {
|
|
"oneOf": [{"type": "string"},{"type": "boolean"}]
|
|
},
|
|
"includeValue": {
|
|
"type": "boolean"
|
|
},
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"status": {
|
|
"description": "SupportBundleStatus defines the observed state of SupportBundle",
|
|
"type": "object"
|
|
}
|
|
}
|
|
} |