From 580f3f8d71143d22bb586756827b41e8aacc1690 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Thu, 27 Mar 2025 14:48:25 +0800 Subject: [PATCH] feat: add config checksum annotations to deployment templates and update site URL in values files Signed-off-by: zhenyus --- .../authentication/templates/authentication/deployment.yaml | 2 ++ .../centralStorage/templates/central-storage/deployment.yaml | 2 ++ freeleaps/helm-pkg/chat/templates/chat/deployment.yaml | 2 ++ freeleaps/helm-pkg/chat/values.prod.yaml | 2 +- freeleaps/helm-pkg/content/templates/content/deployment.yaml | 2 ++ freeleaps/helm-pkg/devsvc/templates/devsvc/deployment.yaml | 2 ++ .../helm-pkg/freeleaps/templates/freeleaps/deployment.yaml | 2 ++ freeleaps/helm-pkg/freeleaps/values.prod.yaml | 2 +- .../helm-pkg/frontend/templates/frontend/deployment.yaml | 2 ++ freeleaps/helm-pkg/frontend/values.prod.yaml | 4 ++-- .../notification/templates/notification/deployment.yaml | 2 ++ freeleaps/helm-pkg/payment/templates/payment/deployment.yaml | 2 ++ freeleaps/helm-pkg/payment/values.prod.yaml | 2 +- 13 files changed, 23 insertions(+), 5 deletions(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml index 4917a059..45dab0b9 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml @@ -23,6 +23,8 @@ spec: app.kubernetes.io/name: "authentication" app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "authentication-config.yaml") . | sha256sum }} spec: containers: - name: "authentication" diff --git a/freeleaps/helm-pkg/centralStorage/templates/central-storage/deployment.yaml b/freeleaps/helm-pkg/centralStorage/templates/central-storage/deployment.yaml index afd1808e..09ce31f2 100644 --- a/freeleaps/helm-pkg/centralStorage/templates/central-storage/deployment.yaml +++ b/freeleaps/helm-pkg/centralStorage/templates/central-storage/deployment.yaml @@ -23,6 +23,8 @@ spec: app.kubernetes.io/name: "central-storage" app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "central-storage-config.yaml") . | sha256sum }} spec: containers: - name: "central-storage" diff --git a/freeleaps/helm-pkg/chat/templates/chat/deployment.yaml b/freeleaps/helm-pkg/chat/templates/chat/deployment.yaml index 01e74c65..b2fceeca 100644 --- a/freeleaps/helm-pkg/chat/templates/chat/deployment.yaml +++ b/freeleaps/helm-pkg/chat/templates/chat/deployment.yaml @@ -23,6 +23,8 @@ spec: app.kubernetes.io/name: "chat" app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "chat-config.yaml") . | sha256sum }} spec: containers: - name: "chat" diff --git a/freeleaps/helm-pkg/chat/values.prod.yaml b/freeleaps/helm-pkg/chat/values.prod.yaml index e710f1d2..b6a7d815 100644 --- a/freeleaps/helm-pkg/chat/values.prod.yaml +++ b/freeleaps/helm-pkg/chat/values.prod.yaml @@ -70,7 +70,7 @@ chat: mongodbPort: 27017 mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority emailFrom: freeleaps@freeleaps.com - siteUrlRoot: https://freeleaps.mathmast.com + siteUrlRoot: https://freeleaps.com jwtSecretKey: ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0 jwtAlgorithm: HS256 stripeApiKey: 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 diff --git a/freeleaps/helm-pkg/content/templates/content/deployment.yaml b/freeleaps/helm-pkg/content/templates/content/deployment.yaml index d7f83112..7e93f3a9 100644 --- a/freeleaps/helm-pkg/content/templates/content/deployment.yaml +++ b/freeleaps/helm-pkg/content/templates/content/deployment.yaml @@ -23,6 +23,8 @@ spec: app.kubernetes.io/name: "content" app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "content-config.yaml") . | sha256sum }} spec: containers: - name: "content" diff --git a/freeleaps/helm-pkg/devsvc/templates/devsvc/deployment.yaml b/freeleaps/helm-pkg/devsvc/templates/devsvc/deployment.yaml index cd58d159..f75634f5 100644 --- a/freeleaps/helm-pkg/devsvc/templates/devsvc/deployment.yaml +++ b/freeleaps/helm-pkg/devsvc/templates/devsvc/deployment.yaml @@ -23,6 +23,8 @@ spec: app.kubernetes.io/name: "devsvc" app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "devsvc-config.yaml") . | sha256sum }} spec: containers: - name: "devsvc" diff --git a/freeleaps/helm-pkg/freeleaps/templates/freeleaps/deployment.yaml b/freeleaps/helm-pkg/freeleaps/templates/freeleaps/deployment.yaml index 53880392..ffa68fd5 100644 --- a/freeleaps/helm-pkg/freeleaps/templates/freeleaps/deployment.yaml +++ b/freeleaps/helm-pkg/freeleaps/templates/freeleaps/deployment.yaml @@ -23,6 +23,8 @@ spec: app.kubernetes.io/name: "freeleaps" app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "freeleaps-config.yaml") . | sha256sum }} spec: containers: - name: "freeleaps" diff --git a/freeleaps/helm-pkg/freeleaps/values.prod.yaml b/freeleaps/helm-pkg/freeleaps/values.prod.yaml index 14df7155..44089df9 100644 --- a/freeleaps/helm-pkg/freeleaps/values.prod.yaml +++ b/freeleaps/helm-pkg/freeleaps/values.prod.yaml @@ -70,7 +70,7 @@ freeleaps: mongodbPort: 27017 mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority emailFrom: freeleaps@freeleaps.com - siteUrlRoot: https://freeleaps.mathmast.com + siteUrlRoot: https://freeleaps.com jwtSecretKey: ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0 jwtAlgorithm: HS256 stripeApiKey: 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 diff --git a/freeleaps/helm-pkg/frontend/templates/frontend/deployment.yaml b/freeleaps/helm-pkg/frontend/templates/frontend/deployment.yaml index c3f5c7ed..cc7c8b54 100644 --- a/freeleaps/helm-pkg/frontend/templates/frontend/deployment.yaml +++ b/freeleaps/helm-pkg/frontend/templates/frontend/deployment.yaml @@ -23,6 +23,8 @@ spec: app.kubernetes.io/name: "frontend" app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "frontend-config.yaml") . | sha256sum }} spec: containers: - name: "frontend" diff --git a/freeleaps/helm-pkg/frontend/values.prod.yaml b/freeleaps/helm-pkg/frontend/values.prod.yaml index 22245bc1..7a86711b 100644 --- a/freeleaps/helm-pkg/frontend/values.prod.yaml +++ b/freeleaps/helm-pkg/frontend/values.prod.yaml @@ -29,7 +29,7 @@ frontend: targetPort: 8080 ingresses: - name: frontend-ingress - host: freeleaps.mathmast.com + host: freeleaps.com class: nginx rules: - path: / @@ -44,7 +44,7 @@ frontend: issuerRef: name: mathmast-dot-com kind: ClusterIssuer - name: freeleaps.mathmast.com-cert + name: freeleaps.com-cert annotations: nginx.ingress.kubernetes.io/proxy-read-timeout: '3600' nginx.ingress.kubernetes.io/proxy-send-timeout: '3600' diff --git a/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml b/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml index 6cffad89..7ca00108 100644 --- a/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml +++ b/freeleaps/helm-pkg/notification/templates/notification/deployment.yaml @@ -23,6 +23,8 @@ spec: app.kubernetes.io/name: "notification" app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "notification-config.yaml") . | sha256sum }} spec: containers: - name: "notification" diff --git a/freeleaps/helm-pkg/payment/templates/payment/deployment.yaml b/freeleaps/helm-pkg/payment/templates/payment/deployment.yaml index bcc581cd..d261ae7f 100644 --- a/freeleaps/helm-pkg/payment/templates/payment/deployment.yaml +++ b/freeleaps/helm-pkg/payment/templates/payment/deployment.yaml @@ -23,6 +23,8 @@ spec: app.kubernetes.io/name: "payment" app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "payment-config.yaml") . | sha256sum }} spec: containers: - name: "payment" diff --git a/freeleaps/helm-pkg/payment/values.prod.yaml b/freeleaps/helm-pkg/payment/values.prod.yaml index 0015f8e5..49092163 100644 --- a/freeleaps/helm-pkg/payment/values.prod.yaml +++ b/freeleaps/helm-pkg/payment/values.prod.yaml @@ -70,6 +70,6 @@ payment: mongodbPort: 27017 mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority stripeApiKey: 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 - siteUrlRoot: https://freeleaps.mathmast.com + siteUrlRoot: https://freeleaps.com metricsEnabled: "true" probesEnabled: "true" \ No newline at end of file