diff options
| author | wbc6080 <wangbincheng4@huawei.com> | 2023-12-02 16:32:21 +0800 |
|---|---|---|
| committer | wbc6080 <wangbincheng4@huawei.com> | 2024-01-18 11:27:34 +0800 |
| commit | d01a767ea2510ec33320ba95f5ed797a81eae2c2 (patch) | |
| tree | b64604bca9b352a7dbc0e440ffe48aa5d2ff396f /pkg/util/util.go | |
| parent | Merge pull request #5330 from ZhengXinwei-F/task-manager (diff) | |
| download | kubeedge-d01a767ea2510ec33320ba95f5ed797a81eae2c2.tar.gz | |
update dmi server to get namespace
Signed-off-by: wbc6080 <wangbincheng4@huawei.com>
Diffstat (limited to '')
| -rw-r--r-- | pkg/util/util.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/util/util.go b/pkg/util/util.go index 39ca1b2b7..94091b912 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -150,3 +150,8 @@ func ConcatStrings(ss ...string) string { } return bff.String() } + +// GetResourceID return resource ID +func GetResourceID(namespace, name string) string { + return namespace + "/" + name +} |
