From 2e0c13c8566cf83c0de53af96cf6e0c1494bded4 Mon Sep 17 00:00:00 2001 From: Andras Jaky Date: Thu, 29 Sep 2022 16:43:48 +0200 Subject: [PATCH 1/4] feat(Cadence): updated server 0.23.2->0.24.0 --- cadence/Chart.yaml | 2 +- cadence/README.md | 4 ++-- cadence/values.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cadence/Chart.yaml b/cadence/Chart.yaml index be3f5873..690d694b 100644 --- a/cadence/Chart.yaml +++ b/cadence/Chart.yaml @@ -1,6 +1,6 @@ name: cadence version: 0.23.1 -appVersion: 0.23.2 +appVersion: 0.24.0 description: Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way. icon: https://raw.githubusercontent.com/uber/cadence-web/master/client/assets/logo.svg apiVersion: v1 diff --git a/cadence/README.md b/cadence/README.md index d2f01aa3..cda3f165 100644 --- a/cadence/README.md +++ b/cadence/README.md @@ -19,7 +19,7 @@ This chart bootstraps a [Cadence](https://github.com/uber/cadence) and a [Cadenc ## Prerequisites - Kubernetes 1.7+ with Beta APIs enabled -- Cadence 0.23.0+ +- Cadence 0.24.0+ ## Installing the Chart @@ -328,7 +328,7 @@ Global options overridable per service are marked with an asterisk. | `nameOverride` | Override name of the application | `` | | `fullnameOverride` | Override full name of the application | `` | | `server.image.repository` | Server image repository | `ubercadence/server` | -| `server.image.tag` | Server image tag | `0.23.2` | +| `server.image.tag` | Server image tag | `0.24.0` | | `server.image.pullPolicy` | Server image pull policy | `IfNotPresent` | | `server.replicaCount`* | Server replica count | `1` | | `server.metrics.annotations.enabled`* | Annotate pods with Prometheus annotations | `false` | diff --git a/cadence/values.yaml b/cadence/values.yaml index c96e2dd0..489e9683 100644 --- a/cadence/values.yaml +++ b/cadence/values.yaml @@ -8,7 +8,7 @@ debug: false server: image: repository: ubercadence/server - tag: 0.23.2 + tag: 0.24.0 pullPolicy: IfNotPresent # Global default settings (can be overridden per service) From 95b60f0a039344cdd2444511106d8cbb99dca7a2 Mon Sep 17 00:00:00 2001 From: Andras Jaky Date: Thu, 29 Sep 2022 16:45:50 +0200 Subject: [PATCH 2/4] feat(Cadence): updated web 3.29.5->3.32.0 --- cadence/README.md | 2 +- cadence/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cadence/README.md b/cadence/README.md index cda3f165..6ede33d1 100644 --- a/cadence/README.md +++ b/cadence/README.md @@ -365,7 +365,7 @@ Global options overridable per service are marked with an asterisk. | `web.enabled` | Enable WebUI service | `true` | | `web.replicaCount` | Number of WebUI service Replicas | `1` | | `web.image.repository` | WebUI image repository | `ubercadence/web` | -| `web.image.tag` | WebUI image tag | `3.29.5` | +| `web.image.tag` | WebUI image tag | `3.32.0` | | `web.image.pullPolicy` | WebUI image pull policy | `IfNotPresent` | | `web.service.annotations` | WebUI service annotations | `{}` | | `web.service.type` | WebUI service type | `ClusterIP` | diff --git a/cadence/values.yaml b/cadence/values.yaml index 489e9683..cd6a491d 100644 --- a/cadence/values.yaml +++ b/cadence/values.yaml @@ -310,7 +310,7 @@ web: image: repository: ubercadence/web - tag: v3.29.5 + tag: v3.32.0 pullPolicy: IfNotPresent tcheck: From a9e508bcd11f3ee1cb123ec89132344a1a3f7299 Mon Sep 17 00:00:00 2001 From: Andras Jaky Date: Tue, 4 Oct 2022 11:16:48 +0200 Subject: [PATCH 3/4] feat(Cadence): switched system worker to gRPC As per this PR: https://github.com/uber/cadence/pull/4679 --- cadence/templates/server-configmap.yaml | 9 +++++++-- cadence/values.yaml | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cadence/templates/server-configmap.yaml b/cadence/templates/server-configmap.yaml index 2a0101ea..ecfebc09 100644 --- a/cadence/templates/server-configmap.yaml +++ b/cadence/templates/server-configmap.yaml @@ -162,14 +162,19 @@ data: {{- $currentClusterName := .Values.server.config.clusterMetadata.currentClusterName }} {{- $currentClusterIndex := 0 }} {{- $frontendComponentName := (include "cadence.componentname" (list . "frontend")) }} - {{- $serverFrontendServicePort := .Values.server.frontend.service.port }} + {{- $serverFrontendServiceTransport := .Values.server.frontend.service.transport | default "grpc" }} + {{- $serverFrontendServicePort := (.Values.server.frontend.service.grpcPort | int) | default 7833 }} + {{- if eq $serverFrontendServiceTransport "tchannel" }} + {{- $serverFrontendServicePort = (.Values.server.frontend.service.port | int) }} + {{- end }} {{- range $clusterIndex, $clusterInfo := .Values.server.config.clusterMetadata.clusterInformation }} {{- if eq $clusterInfo.name $currentClusterName }}{{ $currentClusterIndex = $clusterIndex }}{{ end }} {{ $clusterInfo.name }}: enabled: {{ $clusterInfo.enabled }} initialFailoverVersion: {{ $clusterIndex }} rpcName: "{{ $frontendComponentName }}" - rpcAddress: "{{ $clusterInfo.rpcAddress | default (printf "%s%s%.0f" $frontendComponentName ":" $serverFrontendServicePort ) }}" + rpcAddress: "{{ $clusterInfo.rpcAddress | default (printf "%s%s%d" $frontendComponentName ":" $serverFrontendServicePort ) }}" + rpcTransport: "{{ $serverFrontendServiceTransport }}" {{- end }} dcRedirectionPolicy: diff --git a/cadence/values.yaml b/cadence/values.yaml index cd6a491d..0e640ea1 100644 --- a/cadence/values.yaml +++ b/cadence/values.yaml @@ -214,6 +214,7 @@ server: type: ClusterIP grpcPort: 7833 port: 7933 + transport: grpc # grpc or tchannel annotations: {} metrics: annotations: {} From 030e75c81c08aa76b01ec043cf82abc5e03b2107 Mon Sep 17 00:00:00 2001 From: Andras Jaky Date: Tue, 4 Oct 2022 13:38:05 +0200 Subject: [PATCH 4/4] release(Cadence): Helm chart 0.24.0 --- cadence/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cadence/Chart.yaml b/cadence/Chart.yaml index 690d694b..8cc0683e 100644 --- a/cadence/Chart.yaml +++ b/cadence/Chart.yaml @@ -1,5 +1,5 @@ name: cadence -version: 0.23.1 +version: 0.24.0 appVersion: 0.24.0 description: Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way. icon: https://raw.githubusercontent.com/uber/cadence-web/master/client/assets/logo.svg