Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: using namespace from command line when deployment with helm charts #6034

Merged
merged 9 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changes/en-us/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#6042](https://github.com/seata/seata/pull/6042)] add secure authentication to interfaces in ClusterController
- [[#6091](https://github.com/seata/seata/pull/6091)] Optimizing the method of obtaining the tc address during raft authentication
- [[#6098](https://github.com/seata/seata/pull/6098)] optimize the retry logic in the acquireMetadata method
- [[#6034](https://github.com/seata/seata/pull/6034)] using namespace from command line when deployment with helm charts


### security:
Expand All @@ -44,5 +45,6 @@ Thanks to these contributors for their code commits. Please report an unintended
- [ggbocoder](https://github.com/ggbocoder)
- [leezongjie](https://github.com/leezongjie)
- [l81893521](https://github.com/l81893521)
- [baiyangtx](https://github.com/baiyangtx)

Also, we receive many valuable issues, questions and advices from our community. Thanks for you all.
2 changes: 2 additions & 0 deletions changes/zh-cn/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- [[#6042](https://github.com/seata/seata/pull/6042)] 增加raft模式鉴权机制
- [[#6091](https://github.com/seata/seata/pull/6091)] 优化raft鉴权时获取tc地址的方式
- [[#6098](https://github.com/seata/seata/pull/6098)] 优化acquireMetadata方法的重试逻辑
- [[#6034](https://github.com/seata/seata/pull/6034)] 使用helm图表进行部署时使用命令行中的命名空间

### security:
- [[#6069](https://github.com/seata/seata/pull/6069)] 升级Guava依赖版本,修复安全漏洞
Expand All @@ -43,5 +44,6 @@
- [ggbocoder](https://github.com/ggbocoder)
- [leezongjie](https://github.com/leezongjie)
- [l81893521](https://github.com/l81893521)
- [baiyangtx](https://github.com/baiyangtx)

同时,我们收到了社区反馈的很多有价值的issue和建议,非常感谢大家。
4 changes: 1 addition & 3 deletions script/server/helm/seata-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
{{- if .Values.namespace }}
namespace: {{ .Values.namespace }}
{{- end}}
namespace: {{ .Release.Namespace | quote }}
name: {{ include "seata-server.name" . }}
labels:
{{ include "seata-server.labels" . | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions script/server/helm/seata-server/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
kind: Service
metadata:
namespace: {{ .Release.Namespace | quote }}
name: {{ include "seata-server.fullname" . }}
labels:
{{ include "seata-server.labels" . | indent 4 }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
kind: Pod
metadata:
namespace: {{ .Release.Namespace | quote }}
name: "{{ include "seata-server.fullname" . }}-test-connection"
labels:
{{ include "seata-server.labels" . | indent 4 }}
Expand Down
2 changes: 0 additions & 2 deletions script/server/helm/seata-server/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
replicaCount: 1

namespace: default
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can apply namespace with command args

helm install instance  -n ${namespace}   ./seata-server 

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can apply namespace with command args

helm install instance  -n ${namespace}   ./seata-server 

ok


image:
repository: seataio/seata-server
tag: latest
Expand Down
Loading