From 0296ce8a8f1c4a9954dd4423bae62e41915739f6 Mon Sep 17 00:00:00 2001 From: Yiqun Ling Date: Mon, 25 Oct 2021 17:29:54 +0800 Subject: [PATCH] [Refactor]Rename annotation name (#2) * Add github action workflow * Rename annotation name Co-authored-by: jingyi.lyq --- pkg/model/annotation.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/model/annotation.go b/pkg/model/annotation.go index 14668de..7b15337 100644 --- a/pkg/model/annotation.go +++ b/pkg/model/annotation.go @@ -12,24 +12,24 @@ import ( const ( // annotationServiceSync is the key of the annotation that determines // whether to sync the Service resource or not. - annotationServiceSync = "nacos.alibaba.com/service-sync" + annotationServiceSync = "nacos.io/service-sync" // annotationServiceName is set to override the name of the service // registered. - annotationServiceName = "nacos.alibaba.com/service-name" + annotationServiceName = "nacos.io`/service-name" // annotationServiceGroup is set to override the group of the service // registered. - annotationServiceGroup = "nacos.alibaba.com/service-group" + annotationServiceGroup = "nacos.io/service-group" // annotationServicePort specifies the port to use as the service instance // port when registering a service. This can be a named port in the // service or an integer value. - annotationServicePort = "nacos.alibaba.com/service-port" + annotationServicePort = "nacos.io/service-port" // annotationServiceMeta specifies the meta of nacos service. // The format must be json. - annotationServiceMeta = "nacos.alibaba.com/service-meta" + annotationServiceMeta = "nacos.io/service-meta" ) func ShouldServiceSync(svc *v1.Service) bool {