Pod Delete

In the resource field under route, the actual value of {pod_name} is the same as the value of name under metadata.

Message instance

{
    "header":{
        "msg_id":"706cd361-5b54-4d32-8771-550633378db4",
        "parent_msg_id": "",
        "timestamp":1652182736,
        "resourceversion": "",
        "sync":true
    },
    "route":{
        "source":"controller",
        "group":"resource",
        "operation":"delete",
        "resource":"websocket/pod/{pod-name}"
    },
    "content":{}
}

Parameter description

The content message is described as follows:

{
    "metadata":{
        "creationTimestamp":"2022-05-10T11:38:20Z",
        "name":"root-test-6bf30364-3c62-493d-b3c1-848012fb8731",
        "namespace":"websocket",
        "resourceVersion":"4319538",
        "uid":"6bf30364-3c62-493d-b3c1-848012fb8731"
    },
    "spec":{
        "containers":[{
            "name":"container-0"
        }]
    }
}

The following table describes some pod parameters. For details about other pod parameters, see the official Kubernetes documentation.

Level-1 Resource

Level-2 Resource

Level-3 Resource

Description

metadata

-

-

Type: struct

-

creationTimestamp

-

Type: string

Value: a string in the time.RFC3339 format

-

name

-

Type: string

Value: matching the regular expression ^[a-z0-9]([a-z0-9-]{0,126}[a-z0-9]){0,1}$

-

namespace

-

Optional field

Type: string

Value: websocket or mef-user

-

resourceVersion

-

Type: string

Value: matching the regular expression ^[a-zA-Z0-9]{0,64}$

-

uid

-

Type: string

Value: matching the regular expression ^([0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}){0,1}$

spec

-

-

Type: struct

-

containers

-

Type: []Container

Value range: 1-10

-

-

name

Type: string

Value: matching the regular expression ^[a-zA-Z][a-zA-z0-9._-]{0,30}[a-zA-Z0-9]$

Result returned

{
    "header": {
        "id": "",
        "msg_id": "bb678ec0-e88c-43f8-82bc-87f6ca85db0a",
        "parentId": "",
        "parent_msg_id": "706cd361-5b54-4d32-8771-550633378db4",
        "timestamp": 1652182758114,
        "version": "",
        "resourceversion": "",
        "isSync": false,
        "sync": false,
        "nodeId": "",
        "peerInfo": {}
    },
    "router": {
        "source": "",
        "destination": "",
        "option": "",
        "resource": ""
    },
    "route": {
        "source": "controller",
        "group": "resource",
        "operation": "response",
        "resource": "websocket/pod/{pod_name}"
    },
    "content": "OK"
}