probeDeployment

deployment_fully_available

Wait until the deployment gets into an intermediate state where not all expected replicas are available.

Activity as code

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

Typeprobe
Modulechaosk8s.deployment.probes
Namedeployment_fully_available
Returnbool

Usage

JSON

{
  "name": "deployment-fully-available",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosk8s.deployment.probes",
    "func": "deployment_fully_available",
    "arguments": {
      "name": ""
    }
  }
}

YAML

name: deployment-fully-available
provider:
  arguments:
    name: ""
  func: deployment_fully_available
  module: chaosk8s.deployment.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
namestringYesNameName of the deployment
nsstring“default”YesNamespace
label_selectorstringnullNoLabel SelectorUse label selector instead of the name
raise_on_fully_availablebooltrueNoRaise on fully availableRaise when fully available, if unchecked returns a boolean
timeoutinteger30NoTimeoutTimeout before we consider the operation failed

Signature

def deployment_fully_available(
        name: str,
        ns: str = 'default',
        label_selector: str = None,
        timeout: int = 30,
        raise_on_not_fully_available: bool = True,
        secrets: Dict[str, Dict[str, str]] = None) -> Optional[bool]:
    pass