actionCRD

delete_custom_object

Delete a namespaced custom object

Activity as code

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

Typeaction
Modulechaosk8s.crd.actions
Namedelete_custom_object
Returnnone

Usage

JSON

{
  "name": "delete-custom-object",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosk8s.crd.actions",
    "func": "delete_custom_object",
    "arguments": {
      "group": "",
      "version": "",
      "plural": "",
      "name": ""
    }
  }
}

YAML

name: delete-custom-object
provider:
  arguments:
    group: ''
    name: ''
    plural: ''
    version: ''
  func: delete_custom_object
  module: chaosk8s.crd.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
nsstring“default”YesNamespace
groupstringYesGroup
versionstringYesVersion
pluralstringYesPlural

Delete a namespaced custom object.

Signature

def delete_custom_object(
        group: str,
        version: str,
        plural: str,
        name: str,
        ns: str = 'default',
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass