From 20665137e6902c8f0a84c07c8e66d447d1888de6 Mon Sep 17 00:00:00 2001 From: Jakob Steiner Date: Tue, 15 Oct 2024 12:37:21 +0000 Subject: [PATCH] feat(temporal): switch to chart from upstream repo (#448) --- packages/index.yaml | 2 +- packages/temporal/v1.25.0+1/package.yaml | 2 +- .../v1.25.0+2/.test/config-values.txt | 1 + packages/temporal/v1.25.0+2/package.yaml | 130 ++++++++++++++++++ packages/temporal/versions.yaml | 3 +- 5 files changed, 135 insertions(+), 3 deletions(-) create mode 100644 packages/temporal/v1.25.0+2/.test/config-values.txt create mode 100644 packages/temporal/v1.25.0+2/package.yaml diff --git a/packages/index.yaml b/packages/index.yaml index cc7f93ba..c6005b51 100644 --- a/packages/index.yaml +++ b/packages/index.yaml @@ -126,7 +126,7 @@ packages: name: sealed-secrets shortDescription: A Kubernetes controller and tool for one-way encrypted Secrets - iconUrl: https://temporal.io/favicon.svg - latestVersion: v1.25.0+1 + latestVersion: v1.25.0+2 name: temporal scope: Namespaced - iconUrl: https://avatars.githubusercontent.com/u/47359 diff --git a/packages/temporal/v1.25.0+1/package.yaml b/packages/temporal/v1.25.0+1/package.yaml index 8a61bbf6..ebdbf9a8 100644 --- a/packages/temporal/v1.25.0+1/package.yaml +++ b/packages/temporal/v1.25.0+1/package.yaml @@ -97,7 +97,7 @@ valueDefinitions: - chartName: temporal patch: op: replace - path: /server/config/defaultNamespaces/namespaces/0/retention + path: /server/config/defaultNamespaces/namespace/0/retention transformations: - source: path: "{ $.metadata.name }" diff --git a/packages/temporal/v1.25.0+2/.test/config-values.txt b/packages/temporal/v1.25.0+2/.test/config-values.txt new file mode 100644 index 00000000..ac86c7b6 --- /dev/null +++ b/packages/temporal/v1.25.0+2/.test/config-values.txt @@ -0,0 +1 @@ +"temporal" --value "defaultNamespace=default" diff --git a/packages/temporal/v1.25.0+2/package.yaml b/packages/temporal/v1.25.0+2/package.yaml new file mode 100644 index 00000000..fdf01e3d --- /dev/null +++ b/packages/temporal/v1.25.0+2/package.yaml @@ -0,0 +1,130 @@ +# yaml-language-server: $schema=https://glasskube.dev/schemas/v1/package-manifest.json + +name: temporal +scope: Namespaced +defaultNamespace: default +iconUrl: https://temporal.io/favicon.svg +helm: + repositoryUrl: https://go.temporal.io/helm-charts + chartName: temporal + chartVersion: "0.47.0" + values: + server: + config: + persistence: + default: + driver: "sql" + sql: + driver: "postgres12" + host: temporal-db-rw + port: 5432 + database: temporal + user: postgres + existingSecret: temporal-db-superuser + maxConns: 20 + maxConnLifetime: "1h" + visibility: + driver: "sql" + sql: + driver: "postgres12" + host: temporal-db-rw + port: 5432 + database: temporal_visibility + user: postgres + existingSecret: temporal-db-superuser + maxConns: 20 + maxConnLifetime: "1h" + namespaces: + enabled: true + namespace: + - name: default + retention: 3d + cassandra: + enabled: false + mysql: + enabled: false + postgresql: + enabled: true + prometheus: + enabled: false + grafana: + enabled: false + elasticsearch: + enabled: false + schema: + createDatabase: + enabled: true + setup: + enabled: true + update: + enabled: true +components: + - name: postgresql + installedName: db + values: + enableSuperuserAccess: + value: "true" + databaseName: + value: "temporal" + storageSize: + value: "10Gi" +valueDefinitions: + defaultNamespace: + type: text + metadata: + label: Default Namespace + description: Leave empty to skip namespace creation + defaultValue: default + targets: + - chartName: temporal + patch: + op: replace + path: /server/config/namespaces/namespace/0/name + - chartName: temporal + patch: + op: replace + path: /server/config/namespaces/enabled + valueTemplate: |- + {{ if . }}true{{ else }}false{{ end }} + defaultNamespaceRetention: + type: text + metadata: + label: Retention of the Default Namespace + description: Only takes effect if defaultNamespace is set + defaultValue: 3d + targets: + - chartName: temporal + patch: + op: replace + path: /server/config/namespaces/namespace/0/retention +transformations: + - source: + path: "{ $.metadata.name }" + targets: + - chartName: temporal + valueTemplate: '"{{.}}-db-cluster-superuser"' + patch: + op: add + path: /server/config/persistence/default/sql/existingSecret + - chartName: temporal + valueTemplate: '"{{.}}-db-cluster-superuser"' + patch: + op: add + path: /server/config/persistence/visibility/sql/existingSecret + - chartName: temporal + valueTemplate: '"{{.}}-db-cluster-rw"' + patch: + op: add + path: /server/config/persistence/default/sql/host + - chartName: temporal + valueTemplate: '"{{.}}-db-cluster-rw"' + patch: + op: add + path: /server/config/persistence/visibility/sql/host +references: + - label: Website + url: https://temporal.io/ +entrypoints: + - serviceName: temporal-web + port: 8080 + localPort: 8448 diff --git a/packages/temporal/versions.yaml b/packages/temporal/versions.yaml index 264710af..0346b510 100644 --- a/packages/temporal/versions.yaml +++ b/packages/temporal/versions.yaml @@ -1,3 +1,4 @@ -latestVersion: v1.25.0+1 +latestVersion: v1.25.0+2 versions: - version: v1.25.0+1 + - version: v1.25.0+2