actionNetwork

remove_allow_dns_access

Remove DNS access from pods

Activity as code

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

Typeaction
Modulechaosk8s.networking.actions
Nameremove_allow_dns_access
Returnnone

Usage

JSON

{
  "name": "remove-allow-dns-access",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosk8s.networking.actions",
    "func": "remove_allow_dns_access"
  }
}

YAML

name: remove-allow-dns-access
provider:
  func: remove_allow_dns_access
  module: chaosk8s.networking.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
nsstring“default”YesNamespace

Remove the rule that allowed DNS access.

Signature

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