actionNetwork

remove_network_policy

Remove a network policty

Activity as code

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

Typeaction
Modulechaosk8s.networking.actions
Nameremove_network_policy
Returnnone

Usage

JSON

{
  "name": "remove-network-policy",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosk8s.networking.actions",
    "func": "remove_network_policy",
    "arguments": {
      "name": ""
    }
  }
}

YAML

name: remove-network-policy
provider:
  arguments:
    name: ''
  func: remove_network_policy
  module: chaosk8s.networking.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
nsstring“default”YesNamespace
namestringYesNetwork Policy NaleName a Kubernetes network policy

Remove an existing network policy.

Signature

def remove_network_policy(name: str,
                          ns: str = 'default',
                          secrets: Dict[str, Dict[str, str]] = None):
    pass