Files
troubleshoot/schemas/preflight.json
2020-02-10 21:17:11 +00:00

1230 lines
40 KiB
JSON

{
"description": "Preflight is the Schema for the preflights API",
"type": "object",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More 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. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"description": "PreflightSpec defines the desired state of Preflight",
"type": "object",
"properties": {
"analyzers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"clusterVersion": {
"type": "object",
"required": [
"outcomes"
],
"properties": {
"checkName": {
"type": "string"
},
"exclude": {
"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": {
"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": {
"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": {
"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": {
"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": {
"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": {
"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"
}
}
}
}
}
}
}
},
"nodeResources": {
"type": "object",
"required": [
"outcomes"
],
"properties": {
"checkName": {
"type": "string"
},
"exclude": {
"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"
}
}
},
"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": {
"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": {
"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",
"storageClassName"
],
"properties": {
"checkName": {
"type": "string"
},
"exclude": {
"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": {
"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",
"required": [
"when"
],
"properties": {
"collectorName": {
"type": "string"
},
"when": {
"type": "boolean"
}
}
},
"clusterResources": {
"type": "object",
"required": [
"when"
],
"properties": {
"collectorName": {
"type": "string"
},
"when": {
"type": "boolean"
}
}
},
"copy": {
"type": "object",
"required": [
"containerPath",
"namespace",
"selector",
"when"
],
"properties": {
"collectorName": {
"type": "string"
},
"containerName": {
"type": "string"
},
"containerPath": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"selector": {
"type": "array",
"items": {
"type": "string"
}
},
"when": {
"type": "boolean"
}
}
},
"data": {
"type": "object",
"required": [
"data",
"when"
],
"properties": {
"collectorName": {
"type": "string"
},
"data": {
"type": "string"
},
"name": {
"type": "string"
},
"when": {
"type": "boolean"
}
}
},
"exec": {
"type": "object",
"required": [
"namespace",
"selector",
"when"
],
"properties": {
"args": {
"type": "array",
"items": {
"type": "string"
}
},
"collectorName": {
"type": "string"
},
"command": {
"type": "array",
"items": {
"type": "string"
}
},
"containerName": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"selector": {
"type": "array",
"items": {
"type": "string"
}
},
"timeout": {
"type": "string"
},
"when": {
"type": "boolean"
}
}
},
"http": {
"type": "object",
"required": [
"when"
],
"properties": {
"collectorName": {
"type": "string"
},
"get": {
"type": "object",
"required": [
"url"
],
"properties": {
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"insecureSkipVerify": {
"type": "boolean"
},
"url": {
"type": "string"
}
}
},
"name": {
"type": "string"
},
"post": {
"type": "object",
"required": [
"url"
],
"properties": {
"body": {
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"insecureSkipVerify": {
"type": "boolean"
},
"url": {
"type": "string"
}
}
},
"put": {
"type": "object",
"required": [
"url"
],
"properties": {
"body": {
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"insecureSkipVerify": {
"type": "boolean"
},
"url": {
"type": "string"
}
}
},
"when": {
"type": "boolean"
}
}
},
"logs": {
"type": "object",
"required": [
"selector",
"when"
],
"properties": {
"collectorName": {
"type": "string"
},
"containerNames": {
"type": "array",
"items": {
"type": "string"
}
},
"limits": {
"type": "object",
"properties": {
"maxAge": {
"type": "string"
},
"maxLines": {
"type": "integer",
"format": "int64"
}
}
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"selector": {
"type": "array",
"items": {
"type": "string"
}
},
"when": {
"type": "boolean"
}
}
},
"run": {
"type": "object",
"required": [
"image",
"namespace",
"when"
],
"properties": {
"args": {
"type": "array",
"items": {
"type": "string"
}
},
"collectorName": {
"type": "string"
},
"command": {
"type": "array",
"items": {
"type": "string"
}
},
"image": {
"type": "string"
},
"imagePullPolicy": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"timeout": {
"type": "string"
},
"when": {
"type": "boolean"
}
}
},
"secret": {
"type": "object",
"required": [
"name",
"when"
],
"properties": {
"collectorName": {
"type": "string"
},
"includeValue": {
"type": "boolean"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"when": {
"type": "boolean"
}
}
}
}
}
},
"uploadResultsTo": {
"type": "string"
}
}
},
"status": {
"description": "PreflightStatus defines the observed state of Preflight",
"type": "object"
}
}
}