actionGKE

delete_nodepool

Delete node pool from the given cluster/zone of the provided project

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosgcp.gke.nodepool.actions
Namedelete_nodepool
Returnmapping

Usage

JSON

{
  "name": "delete-nodepool",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosgcp.gke.nodepool.actions",
    "func": "delete_nodepool",
    "arguments": {
      "node_pool_id": ""
    }
  }
}

YAML

name: delete-nodepool
provider:
  arguments:
    node_pool_id: ""
  func: delete_nodepool
  module: chaosgcp.gke.nodepool.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
node_pool_idstringYesNode Pool IdentifierName of the nodepool to delete
wait_until_completebooleantrueNoWait Until CompleteWait until operation has completed

If wait_until_complete is set to True (the default), the function will block until the node pool is deleted. Otherwise, will return immediately with the operation information.

See: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools/create

Signature

def delete_nodepool(
        node_pool_id: str,
        wait_until_complete: bool = True,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass