diff options
| author | KubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com> | 2024-01-18 16:05:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-18 16:05:28 +0800 |
| commit | 4237f6f6805e64585238dd8ec06e9a382e7187d9 (patch) | |
| tree | 9a2407853eb06620ecfa780d6b5dbbe21a26f294 /pkg | |
| parent | Merge pull request #5262 from tangming1996/feature/edgeapplication (diff) | |
| parent | update dmi server to get namespace (diff) | |
| download | kubeedge-4237f6f6805e64585238dd8ec06e9a382e7187d9.tar.gz | |
Merge pull request #5253 from wbc6080/update-dmiserver
update dmi server to get namespace
Diffstat (limited to 'pkg')
| -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 +} |
