probefault

get_virtual_service

Get a virtual service identified by `name`

Activity as code

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

Typeprobe
Modulechaosistio.fault.probes
Nameget_virtual_service
Returnmapping

Usage

JSON

{
  "name": "get-virtual-service",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosistio.fault.probes",
    "func": "get_virtual_service",
    "arguments": {
      "virtual_service_name": ""
    }
  }
}

YAML

name: get-virtual-service
provider:
  arguments:
    virtual_service_name: ""
  func: get_virtual_service
  module: chaosistio.fault.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
virtual_service_namestringYesVirtual Service NameName of the target virtual service
nsstring“default”NoNamespace
versionstring“networking.istio.io/v1alpha3”NoVersionIstio fault injection version

See https://istio.io/docs/reference/config/istio.networking.v1alpha3/#VirtualService

Signature

def get_virtual_service(
        virtual_service_name: str,
        ns: str = 'default',
        version: str = 'networking.istio.io/v1alpha3',
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass