Skip to content

Commit

Permalink
[Refactor]Rename annotation name (#2)
Browse files Browse the repository at this point in the history
* Add github action workflow

* Rename annotation name

Co-authored-by: jingyi.lyq <[email protected]>
  • Loading branch information
Lynskylate and jingyi.lyq authored Oct 25, 2021
1 parent c59a06e commit 0296ce8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/model/annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0296ce8

Please sign in to comment.