Skip to content

Commit

Permalink
fix desktop and costcenter configs (#5114)
Browse files Browse the repository at this point in the history
  • Loading branch information
xudaotutou authored Sep 26, 2024
1 parent 7b0be93 commit 1243fd3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deploy/cloud/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,9 @@ function sealos_run_frontend {
--env cloudPort="$cloudPort" \
--env certSecretName="wildcard-cert" \
--env transferEnabled="true" \
--env rechargeEnabled="false"

--env rechargeEnabled="false" \
--env jwtInternal="$jwtInternal"

echo "run template frontend"
sealos run tars/frontend-template.tar \
--env cloudDomain=$cloudDomain \
Expand Down
1 change: 1 addition & 0 deletions frontend/desktop/deploy/manifests/configmap.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ data:
proxyAddress: ""
callbackURL: "https://{{ .cloudDomain }}{{ if .cloudPort }}:{{ .cloudPort }}{{ end }}/callback"
signUpEnabled: true
billingUrl: "http://account-service.account-system.svc:2333"
baiduToken: ""
invite:
enabled: false
Expand Down
3 changes: 3 additions & 0 deletions frontend/desktop/deploy/manifests/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ rules:
- apiGroups: ["notification.sealos.io"]
resources: ["notifications"]
verbs: ["list", "get", "create", "update", "patch", "watch"]
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
1 change: 1 addition & 0 deletions frontend/providers/costcenter/deploy/Kubefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ ENV cloudDomain="127.0.0.1.nip.io"
ENV cloudPort=""
ENV transferEnabled="true"
ENV rechargeEnabled="true"
ENV jwtInternal=""

CMD ["kubectl apply -f manifests"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ data:
costCenter:
transferEnabled: true
currencyType: "shellCoin"
auth:
jwt:
internal: "{{ .jwtInternal }}"
billing: "{{ .jwtInternal }}"
invoice:
enabled: false
feiShuBotURL: ""
Expand Down

0 comments on commit 1243fd3

Please sign in to comment.