From 3584b0f204b553788a8963a2aefb1d1ff8a9139f Mon Sep 17 00:00:00 2001 From: Daniel Garcia Rico Date: Thu, 5 Nov 2026 22:49:17 +0000 Subject: [PATCH] Release: codetogether-ai chart 0.2.3 and live chart 1.4.26 Brings main to dev's content (81657a3..31c6d20 and #215). main and dev diverged at #207 and earlier releases reached main as squashes, so a dev -> main merge conflicts in charts/ai. This commit takes dev's version of every file that differs. - codetogether-ai 0.2.3: optional Gateway API ListenerSet (#222), render-time guard (#224), appVersion 1.2.8616 (#225) - live 1.4.26: immutable standalone Live images (AITRAX-581, #215) - helm-template-check workflow from dev Co-Authored-By: Claude Opus 5.5 --- .github/workflows/helm-template-check.yml | 27 ++++++++++ charts/ai/Chart.yaml | 4 +- charts/ai/README.md | 64 +++++++++++++++++++++-- charts/ai/templates/NOTES.txt | 8 +++ charts/ai/templates/_helpers.tpl | 24 +++++++++ charts/ai/templates/httproute.yaml | 6 +-- charts/ai/templates/listenerset.yaml | 42 +++++++++++++++ charts/ai/values.yaml | 20 +++++++ charts/live/Chart.yaml | 2 +- charts/live/README.md | 5 +- charts/live/templates/_helpers.tpl | 11 +++- charts/live/templates/deployment.yaml | 33 ++++++------ charts/live/templates/secret-coturn.yaml | 2 + charts/live/templates/service.yaml | 4 +- charts/live/values.yaml | 25 +++++---- 15 files changed, 235 insertions(+), 42 deletions(-) create mode 100644 charts/ai/templates/listenerset.yaml diff --git a/.github/workflows/helm-template-check.yml b/.github/workflows/helm-template-check.yml index b83701a..f1e6b86 100644 --- a/.github/workflows/helm-template-check.yml +++ b/.github/workflows/helm-template-check.yml @@ -51,6 +51,33 @@ jobs: --set 'gateway.parentRefs[0].namespace=gateway-system' \ --api-versions gateway.networking.k8s.io/v1/HTTPRoute \ --api-versions gateway.nginx.org/v1alpha1/ClientSettingsPolicy + # ListenerSet on a shared Gateway; the HTTPRoute attaches to it + helm template test ./charts/ai \ + --set-file ctaiPropertiesFile=./charts/ai/ctai-configuration.properties.template \ + --set service.fqdn=https://example.codetogether.io \ + --set imageCredentials.username=test \ + --set imageCredentials.password=test \ + --set ingress.enabled=false \ + --set gateway.enabled=true \ + --set gateway.listenerSet.enabled=true \ + --set gateway.listenerSet.parentRef.name=shared-gateway \ + --set gateway.listenerSet.parentRef.namespace=gateway-system \ + --api-versions gateway.networking.k8s.io/v1/HTTPRoute \ + --api-versions gateway.networking.k8s.io/v1/ListenerSet \ + > /tmp/listenerset.yaml + grep -q '^kind: ListenerSet$' /tmp/listenerset.yaml + grep -q 'kind: ListenerSet$' <(sed -n '/^kind: HTTPRoute$/,/^---/p' /tmp/listenerset.yaml) + # listenerSet without gateway.enabled must fail instead of rendering nothing + if helm template test ./charts/ai \ + --set-file ctaiPropertiesFile=./charts/ai/ctai-configuration.properties.template \ + --set service.fqdn=https://example.codetogether.io \ + --set imageCredentials.username=test \ + --set imageCredentials.password=test \ + --set gateway.listenerSet.enabled=true \ + --set gateway.listenerSet.parentRef.name=shared-gateway > /tmp/ls-no-gw.out 2>&1; then + echo "listenerSet without gateway.enabled rendered" >&2; exit 1 + fi + grep -q 'requires gateway.enabled=true' /tmp/ls-no-gw.out # helm upgrade --reuse-values from a chart without `gateway` drops the key helm template test ./charts/ai \ --set-file ctaiPropertiesFile=./charts/ai/ctai-configuration.properties.template \ diff --git a/charts/ai/Chart.yaml b/charts/ai/Chart.yaml index 1aff94b..aa3b426 100644 --- a/charts/ai/Chart.yaml +++ b/charts/ai/Chart.yaml @@ -3,8 +3,8 @@ name: codetogether-ai description: CodeTogether AI on-premises Kubernetes deployment type: application -version: 0.2.2 -appVersion: "1.2.8165" +version: 0.2.3 +appVersion: "1.2.8616" icon: https://www.codetogether.com/wp-content/uploads/2020/02/codetogether-circle-128.png home: https://www.codetogether.com diff --git a/charts/ai/README.md b/charts/ai/README.md index 7acccaa..92685be 100644 --- a/charts/ai/README.md +++ b/charts/ai/README.md @@ -190,8 +190,59 @@ The chart renders: rendered only when the cluster serves that API. For another Gateway API implementation, set the equivalent limit on your side. -The chart doesn't create the `Gateway`, its listeners or certificates. On the -Gateway side, check that: +#### ListenerSet: your own listener on a shared Gateway + +Instead of adding a listener to the shared `Gateway` for this host, the chart +can create a `ListenerSet` (`gateway.networking.k8s.io/v1`, Gateway API v1.5+) +that adds the HTTPS listener for the `service_fqdn` host, with its certificate, +from the release namespace. The `HTTPRoute` then attaches to that ListenerSet, so leave +`gateway.parentRefs` empty: + +```yaml +ingress: + enabled: false +gateway: + enabled: true + listenerSet: + enabled: true + parentRef: + name: gateway-ngf # the shared Gateway + namespace: kube-system + # The listener's hostname is the service_fqdn host. The certificate Secret + # defaults to -tls; set listenerSet.tlsSecretName to change it. + annotations: + cert-manager.io/cluster-issuer: cert-manager-clusterissuer +``` + +The shared Gateway has to accept ListenerSets from the release namespace +(`spec.allowedListeners.namespaces`). With a cert-manager version that supports +ListenerSets, the issuer annotation on the ListenerSet issues the certificate +into that Secret; otherwise create the Secret yourself. On cert-manager v1.21 +that support is off by default; enable it in the cert-manager chart values: + +```yaml +config: + apiVersion: controller.config.cert-manager.io/v1alpha1 + kind: ControllerConfiguration + enableGatewayAPI: true + enableGatewayAPIListenerSet: true +featureGates: ListenerSets=true +``` + +Without it, cert-manager logs `skipping disabled controller ... listenerset` and +no certificate is issued. + +If you already applied a ListenerSet with the same name by hand, Helm refuses to +take it over. Let Helm adopt it before the upgrade: + +```bash +kubectl -n label listenerset app.kubernetes.io/managed-by=Helm +kubectl -n annotate listenerset \ + meta.helm.sh/release-name= meta.helm.sh/release-namespace= +``` + +The chart doesn't create the `Gateway`, and without a ListenerSet it doesn't +create listeners or certificates either. On the Gateway side, check that: - the listener allows routes from the release namespace (`allowedRoutes.namespaces`); @@ -244,10 +295,15 @@ The following table lists the primary configurable parameters and defaults. | `ingress.annotations` | Ingress annotations | `nginx.ingress.kubernetes.io/proxy-body-size: "16m"` | | `ingress.tls.secretName` | TLS Secret for Ingress | `codetogether-ai-tls` | | `gateway.enabled` | Create a Gateway API `HTTPRoute` | `false` | -| `gateway.parentRefs` | Gateway(s) the `HTTPRoute` attaches to; required when enabled | `[]` | -| `gateway.annotations` / `gateway.labels` | Extra `HTTPRoute` metadata | `{}` | +| `gateway.parentRefs` | Gateway(s) the `HTTPRoute` attaches to; required when enabled unless `gateway.listenerSet.enabled` | `[]` | +| `gateway.annotations` / `gateway.labels` | Extra `HTTPRoute` metadata (`labels` also go on the `ListenerSet`) | `{}` | | `gateway.nginxGatewayFabric.clientSettingsPolicy.enabled` | NGINX Gateway Fabric body-size policy: `auto`, `true` or `false` | `auto` | | `gateway.nginxGatewayFabric.clientSettingsPolicy.bodyMaxSize` | Request body limit on the Gateway | `16m` | +| `gateway.listenerSet.enabled` | Create a `ListenerSet` with this release's HTTPS listener; the `HTTPRoute` attaches to it when `gateway.parentRefs` is empty. Requires `gateway.enabled=true` | `false` | +| `gateway.listenerSet.parentRef` | The shared Gateway (`name`, `namespace`); required when enabled | `{}` | +| `gateway.listenerSet.listenerName` / `port` | Listener name (the route's `sectionName`) and port | `https` / `443` | +| `gateway.listenerSet.tlsSecretName` | TLS Secret for the listener | `-tls` | +| `gateway.listenerSet.annotations` | `ListenerSet` annotations (e.g. the cert-manager issuer); labels come from `gateway.labels` | `{}` | | `clientIp.trustedProxyHops` | Proxies in front of the pod that append to `X-Forwarded-For` | `2` | | `serviceAccount.create` | Create a ServiceAccount | `true` | | `serviceAccount.name` | ServiceAccount name | `codetogether-ai` | diff --git a/charts/ai/templates/NOTES.txt b/charts/ai/templates/NOTES.txt index dd67c9e..92bc7b7 100644 --- a/charts/ai/templates/NOTES.txt +++ b/charts/ai/templates/NOTES.txt @@ -45,6 +45,14 @@ Gateway API: {{- with .sectionName }}{{ $p = printf "%s listener %s" $p . }}{{ end }} {{- $parents = append $parents $p }} {{- end }} + {{- if eq (include "ctai.listenerSetEnabled" .) "true" }} + {{- $lsParent := $gw.listenerSet.parentRef }} + ListenerSet {{ include "ctai.fullname" . }} adds an HTTPS listener to Gateway {{ $lsParent.name }}{{ with $lsParent.namespace }} (namespace {{ . }}){{ end }}. + Check it was accepted: kubectl get listenerset {{ include "ctai.fullname" . }} -n {{ .Release.Namespace }} -o jsonpath='{.status.conditions}' + {{- if not $parents }} + {{- $parents = list (printf "ListenerSet %s listener %s" (include "ctai.fullname" .) ($gw.listenerSet.listenerName | default "https")) }} + {{- end }} + {{- end }} HTTPRoute {{ include "ctai.fullname" . }} attaches to: {{ join ", " $parents }} Check it was accepted: kubectl get httproute {{ include "ctai.fullname" . }} -n {{ .Release.Namespace }} -o jsonpath='{.status.parents[*].conditions}' {{- if eq (include "ctai.renderClientSettingsPolicy" .) "true" }} diff --git a/charts/ai/templates/_helpers.tpl b/charts/ai/templates/_helpers.tpl index 4c2dde4..bdac465 100644 --- a/charts/ai/templates/_helpers.tpl +++ b/charts/ai/templates/_helpers.tpl @@ -297,3 +297,27 @@ from a chart without `gateway` keeps the old values and skips these defaults. {{- define "ctai.clientSettingsBodyMaxSize" -}} {{- (((.Values.gateway | default dict).nginxGatewayFabric | default dict).clientSettingsPolicy | default dict).bodyMaxSize | default "16m" -}} {{- end }} + +{{/* +ListenerSet settings, read defensively like the rest of `gateway`. +*/}} +{{- define "ctai.listenerSetEnabled" -}} +{{- $gw := .Values.gateway | default dict -}} +{{- if and $gw.enabled ($gw.listenerSet | default dict).enabled -}}true{{- end -}} +{{- end }} + +{{/* +HTTPRoute parentRefs: gateway.parentRefs when set; otherwise the chart's +ListenerSet and its listener. +*/}} +{{- define "ctai.routeParentRefs" -}} +{{- $gw := .Values.gateway | default dict -}} +{{- if $gw.parentRefs -}} +{{- toYaml $gw.parentRefs -}} +{{- else if eq (include "ctai.listenerSetEnabled" .) "true" -}} +- group: gateway.networking.k8s.io + kind: ListenerSet + name: {{ include "ctai.fullname" . }} + sectionName: {{ ($gw.listenerSet | default dict).listenerName | default "https" }} +{{- end -}} +{{- end }} diff --git a/charts/ai/templates/httproute.yaml b/charts/ai/templates/httproute.yaml index e8232a5..82a3f11 100644 --- a/charts/ai/templates/httproute.yaml +++ b/charts/ai/templates/httproute.yaml @@ -1,7 +1,7 @@ {{- $gw := .Values.gateway | default dict }} {{- if $gw.enabled }} -{{- if not $gw.parentRefs }} -{{- fail "gateway.enabled=true requires gateway.parentRefs: the Gateway (name, and namespace/sectionName if needed) the HTTPRoute attaches to." }} +{{- if not (include "ctai.routeParentRefs" .) }} +{{- fail "gateway.enabled=true requires gateway.parentRefs (the Gateway, and namespace/sectionName if needed, the HTTPRoute attaches to) or gateway.listenerSet.enabled=true." }} {{- end }} {{- if not (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1/HTTPRoute") }} {{- fail "gateway.enabled=true but the cluster does not serve gateway.networking.k8s.io/v1 HTTPRoute. Install the Gateway API CRDs (or pass --api-versions gateway.networking.k8s.io/v1/HTTPRoute to helm template)." }} @@ -22,7 +22,7 @@ metadata: {{- end }} spec: parentRefs: - {{- toYaml $gw.parentRefs | nindent 4 }} + {{- include "ctai.routeParentRefs" . | nindent 4 }} hostnames: - {{ include "ctai.routeHostname" . | quote }} rules: diff --git a/charts/ai/templates/listenerset.yaml b/charts/ai/templates/listenerset.yaml new file mode 100644 index 0000000..0c9b9c1 --- /dev/null +++ b/charts/ai/templates/listenerset.yaml @@ -0,0 +1,42 @@ +{{- $gwValues := .Values.gateway | default dict }} +{{- if and ($gwValues.listenerSet | default dict).enabled (not $gwValues.enabled) }} +{{- fail "gateway.listenerSet.enabled=true requires gateway.enabled=true: the ListenerSet carries the HTTPRoute's listener, and without the HTTPRoute nothing is rendered." }} +{{- end }} +{{- if eq (include "ctai.listenerSetEnabled" .) "true" }} +{{- $ls := .Values.gateway.listenerSet }} +{{- $parent := $ls.parentRef | default dict }} +{{- if not $parent.name }} +{{- fail "gateway.listenerSet.enabled=true requires gateway.listenerSet.parentRef.name: the Gateway the ListenerSet adds a listener to." }} +{{- end }} +{{- if not (.Capabilities.APIVersions.Has "gateway.networking.k8s.io/v1/ListenerSet") }} +{{- fail "gateway.listenerSet.enabled=true but the cluster does not serve gateway.networking.k8s.io/v1 ListenerSet. Install Gateway API v1.5+ standard CRDs (or pass --api-versions gateway.networking.k8s.io/v1/ListenerSet to helm template)." }} +{{- end }} +# HTTPS listener for this release on the shared Gateway {{ $parent.name }}. With a +# cert-manager.io/(cluster-)issuer annotation, cert-manager issues the +# certificate into the Secret named below. +apiVersion: gateway.networking.k8s.io/v1 +kind: ListenerSet +metadata: + name: {{ include "ctai.fullname" . }} + labels: + {{- include "ctai.labels" . | nindent 4 }} + {{- with (.Values.gateway.labels) }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with $ls.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + parentRef: + {{- toYaml $parent | nindent 4 }} + listeners: + - name: {{ $ls.listenerName | default "https" }} + hostname: {{ include "ctai.routeHostname" . | quote }} + port: {{ $ls.port | default 443 }} + protocol: HTTPS + tls: + mode: Terminate + certificateRefs: + - name: {{ $ls.tlsSecretName | default (printf "%s-tls" (include "ctai.fullname" .)) }} +{{- end }} diff --git a/charts/ai/values.yaml b/charts/ai/values.yaml index 4f9f431..3500d75 100644 --- a/charts/ai/values.yaml +++ b/charts/ai/values.yaml @@ -106,6 +106,26 @@ gateway: # false: never render (another Gateway API implementation) enabled: auto bodyMaxSize: "16m" + # Optional ListenerSet (gateway.networking.k8s.io/v1): adds this release's + # HTTPS listener (the service_fqdn host and its certificate) to a shared Gateway, so the + # shared Gateway doesn't need a listener edited for each application. The + # Gateway must allow it (spec.allowedListeners). When enabled and parentRefs + # is empty, the HTTPRoute attaches to this ListenerSet. + listenerSet: + enabled: false + # The Gateway this ListenerSet adds a listener to. Required when enabled. + # Example: + # parentRef: + # name: gateway-ngf + # namespace: kube-system + parentRef: {} + listenerName: https + port: 443 + # cert-manager reads these (cert-manager.io/cluster-issuer or + # cert-manager.io/issuer) and issues the certificate into tlsSecretName. + annotations: {} + # TLS Secret in the release namespace. Defaults to -tls. + tlsSecretName: "" # Client address handling (X-Forwarded-For trust). # diff --git a/charts/live/Chart.yaml b/charts/live/Chart.yaml index ae1963b..d1f657f 100644 --- a/charts/live/Chart.yaml +++ b/charts/live/Chart.yaml @@ -3,7 +3,7 @@ name: codetogether description: CodeTogether Live provides pair programming and collaborative coding type: application -version: 1.4.25 +version: 1.4.26 appVersion: "2024.2.0" icon: https://www.codetogether.com/wp-content/uploads/2020/02/codetogether-circle-128.png diff --git a/charts/live/README.md b/charts/live/README.md index b8cbf31..e1b5f0b 100644 --- a/charts/live/README.md +++ b/charts/live/README.md @@ -1,8 +1,8 @@ # README.md Helm Chart for CodeTogether Live # CodeTogether Live Chart (Legacy) -> **⚠️ Legacy Chart** -> This chart is now considered legacy and is not longer supported, is not recommended for new deployments. +> **⚠️ Legacy Chart** +> This chart is considered legacy, is no longer supported, and is not recommended for new deployments. ## Summary This chart creates a CodeTogether Live server deployment on a Kubernetes cluster using the Helm package manager. @@ -25,6 +25,7 @@ The following table lists configurable parameters of the CodeTogether Live chart | `image.repository` | Docker image repository for CodeTogether Live | `codetogether/codetogether` | | `image.pullPolicy` | Container image pull policy | `Always` | | `image.tag` | Tag for the CodeTogether Live image | `latest` | +| `image.digest` | Optional immutable image digest; takes precedence over `image.tag` | `""` | | `imageCredentials.enabled` | Enables authentication for private Docker registry | `false` | | `imageCredentials.registry` | Docker registry URL | `hub.edge.codetogether.com` | | `imageCredentials.username` | Docker registry username | `my-customer-username` | diff --git a/charts/live/templates/_helpers.tpl b/charts/live/templates/_helpers.tpl index d257964..9adb601 100644 --- a/charts/live/templates/_helpers.tpl +++ b/charts/live/templates/_helpers.tpl @@ -23,6 +23,15 @@ If release name contains chart name it will be used as a full name. {{- end }} {{- end }} +{{/* +Return true when A/V is enabled for a supported Live deployment mode. +*/}} +{{- define "codetogether.avEnabled" -}} +{{- if and .Values.av.enabled (or (eq .Values.codetogether.mode "direct") (eq .Values.codetogether.mode "locator-edge")) -}} +true +{{- end -}} +{{- end }} + {{/* Create chart name and version as used by the chart label. */}} @@ -94,4 +103,4 @@ Get Proxy secret name {{- printf "%s-proxy-secret" $fullName }} {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/live/templates/deployment.yaml b/charts/live/templates/deployment.yaml index e9d0e09..55ed802 100644 --- a/charts/live/templates/deployment.yaml +++ b/charts/live/templates/deployment.yaml @@ -11,7 +11,9 @@ spec: template: metadata: annotations: + {{- if and (include "codetogether.avEnabled" .) .Values.av.stunServers.enabled }} checksum/coturn: {{ include (print $.Template.BasePath "/secret-coturn.yaml") . | sha256sum }} + {{- end }} checksum/dashboard: {{ include (print $.Template.BasePath "/secret-dashboard.yaml") . | sha256sum }} checksum/license: {{ include (print $.Template.BasePath "/secret-license.yaml") . | sha256sum }} checksum/sso: {{ include (print $.Template.BasePath "/secret-sso.yaml") . | sha256sum }} @@ -34,13 +36,17 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} + {{- if .Values.image.digest }} + image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}" + {{- else }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + {{- end }} imagePullPolicy: {{ .Values.image.pullPolicy }} env: # # Set CodeTogether runtime configuration - # + # - name: CT_SERVER_URL value: {{ .Values.codetogether.url | quote }} - name: CT_TRUST_ALL_CERTS @@ -50,7 +56,7 @@ spec: - name: CT_LOCATOR value: "none" - name: CT_PROMETHEUS_ENABLED - value: {{ .Values.direct.metrics.prometheusEnabled | quote }} + value: {{ .Values.direct.metrics.prometheusEnabled | quote }} {{- if .Values.direct.metrics.statsdEnabled }} - name: CT_METRICS_STATSD_HOST value: {{ .Values.direct.metrics.statsdHost | quote }} @@ -99,21 +105,16 @@ spec: value: {{ .Values.locatorEdge.locator | quote }} - name: CT_REGION value: {{ .Values.locatorEdge.region | quote }} - {{- end }} + {{- end }} - {{- if or (eq .Values.codetogether.mode "direct") (eq .Values.codetogether.mode "locator-edge") }} - name: CT_AV_ENABLED - value: {{ .Values.av.enabled | quote }} - {{- if .Values.av.enabled }} + value: {{ include "codetogether.avEnabled" . | default "false" | quote }} + {{- if include "codetogether.avEnabled" . }} - name: CT_AV_LAN_IP value: {{ .Values.av.serverIP | quote }} {{- end }} - {{- else }} - - name: CT_AV_ENABLED - value: "false" - {{- end }} - {{- if .Values.av.stunServers.enabled }} + {{- if and (include "codetogether.avEnabled" .) .Values.av.stunServers.enabled }} - name: CT_AV_COTURN_SERVER value: {{ .Values.av.stunServers.server | quote }} - name: CT_AV_COTURN_SECRET @@ -123,7 +124,7 @@ spec: key: secret {{- end }} - {{- if and .Values.av.jitsiUrl (ne .Values.av.jitsiUrl "") }} + {{- if and (include "codetogether.avEnabled" .) .Values.av.jitsiUrl (ne .Values.av.jitsiUrl "") }} - name: CT_JITSI_URL value: {{ .Values.av.jitsiUrl | quote }} {{- end }} @@ -227,14 +228,14 @@ spec: subPath: favicon.ico {{- end }} - # + # # Set container configuration # ports: - name: http containerPort: 1080 protocol: TCP - {{- if .Values.av.enabled }} + {{- if include "codetogether.avEnabled" . }} - name: av-tcp containerPort: 4443 protocol: TCP @@ -242,7 +243,7 @@ spec: containerPort: 10000 protocol: UDP {{- end }} - + livenessProbe: initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.livenessProbe.periodSeconds }} @@ -252,7 +253,7 @@ spec: httpGet: path: /ct-health/ port: http - + readinessProbe: initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.readinessProbe.periodSeconds }} diff --git a/charts/live/templates/secret-coturn.yaml b/charts/live/templates/secret-coturn.yaml index bb76d21..3b4cdd1 100644 --- a/charts/live/templates/secret-coturn.yaml +++ b/charts/live/templates/secret-coturn.yaml @@ -1,3 +1,4 @@ +{{- if and (include "codetogether.avEnabled" .) .Values.av.stunServers.enabled }} apiVersion: v1 kind: Secret metadata: @@ -7,3 +8,4 @@ metadata: type: Opaque data: secret: {{ .Values.av.stunServers.secret | b64enc | quote }} +{{- end }} diff --git a/charts/live/templates/service.yaml b/charts/live/templates/service.yaml index 8e03a44..0081f2e 100644 --- a/charts/live/templates/service.yaml +++ b/charts/live/templates/service.yaml @@ -10,8 +10,8 @@ spec: - port: {{ .Values.service.port }} targetPort: http protocol: TCP - name: http - {{- if .Values.av.enabled }} + name: http + {{- if include "codetogether.avEnabled" . }} - port: 4443 targetPort: av-tcp protocol: TCP diff --git a/charts/live/values.yaml b/charts/live/values.yaml index 81d0f45..b1ab9ed 100644 --- a/charts/live/values.yaml +++ b/charts/live/values.yaml @@ -18,6 +18,9 @@ image: pullPolicy: Always # Overrides the image tag whose default is the chart appVersion. tag: "latest" + # Optional immutable image digest (sha256:...). When set, digest takes + # precedence over tag. + digest: "" # # Configure the source location for the Docker image, using the @@ -74,7 +77,7 @@ codetogether: # # Configure if CodeTogether is running in 'direct' mode. # -direct: +direct: # When running in 'direct' mode, integration with StatsD or Prometheus can be # enabled in the Docker file. For Locator deployments, configure dynamically # on the locator's Dashboard. @@ -97,7 +100,7 @@ locatorCentral: port: 3306 schema: "codetogether" # Supported values: 'mysql' or 'postgres' - dialect: "mysql" + dialect: "mysql" user: "my-db-username" password: "my-db-password" # Optionally enable SSL security to database @@ -110,14 +113,14 @@ locatorCentral: # sslKey: "my-db-ssl-key-base64-encoded" # sslCA: "my-db-ssl-certificate-authority-base64-encoded" # sslCert: "my-db-ssl-certificate-base64-encoded" - + # # Configure if CodeTogether is running in 'locator-edge' mode. # locatorEdge: # URL that the Locator is listening on. locator: "https://codetogether.locator" - # Optional region which can have CIDR IP address regions assigned to + # Optional region which can have CIDR IP address regions assigned to # allowing regional routing of requests. Only enable if deploying # CodeTogether to multiple regional data centers. region: "default" @@ -157,7 +160,7 @@ ingress: # # CodeTogether has a dashboard to view metrics, and for the locator, update # configuration on the fly. If a custom username and password is not enabled, -# one will be dynamically generated and shared in the log when the server +# one will be dynamically generated and shared in the log when the server # starts up. Accessed at https://url/dashboard. # dashboard: @@ -165,7 +168,7 @@ dashboard: enabled: false username: "my-dashboard-username" password: "my-dashboard-password" - # Name of existing secret to use for Dashboard credentials. If specfied, + # Name of existing secret to use for Dashboard credentials. If specified, # then dashboard.username and dashboard.password will be ignored and picked up from this secret. # existingSecret: "" @@ -175,17 +178,17 @@ dashboard: # av: enabled: false - # If auto, will attempt lookup of the IP address of the server. If the + # If auto, will attempt lookup of the IP address of the server. If the # container fails to start, IP address can be manually configured. serverIP: "auto" # Optional - If you want to use your own STUN servers, set this to 'true' # and specify separated by a comma ','. - stunServers: + stunServers: enabled: false server: "coturn.example.com" secret: "my-secret" - # Optional - Jitsi Settings for locator edge servers with locator or extenral jitsi meet server - # jitsiUrl: "https://your.jtsi.server" + # Optional - Jitsi settings for locator edge servers with locator or external Jitsi Meet server + # jitsiUrl: "https://your.jitsi.server" # # Optionally enable integration with your SSO Provider. If using SSO, this @@ -251,7 +254,7 @@ proxy: enabled: false # Proxy URI format, omit credentials if unauthenticated: # http://myuser:mypassword@myproxyhost.com:port - # Note: At this point only HTTP proxy is supported. Additionally, + # Note: At this point only HTTP proxy is supported. Additionally, # if you are using special characters in the password, please verify escaping. uri: "" # Name of existing secret to use for proxy URI. If specified,