diff --git a/app/brahma/api/murder/deploy/templates/deployment.yaml b/app/brahma/api/murder/deploy/templates/deployment.yaml index 6f357bb..e2c7b48 100755 --- a/app/brahma/api/murder/deploy/templates/deployment.yaml +++ b/app/brahma/api/murder/deploy/templates/deployment.yaml @@ -44,8 +44,14 @@ spec: - containerPort: {{ .Values.port }} protocol: TCP env: - - name: endpoints + - name: ENDPOINTS value: 'etcd:2379' + - name: APP_NAME + value: {{ .Values.appName }} + - name: NAMESPACE + value: {{ .Values.nameSpace }} + - name: APP_TYPE + value: api resources: limits: cpu: 200m diff --git a/app/brahma/api/murder/deploy/values.yaml b/app/brahma/api/murder/deploy/values.yaml index 310dd1e..d2a8948 100755 --- a/app/brahma/api/murder/deploy/values.yaml +++ b/app/brahma/api/murder/deploy/values.yaml @@ -1,4 +1,5 @@ nameSpace: brahma +appName: murder aliasName: 剧本杀 image: reg.icechen.cn/brahma/api-murder imageTag: latest diff --git a/go.mod b/go.mod index ac1c39a..0575834 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,12 @@ go 1.17 require ( github.com/gofiber/fiber/v2 v2.24.0 github.com/golang/protobuf v1.5.2 + github.com/google/uuid v1.1.2 github.com/jinzhu/copier v0.3.4 github.com/larksuite/oapi-sdk-go v1.1.43 github.com/luizsuper/ctxLoggers v1.0.3 github.com/pkg/errors v0.9.1 + github.com/spf13/cast v1.4.1 go.etcd.io/etcd/client/v3 v3.5.1 go.uber.org/zap v1.20.0 google.golang.org/grpc v1.43.0 diff --git a/go.sum b/go.sum index 191c73b..8b7db33 100644 --- a/go.sum +++ b/go.sum @@ -106,6 +106,7 @@ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= @@ -206,6 +207,8 @@ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPx github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= +github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=