Skip to content

Commit

Permalink
using namespace from command line.
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyangtx committed Nov 15, 2023
1 parent abfafc3 commit 01d97be
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
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

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

0 comments on commit 01d97be

Please sign in to comment.