From 44d7144539aba917d963a3d51cd961dc3aca9787 Mon Sep 17 00:00:00 2001 From: Morty <70688412+yiweichi@users.noreply.github.com> Date: Sat, 21 Sep 2024 00:40:51 +0800 Subject: [PATCH] fix: coordinator api env (#173) --- charts/coordinator-api/Chart.yaml | 2 +- charts/coordinator-api/README.md | 3 ++- charts/coordinator-api/values.yaml | 4 ++++ charts/scroll-sdk/Chart.yaml | 4 ++-- charts/scroll-sdk/README.md | 4 ++-- charts/scroll-sdk/templates/config-file-for-services.yaml | 2 +- 6 files changed, 12 insertions(+), 7 deletions(-) diff --git a/charts/coordinator-api/Chart.yaml b/charts/coordinator-api/Chart.yaml index 481e44a3..2ff1e68a 100644 --- a/charts/coordinator-api/Chart.yaml +++ b/charts/coordinator-api/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 description: coordinator-api helm charts name: coordinator-api -version: 0.0.7 +version: 0.0.8 appVersion: v0.1.0 kubeVersion: ">=1.22.0-0" maintainers: diff --git a/charts/coordinator-api/README.md b/charts/coordinator-api/README.md index 3f7b8273..7321da71 100644 --- a/charts/coordinator-api/README.md +++ b/charts/coordinator-api/README.md @@ -1,6 +1,6 @@ # coordinator-api -![Version: 0.0.7](https://img.shields.io/badge/Version-0.0.7-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square) +![Version: 0.0.8](https://img.shields.io/badge/Version-0.0.8-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square) coordinator-api helm charts @@ -35,6 +35,7 @@ Kubernetes: `>=1.22.0-0` | defaultProbes.enabled | bool | `false` | | | defaultProbes.spec.httpGet.path | string | `"/"` | | | defaultProbes.spec.httpGet.port | int | `8090` | | +| envFrom[0].configMapRef.name | string | `"coordinator-api-env"` | | | env[0].name | string | `"HTTP_PORT"` | | | env[0].value | int | `8080` | | | env[1].name | string | `"METRICS_PORT"` | | diff --git a/charts/coordinator-api/values.yaml b/charts/coordinator-api/values.yaml index f0d694fd..df176ada 100644 --- a/charts/coordinator-api/values.yaml +++ b/charts/coordinator-api/values.yaml @@ -23,6 +23,10 @@ env: - name: SCROLL_PROVER_ASSETS_DIR value: "/data/assets/" +envFrom: + - configMapRef: + name: coordinator-api-env + command: [ "/bin/sh", "-c", diff --git a/charts/scroll-sdk/Chart.yaml b/charts/scroll-sdk/Chart.yaml index ad21f2ec..8ea8a19d 100644 --- a/charts/scroll-sdk/Chart.yaml +++ b/charts/scroll-sdk/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 description: scroll helm charts to deploy scroll sdk name: scroll-sdk -version: 0.0.35 +version: 0.0.36 appVersion: v0.1.0 kubeVersion: ">=1.22.0-0" maintainers: @@ -46,7 +46,7 @@ dependencies: repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm" condition: contracts.enabled - name: coordinator-api - version: 0.0.7 + version: 0.0.8 repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm" condition: coordinator-api.enabled - name: coordinator-cron diff --git a/charts/scroll-sdk/README.md b/charts/scroll-sdk/README.md index ef7413eb..b76d7ed3 100644 --- a/charts/scroll-sdk/README.md +++ b/charts/scroll-sdk/README.md @@ -1,6 +1,6 @@ # scroll-sdk -![Version: 0.0.35](https://img.shields.io/badge/Version-0.0.35-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square) +![Version: 0.0.36](https://img.shields.io/badge/Version-0.0.36-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square) scroll helm charts to deploy scroll sdk @@ -31,7 +31,7 @@ Kubernetes: `>=1.22.0-0` | oci://ghcr.io/scroll-tech/scroll-sdk/helm | bridge-history-fetcher | 0.0.8 | | oci://ghcr.io/scroll-tech/scroll-sdk/helm | chain-monitor | 0.0.7 | | oci://ghcr.io/scroll-tech/scroll-sdk/helm | contracts | 0.0.7 | -| oci://ghcr.io/scroll-tech/scroll-sdk/helm | coordinator-api | 0.0.7 | +| oci://ghcr.io/scroll-tech/scroll-sdk/helm | coordinator-api | 0.0.8 | | oci://ghcr.io/scroll-tech/scroll-sdk/helm | coordinator-cron | 0.0.6 | | oci://ghcr.io/scroll-tech/scroll-sdk/helm | frontends | 0.0.7 | | oci://ghcr.io/scroll-tech/scroll-sdk/helm | gas-oracle | 0.0.7 | diff --git a/charts/scroll-sdk/templates/config-file-for-services.yaml b/charts/scroll-sdk/templates/config-file-for-services.yaml index 4860efe6..a008bc57 100644 --- a/charts/scroll-sdk/templates/config-file-for-services.yaml +++ b/charts/scroll-sdk/templates/config-file-for-services.yaml @@ -95,7 +95,7 @@ kind: ConfigMap metadata: labels: {{- include "scroll-sdk.labels" $ | nindent 4 }} - name: coordinator-env + name: coordinator-api-env data: {{ .Files.Get "configs/coordinator.env" | indent 2 }} ---