mirror of
https://github.com/labring/sealos.git
synced 2026-08-30 17:58:09 +08:00
34c45c004d
* fix(account-webhook): widen apiVersions from v1 to * in debt webhook * test(account-webhook): add unit tests for debt webhook handler
创建微信支付所需要的 secret 选择 secret 的方式是因为 WechatPrivateKey 有很多特殊符号很容易解析错误,先base64加密之后通过secret是一种比较合适的办法。
apiVersion: v1
kind: Secret
metadata:
name: payment-secret
namespace: account-system
type: Opaque
data:
MchID: xxxx
AppID: xxxxx
MchAPIv3Key: xxxx
MchCertificateSerialNumber: xxxx
WechatPrivateKey: xxxx
部署方式
sealos run ghcr.io/labring/sealos-account-controller:deploy-cluster --env MONGO_URI="mongodb://username:passwd@ip:port/sealos-resources?authSource=admin"