ConfigMap Delete

In the resource field under route, the actual value of {configmap_name} is the name of the ConfigMap configuration item in the message content.

Message instance

{
    "header":{
        "msg_id":"a00585c7-c6d4-439f-8642-35678ff77c23",
        "parent_msg_id": "",
        "timestamp":1652184866,
        "resourceversion": "",
        "sync":true
    },
    "route":{
        "source":"controller",
        "group":"resource",
        "operation":"delete",
        "resource":"websocket/configmap/{configmap_name}"
    },
    "content":{}
}

Parameter description

The content message is described as follows:

{
    "data":null,
    "metadata":{
        "creationTimestamp":"2022-05-10T12:14:26Z",
        "name":"{configmap_name}",
        "namespace":"websocket",
        "resourceVersion":"8518763",
        "uid":"f3c9a63f-5bd0-4857-9363-6a7cda9f706f"
    }
}

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

Level-1 Resource

Level-2 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}$

data

-

Type: map[string]string

Value: a null pointer

Result returned

{
    "header": {
        "id": "",
        "msg_id": "abe773be-a34c-4967-89f7-f8148c2aa50d",
        "parentId": "",
        "parent_msg_id": "a00585c7-c6d4-439f-8642-35678ff77c23",
        "timestamp": 1652184887755,
        "version": "",
        "resourceversion": "",
        "isSync": false,
        "sync": false,
        "nodeId": "",
        "peerInfo": {}
    },
    "router": {
        "source": "",
        "destination": "",
        "option": "",
        "resource": ""
    },
    "route": {
        "source": "controller",
        "group": "resource",
        "operation": "response",
        "resource": "websocket/configmap/{configmap_name}"
    },
    "content": "OK"
}