Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions kubeactions/jsonschema/GetResourceParams.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/GetResourceParams",
"definitions": {
"GetResourceParams": {
"properties": {
"output_format": {
"type": "string",
"description": "OutputFormat specifies the desired output format for the resource. Supported values: \"json\" (default) - Output the resource as a JSON object \"yaml\" - Output the resource as a YAML string If not specified, defaults to \"json\"."
}
},
"additionalProperties": false,
"type": "object",
"title": "Get Resource Params",
"description": "GetResourceParams contains parameters for a get_resource action."
}
}
}
18 changes: 17 additions & 1 deletion kubeactions/jsonschema/KubeAction.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
"title": "Delete Pod Params",
"description": "DeletePodParams contains parameters for the delete_pod action. Deletes a pod from the cluster with an optional grace period."
},
"GetResourceParams": {
"properties": {
"output_format": {
"type": "string",
"description": "OutputFormat specifies the desired output format for the resource. Supported values: \"json\" (default) - Output the resource as a JSON object \"yaml\" - Output the resource as a YAML string If not specified, defaults to \"json\"."
}
},
"additionalProperties": false,
"type": "object",
"title": "Get Resource Params",
"description": "GetResourceParams contains parameters for a get_resource action."
},
"KubeAction": {
"required": [
"resource",
Expand Down Expand Up @@ -50,8 +62,12 @@
},
"patch_deployment": {
"$ref": "#/definitions/PatchDeploymentParams",
"additionalProperties": false
},
"get_resource": {
"$ref": "#/definitions/GetResourceParams",
"additionalProperties": false,
"description": "Future actions can be added here: DrainNodeParams drain_node = 13; CordonNodeParams cordon_node = 14;"
"description": "Future actions can be added here: DrainNodeParams drain_node = 14; CordonNodeParams cordon_node = 15;"
}
},
"additionalProperties": false,
Expand Down
18 changes: 17 additions & 1 deletion kubeactions/jsonschema/KubeActionsList.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
"title": "Delete Pod Params",
"description": "DeletePodParams contains parameters for the delete_pod action. Deletes a pod from the cluster with an optional grace period."
},
"GetResourceParams": {
"properties": {
"output_format": {
"type": "string",
"description": "OutputFormat specifies the desired output format for the resource. Supported values: \"json\" (default) - Output the resource as a JSON object \"yaml\" - Output the resource as a YAML string If not specified, defaults to \"json\"."
}
},
"additionalProperties": false,
"type": "object",
"title": "Get Resource Params",
"description": "GetResourceParams contains parameters for a get_resource action."
},
"KubeAction": {
"required": [
"resource",
Expand Down Expand Up @@ -50,8 +62,12 @@
},
"patch_deployment": {
"$ref": "#/definitions/PatchDeploymentParams",
"additionalProperties": false
},
"get_resource": {
"$ref": "#/definitions/GetResourceParams",
"additionalProperties": false,
"description": "Future actions can be added here: DrainNodeParams drain_node = 13; CordonNodeParams cordon_node = 14;"
"description": "Future actions can be added here: DrainNodeParams drain_node = 14; CordonNodeParams cordon_node = 15;"
}
},
"additionalProperties": false,
Expand Down
Loading
Loading