summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorKubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com>2024-01-18 16:05:28 +0800
committerGitHub <noreply@github.com>2024-01-18 16:05:28 +0800
commit4237f6f6805e64585238dd8ec06e9a382e7187d9 (patch)
tree9a2407853eb06620ecfa780d6b5dbbe21a26f294 /pkg
parentMerge pull request #5262 from tangming1996/feature/edgeapplication (diff)
parentupdate dmi server to get namespace (diff)
downloadkubeedge-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.go5
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
+}