Skip to content

Commit

Permalink
Release Helm charts 0.4.0 (#55)
Browse files Browse the repository at this point in the history
Co-authored-by: DA Machine <da-machine@digitalasset.com>
  • Loading branch information
githubuser-da and DA Machine authored Sep 1, 2023
1 parent 03f9d82 commit 74bd983
Show file tree
Hide file tree
Showing 25 changed files with 201 additions and 101 deletions.
4 changes: 2 additions & 2 deletions charts/canton-domain/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
apiVersion: v2
name: "canton-domain"
version: 0.3.0
appVersion: 2.7.0
version: 0.4.0
appVersion: 2.7.1
kubeVersion: ">= 1.22.0-0"
description: "A Helm chart for Canton Domains"
home: https://github.com/digital-asset/daml-helm-charts/tree/main/charts/canton-domain
Expand Down
23 changes: 13 additions & 10 deletions charts/canton-domain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ sequencer:
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------ |
| `nameOverride` | String to partially override `common.name` template (will maintain the release name) | `""` |
| `fullnameOverride` | String to fully override `common.fullname` template | `""` |
| `image.registry` | Canton Docker image registry | `digitalasset-docker.jfrog.io` |
| `image.repository` | Canton Docker image repository | `canton-enterprise` |
| `image.tag` | Canton Docker image tag (immutable tags are recommended) | `""` |
| `image.digest` | Canton Docker image digest in the way `sha256:aa...`. If this parameter is set, overrides `image.tag` | `""` |
| `image.pullPolicy` | Canton Docker image pull policy. Allowed values: `Always`, `Never`, `IfNotPresent` | `IfNotPresent` |
| `image.pullSecrets` | Specify Docker registry existing secret names as an array | `[]` |
| `image.registry` | Canton container image registry | `digitalasset-docker.jfrog.io` |
| `image.repository` | Canton container image repository | `canton-enterprise` |
| `image.tag` | Canton container image tag (immutable tags are recommended) | `""` |
| `image.digest` | Canton container image digest in the way `sha256:aa...`. If this parameter is set, overrides `image.tag` | `""` |
| `image.pullPolicy` | Canton container image pull policy. Allowed values: `Always`, `Never`, `IfNotPresent` | `IfNotPresent` |
| `image.pullSecrets` | Specify container registry existing secret names as an array | `[]` |
| `commonLabels` | Add labels to all the deployed resources | `{}` |
| `certManager` | Cert-manager CSI driver defaults | |
| `certManager.duration` | Requested certificates validity period. If empty `""` defaults to `720h` | `87660h` |
Expand Down Expand Up @@ -288,10 +288,10 @@ sequencer:
| `console` | Single console pod for administration/debug of all the other components | |
| `console.enabled` | Enable Deployment | `false` |
| `console.terminationGracePeriodSeconds` | Stop the pod immediately by default, tailing `/dev/null` to stay up | `0` |
| `console.image` | Specific Docker image to be able to start a Canton console. Reusing `image.registry`, `image.pullPolicy` and `image.pullSecrets` | |
| `console.image.repository` | Canton console Docker image repository | `canton-enterprise` |
| `console.image.tag` | Canton console Docker image tag (immutable tags are recommended) | `""` |
| `console.image.digest` | Canton console Docker image digest in the way `sha256:aa...`. If this parameter is set, overrides `image.tag` | `""` |
| `console.image` | Specific container image to be able to start a Canton console. Reusing `image.registry`, `image.pullPolicy` and `image.pullSecrets` | |
| `console.image.repository` | Canton console container image repository | `canton-enterprise` |
| `console.image.tag` | Canton console container image tag (immutable tags are recommended) | `""` |
| `console.image.digest` | Canton console container image digest in the way `sha256:aa...`. If this parameter is set, overrides `image.tag` | `""` |
| `console.environment` | Environment variables (not merged with `common.environment`) | |
| `console.environmentSecrets` | Secret environment variables (not merged with `common.environmentSecrets`) | `{}` |
| `console.environment.JDK_JAVA_OPTIONS` | Java launcher environment variable | `-XX:InitialRAMPercentage=70 -XX:MaxRAMPercentage=70` |
Expand Down Expand Up @@ -406,6 +406,7 @@ sequencer:
| `manager.storage.existingSecret.name` | Name of existing secret with user credentials | `""` |
| `manager.storage.existingSecret.key` | Name of key in existing secret with user password | `""` |
| `manager.storage.maxConnections` | Database connection pool maximum connections | `10` |
| `manager.configOverride` | Raw Canton configuration file `canton { ... }` | `""` |
| `manager.ports.admin` | Admin API container port (gRPC) | `4801` |
| `manager.ports.health` | Health check port for gRPC liveness and readiness probes, not exposed (TLS always disabled) | `4803` |
| `manager.ports.metrics` | Promotheus exporter container port (HTTP) | `8081` |
Expand Down Expand Up @@ -455,6 +456,7 @@ sequencer:
| `mediator.storage.existingSecret.name` | Name of existing secret with user credentials | `""` |
| `mediator.storage.existingSecret.key` | Name of key in existing secret with user password | `""` |
| `mediator.storage.maxConnections` | Database connection pool maximum connections | `10` |
| `mediator.configOverride` | Raw Canton configuration file `canton { ... }` | `""` |
| `mediator.ports.admin` | Admin API container port (gRPC) | `4602` |
| `mediator.ports.health` | Health check port for gRPC liveness and readiness probes, not exposed (TLS always disabled) | `4603` |
| `mediator.ports.metrics` | Promotheus exporter container port (HTTP) | `8081` |
Expand Down Expand Up @@ -504,6 +506,7 @@ sequencer:
| `sequencer.storage.existingSecret.key` | Name of key in existing secret with user password | `""` |
| `sequencer.storage.maxConnections` | Database connection pool maximum connections | `10` |
| `sequencer.config` | Sequencer extra configuration, to use along a custom `sequencer.type` (optional) | `""` |
| `sequencer.configOverride` | Raw Canton configuration file `canton { ... }` | `""` |
| `sequencer.ports.public` | Ledger API container port (gRPC) | `4401` |
| `sequencer.ports.admin` | Admin API container port (gRPC) | `4402` |
| `sequencer.ports.health` | Health check port for gRPC liveness and readiness probes, not exposed (TLS always disabled) | `4403` |
Expand Down
4 changes: 4 additions & 0 deletions charts/canton-domain/templates/_remotes.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ remote-participants {
address = {{ $remoteParticipant.host }}
port = {{ ($remoteParticipant.ports).admin | default 4002 }}
{{- if (($remoteParticipant.tls).admin).enabled }}
{{- if (($remoteParticipant.mtls).admin).enabled }}
{{- include "canton.tls.remote" (list $remoteParticipant.tls.admin $remoteParticipant.mtls.admin) | indent 6 }}
{{- else }}
{{- include "canton.tls.remote" (list $remoteParticipant.tls.admin nil) | indent 6 }}
{{- end }}
{{- end }}
}
}
Expand Down
4 changes: 4 additions & 0 deletions charts/canton-domain/templates/manager/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ data:
{{- include "canton.monitoring" (list . "manager") | nindent 6 }}
}
{{- with .Values.manager.configOverride }}
manager-override.conf: |
{{- . | nindent 4 }}
{{- end }}
9 changes: 9 additions & 0 deletions charts/canton-domain/templates/manager/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ spec:
- "--log-level-canton={{ .Values.common.logLevel.canton }}"
- "--log-level-stdout={{ .Values.common.logLevel.stdout }}"
- "--config=/canton/manager.conf"
{{- if .Values.manager.configOverride }}
- "--config=/canton/manager-override.conf"
{{- end }}
envFrom:
{{- if or .Values.common.environment .Values.manager.environment }}
- configMapRef:
Expand Down Expand Up @@ -121,6 +124,12 @@ spec:
mountPath: /canton/manager.conf
subPath: manager.conf
readOnly: true
{{- if .Values.manager.configOverride }}
- name: config
mountPath: /canton/manager-override.conf
subPath: manager-override.conf
readOnly: true
{{- end }}
{{- if .Values.common.tls.admin.enabled }}
- name: tls-admin
mountPath: "/tls-admin"
Expand Down
4 changes: 4 additions & 0 deletions charts/canton-domain/templates/mediator/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ data:
{{- include "canton.monitoring" (list . "mediator") | nindent 6 }}
}
{{- with .Values.mediator.configOverride }}
mediator-override.conf: |
{{- . | nindent 4 }}
{{- end }}
9 changes: 9 additions & 0 deletions charts/canton-domain/templates/mediator/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ spec:
- "--log-level-canton={{ .Values.common.logLevel.canton }}"
- "--log-level-stdout={{ .Values.common.logLevel.stdout }}"
- "--config=/canton/mediator.conf"
{{- if .Values.mediator.configOverride }}
- "--config=/canton/mediator-override.conf"
{{- end }}
envFrom:
{{- if or .Values.common.environment .Values.mediator.environment }}
- configMapRef:
Expand Down Expand Up @@ -121,6 +124,12 @@ spec:
mountPath: /canton/mediator.conf
subPath: mediator.conf
readOnly: true
{{- if .Values.mediator.configOverride }}
- name: config
mountPath: /canton/mediator-override.conf
subPath: mediator-override.conf
readOnly: true
{{- end }}
{{- if .Values.common.tls.admin.enabled }}
- name: tls-admin
mountPath: "/tls-admin"
Expand Down
4 changes: 4 additions & 0 deletions charts/canton-domain/templates/sequencer/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ data:
{{- include "canton.monitoring" (list . "sequencer") | nindent 6 }}
}
{{- with .Values.sequencer.configOverride }}
sequencer-override.conf: |
{{- . | nindent 4 }}
{{- end }}
9 changes: 9 additions & 0 deletions charts/canton-domain/templates/sequencer/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ spec:
- "--log-level-canton={{ .Values.common.logLevel.canton }}"
- "--log-level-stdout={{ .Values.common.logLevel.stdout }}"
- "--config=/canton/sequencer.conf"
{{- if .Values.sequencer.configOverride }}
- "--config=/canton/sequencer-override.conf"
{{- end }}
envFrom:
{{- if or .Values.common.environment .Values.sequencer.environment }}
- configMapRef:
Expand Down Expand Up @@ -124,6 +127,12 @@ spec:
mountPath: /canton/sequencer.conf
subPath: sequencer.conf
readOnly: true
{{- if .Values.sequencer.configOverride }}
- name: config
mountPath: /canton/sequencer-override.conf
subPath: sequencer-override.conf
readOnly: true
{{- end }}
{{- if .Values.common.tls.public.enabled }}
- name: tls-public
mountPath: "/tls-public"
Expand Down
33 changes: 21 additions & 12 deletions charts/canton-domain/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ nameOverride: ""
##
fullnameOverride: ""

