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
19 changes: 17 additions & 2 deletions kubeactions/jsonschema/KubeAction.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@
},
"get_resource": {
"$ref": "#/definitions/GetResourceParams",
"additionalProperties": false,
"description": "Future actions can be added here: DrainNodeParams drain_node = 14; CordonNodeParams cordon_node = 15;"
"additionalProperties": false
},
"rollback_deployment": {
"$ref": "#/definitions/RollbackDeploymentParams",
"additionalProperties": false
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -150,6 +153,18 @@
"type": "object",
"title": "Restart Deployment Params",
"description": "RestartDeploymentParams contains parameters for the restart_deployment action. Restarts a deployment by updating the restart annotation on the pod template."
},
"RollbackDeploymentParams": {
"properties": {
"target_revision": {
"type": "string",
"description": "TargetRevision is the revision number of the ReplicaSet to roll back to. If not specified, rolls back to the previous revision."
}
},
"additionalProperties": false,
"type": "object",
"title": "Rollback Deployment Params",
"description": "RollbackDeploymentParams contains parameters for the rollback_deployment action. Rolls back a deployment by reverting to a previous replicaset."
}
}
}
19 changes: 17 additions & 2 deletions kubeactions/jsonschema/KubeActionsList.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@
},
"get_resource": {
"$ref": "#/definitions/GetResourceParams",
"additionalProperties": false,
"description": "Future actions can be added here: DrainNodeParams drain_node = 14; CordonNodeParams cordon_node = 15;"
"additionalProperties": false
},
"rollback_deployment": {
"$ref": "#/definitions/RollbackDeploymentParams",
"additionalProperties": false
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -168,6 +171,18 @@
"type": "object",
"title": "Restart Deployment Params",
"description": "RestartDeploymentParams contains parameters for the restart_deployment action. Restarts a deployment by updating the restart annotation on the pod template."
},
"RollbackDeploymentParams": {
"properties": {
"target_revision": {
"type": "string",
"description": "TargetRevision is the revision number of the ReplicaSet to roll back to. If not specified, rolls back to the previous revision."
}
},
"additionalProperties": false,
"type": "object",
"title": "Rollback Deployment Params",
"description": "RollbackDeploymentParams contains parameters for the rollback_deployment action. Rolls back a deployment by reverting to a previous replicaset."
}
}
}
18 changes: 18 additions & 0 deletions kubeactions/jsonschema/RollbackDeploymentParams.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/RollbackDeploymentParams",
"definitions": {
"RollbackDeploymentParams": {
"properties": {
"target_revision": {
"type": "string",
"description": "TargetRevision is the revision number of the ReplicaSet to roll back to. If not specified, rolls back to the previous revision."
}
},
"additionalProperties": false,
"type": "object",
"title": "Rollback Deployment Params",
"description": "RollbackDeploymentParams contains parameters for the rollback_deployment action. Rolls back a deployment by reverting to a previous replicaset."
}
}
}
114 changes: 0 additions & 114 deletions kubeactions/jsonschema/WorkloadRecommendationsReply.json

This file was deleted.

181 changes: 0 additions & 181 deletions kubeactions/jsonschema/WorkloadRecommendationsRequest.json

This file was deleted.

Loading
Loading