Secret Update
Message instance
{
"header":{
"msg_id":"4e52321b-ae69-40f1-903d-35de465d0525",
"parent_msg_id": "",
"resourceversion": "",
"timestamp":1655900456,
"sync":true
},
"route":{
"source":"controller",
"group":"resource",
"operation":"update",
"resource":"websocket/secret/fusion-director-docker-registry-secret"
},
"content":{
}
}
Parameter description
The content message is described as follows:
{
"data":{
".dockerconfigjson":[xxxxxxxxxxxxxxxxxxxxxxx]
},
"metadata":{
"creationTimestamp":"2022-06-22T12:20:56Z",
"name":"fusion-director-docker-registry-secret",
"namespace":"websocket",
"resourceVersion":"3251368",
"uid":"fusion-director-docker-registry-secret"
},
"type":"kubernetes.io/dockerconfigjson"
}
The following table describes some secret parameters. For details about other secret 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: fusion-director-docker-registry-secret or ^([0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}){0,1}$ |
data |
- |
Type: map[string][]byte Value: The value of key must be .dockerconfigjson, and the value can contain a maximum of 2048 characters. |
type |
- |
Type: string Value: kubernetes.io/dockerconfigjson |
Result returned:
{
"header": {
"id": "",
"msg_id": "aff344f2-4117-4a20-90a5-d4a6737a0798",
"parentId": "",
"parent_msg_id": "4e52321b-ae69-40f1-903d-35de465d0525",
"version": "",
"resourceversion": "",
"timestamp": 1655900417431,
"isSync": false,
"sync": false,
"nodeId": "",
"peerInfo": {}
},
"router": {
"source": "",
"destination": "",
"option": "",
"resource": ""
},
"route": {
"source": "controller",
"group": "resource",
"operation": "response",
"resource": "websocket/secret/fusion-director-docker-registry-secret"
},
"content": "OK"
}