## @param image.registry Canton Docker image registry
## @param image.repository Canton Docker image repository
## @param image.tag Canton Docker image tag (immutable tags are recommended)
## @param image.digest Canton Docker image digest in the way `sha256:aa...`. If this parameter is set, overrides `image.tag`
## @param image.pullPolicy Canton Docker image pull policy. Allowed values: `Always`, `Never`, `IfNotPresent`
## @param image.pullSecrets Specify Docker registry existing secret names as an array
## @param image.registry Canton container image registry
## @param image.repository Canton container image repository
## @param image.tag Canton container image tag (immutable tags are recommended)
## @param image.digest Canton container image digest in the way `sha256:aa...`. If this parameter is set, overrides `image.tag`
## @param image.pullPolicy Canton container image pull policy. Allowed values: `Always`, `Never`, `IfNotPresent`
## @param image.pullSecrets Specify container registry existing secret names as an array
##
image:
## Private Docker image
## Private container image
registry: digitalasset-docker.jfrog.io
repository: canton-enterprise
tag: ""
Expand Down Expand Up @@ -223,13 +223,13 @@ console:
## @param console.terminationGracePeriodSeconds Stop the pod immediately by default, tailing `/dev/null` to stay up
##
terminationGracePeriodSeconds: 0
## @extra console.image Specific Docker image to be able to start a Canton console. Reusing `image.registry`, `image.pullPolicy` and `image.pullSecrets`
## @param console.image.repository Canton console Docker image repository
## @param console.image.tag Canton console Docker image tag (immutable tags are recommended)
## @param console.image.digest Canton console Docker image digest in the way `sha256:aa...`. If this parameter is set, overrides `image.tag`
## @extra console.image Specific container image to be able to start a Canton console. Reusing `image.registry`, `image.pullPolicy` and `image.pullSecrets`
## @param console.image.repository Canton console container image repository
## @param console.image.tag Canton console container image tag (immutable tags are recommended)
## @param console.image.digest Canton console container image digest in the way `sha256:aa...`. If this parameter is set, overrides `image.tag`
##
image:
## Private Docker image
## Private container image
repository: canton-enterprise
tag: ""
digest: ""
Expand Down Expand Up @@ -493,6 +493,9 @@ manager:
## @param manager.storage.maxConnections Database connection pool maximum connections
##
maxConnections: 10
## @param manager.configOverride Raw Canton configuration file `canton { ... }`
##
configOverride: ""
## @param manager.ports.admin Admin API container port (gRPC)
## @param manager.ports.health Health check port for gRPC liveness and readiness probes, not exposed (TLS always disabled)
## @param manager.ports.metrics Promotheus exporter container port (HTTP)
Expand Down Expand Up @@ -627,6 +630,9 @@ mediator:
## @param mediator.storage.maxConnections Database connection pool maximum connections
##
maxConnections: 10
## @param mediator.configOverride Raw Canton configuration file `canton { ... }`
##
configOverride: ""
## @param mediator.ports.admin Admin API container port (gRPC)
## @param mediator.ports.health Health check port for gRPC liveness and readiness probes, not exposed (TLS always disabled)
## @param mediator.ports.metrics Promotheus exporter container port (HTTP)
Expand Down Expand Up @@ -760,6 +766,9 @@ sequencer:
## @param sequencer.config Sequencer extra configuration, to use along a custom `sequencer.type` (optional)
##
config: ""
## @param sequencer.configOverride Raw Canton configuration file `canton { ... }`
##
configOverride: ""
## @param sequencer.ports.public Ledger API container port (gRPC)
## @param sequencer.ports.admin Admin API container port (gRPC)
## @param sequencer.ports.health Health check port for gRPC liveness and readiness probes, not exposed (TLS always disabled)
Expand Down
Loading

0 comments on commit 74bd983

Please sign in to comment.