Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
ci(release): publish the hosted-controller image with each release (#754)
Louis Amaudruz1973d383735f
diff --git a/.github/workflows/switch-release.yml b/.github/workflows/switch-release.ymlindex f07c25cb8..0e071e8d3 100644--- a/.github/workflows/switch-release.yml+++ b/.github/workflows/switch-release.yml@@ -1,8 +1,9 @@name: switch release-# Builds and publishes the Switch core stack — the switch-core, gateway, and-# setup container images, the Helm chart, and the standalone Docker Compose file-# (as an OCI artifact) — so adopters can deploy without building from source.+# Builds and publishes the Switch core stack — the switch-core, gateway, setup+# and hosted-controller container images, the Helm chart, and the standalone+# Docker Compose file (as an OCI artifact) — so adopters can deploy without+# building from source.# See RELEASING.md for the full procedure.## Trigger by pushing a tag like `switch-v0.2.0` (the version after `switch-v`@@ -130,11 +131,18 @@ jobs:matrix:include:- image: switch-core+ context: .dockerfile: deploy/shared_resources/images/Dockerfile.switch- image: gateway+ context: .dockerfile: deploy/shared_resources/images/Dockerfile.gateway- image: setup+ context: .dockerfile: deploy/shared_resources/images/Dockerfile.setup+ # The service that launches Switch cloud machines (deploy/hosted).+ - image: hosted-controller+ context: deploy/hosted/controller+ dockerfile: deploy/hosted/controller/Dockerfilesteps:- name: Checkoutuses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0@@ -175,8 +183,7 @@ jobs:- name: Build and pushuses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2with:- # All three Dockerfiles build with the repo root as context.- context: .+ context: ${{ matrix.context }}file: ${{ matrix.dockerfile }}platforms: linux/amd64,linux/arm64push: ${{ needs.prep.outputs.push == 'true' }}diff --git a/RELEASING.md b/RELEASING.mdindex 7e19f361c..ff9e31f97 100644--- a/RELEASING.md+++ b/RELEASING.md@@ -1,8 +1,8 @@# Releasing SwitchThis describes how to cut a release of the **Switch core stack** — the-`switch-core`, `gateway`, and `setup` container images, the Helm chart, and the-standalone Docker Compose file. The Switch Console desktop app releases separately+`switch-core`, `gateway`, `setup` and `hosted-controller` container images, the+Helm chart, and the standalone Docker Compose file. The Switch Console desktop app releases separately(see `.github/workflows/switch-console-release.yml` and `console/docs/INSTALL.md`).## Versioning@@ -10,7 +10,7 @@ standalone Docker Compose file. The Switch Console desktop app releases separate- Switch follows [Semantic Versioning](https://semver.org): `MAJOR.MINOR.PATCH`.Every artifact carries three parts and a changelog, without exception.- The canonical `switch-core` version is `version` in `core/pyproject.toml`.-- The Helm chart, the three images, and the standalone compose artifact are+- The Helm chart, the four images, and the standalone compose artifact arepublished under the **same** version as the git tag, so a single tag pins thewhole stack.@@ -22,8 +22,9 @@ Never derive one from the other.### What is, and is not, separately versioned-The **operator dashboard** (`gateway/`), the **setup image**, the **Helm chart**,-and the **standalone compose artifact** have no version of their own. They ship+The **operator dashboard** (`gateway/`), the **setup image**, the+**hosted-controller image**, the **Helm chart**, and the **standalone compose+artifact** have no version of their own. They shipinside the switch-core release and are stamped with its version at package time,which is what lets a single tag pin the whole stack. They appear in`artifacts.yaml` with `version_from: switch-core` — listed, because a registrydiff --git a/artifacts.yaml b/artifacts.yamlindex 79f7ea373..c133f8d03 100644--- a/artifacts.yaml+++ b/artifacts.yaml@@ -108,6 +108,11 @@ artifacts:version_from: switch-corepublished_as: setup+ hosted-controller:+ description: The service that launches and stops Switch cloud machines.+ version_from: switch-core+ published_as: hosted-controller+helm-chart:description: >-The Kubernetes chart. Its values.yaml is a consumer-facing interface —diff --git a/console/packages/shared/src/artifacts.ts b/console/packages/shared/src/artifacts.tsindex 4fba00fe4..a49088489 100644--- a/console/packages/shared/src/artifacts.ts+++ b/console/packages/shared/src/artifacts.ts@@ -26,6 +26,7 @@ export const ARTIFACT_VERSIONS = {sidecar: '1.9.12',gateway: '0.29.0',setup: '0.29.0',+ 'hosted-controller': '0.29.0','helm-chart': '0.29.0',compose: '0.29.0',} as const satisfies Record<string, string>;diff --git a/console/packages/switch-agent-runtime/src/artifacts.ts b/console/packages/switch-agent-runtime/src/artifacts.tsindex 4fba00fe4..a49088489 100644--- a/console/packages/switch-agent-runtime/src/artifacts.ts+++ b/console/packages/switch-agent-runtime/src/artifacts.ts@@ -26,6 +26,7 @@ export const ARTIFACT_VERSIONS = {sidecar: '1.9.12',gateway: '0.29.0',setup: '0.29.0',+ 'hosted-controller': '0.29.0','helm-chart': '0.29.0',compose: '0.29.0',} as const satisfies Record<string, string>;diff --git a/core/switch_core/artifacts.py b/core/switch_core/artifacts.pyindex 07eb88b9a..29638acde 100644--- a/core/switch_core/artifacts.py+++ b/core/switch_core/artifacts.py@@ -26,6 +26,7 @@ ARTIFACT_VERSIONS: Final[dict[str, str]] = {"sidecar": "1.9.12","gateway": "0.29.0","setup": "0.29.0",+ "hosted-controller": "0.29.0","helm-chart": "0.29.0","compose": "0.29.0",}diff --git a/deploy/hosted/chart/Chart.yaml b/deploy/hosted/chart/Chart.yamlindex 1e3c7ea62..aaad0ab93 100644--- a/deploy/hosted/chart/Chart.yaml+++ b/deploy/hosted/chart/Chart.yaml@@ -1,5 +1,5 @@apiVersion: v2name: switch-hosted-controllerdescription: Single-controller lifecycle service for Switch cloud machines on EC2-version: 0.1.3+version: 0.1.4type: applicationdiff --git a/deploy/hosted/chart/templates/controller.yaml b/deploy/hosted/chart/templates/controller.yamlindex 0964ebbe3..a7df63f38 100644--- a/deploy/hosted/chart/templates/controller.yaml+++ b/deploy/hosted/chart/templates/controller.yaml@@ -49,6 +49,12 @@ spec:checksum/config: {{ $config | mustToJson | sha256sum }}spec:serviceAccountName: {{ .Values.serviceAccount.name | quote }}+ {{- with .Values.imagePullSecrets }}+ imagePullSecrets:+ {{- range . }}+ - name: {{ . | quote }}+ {{- end }}+ {{- end }}automountServiceAccountToken: falseterminationGracePeriodSeconds: 60securityContext:diff --git a/deploy/hosted/chart/values.schema.json b/deploy/hosted/chart/values.schema.jsonindex 757077fff..7a1990a63 100644--- a/deploy/hosted/chart/values.schema.json+++ b/deploy/hosted/chart/values.schema.json@@ -26,6 +26,7 @@}}},+ "imagePullSecrets": { "type": "array", "items": { "type": "string", "minLength": 1 } },"serviceAccount": {"type": "object","required": [diff --git a/deploy/hosted/chart/values.yaml b/deploy/hosted/chart/values.yamlindex 17d4293c8..41240bc75 100644--- a/deploy/hosted/chart/values.yaml+++ b/deploy/hosted/chart/values.yaml@@ -1,6 +1,8 @@image:repository: ""digest: ""+# Names of docker-registry Secrets for a private image registry.+imagePullSecrets: []serviceAccount:name: switch-hosted-controllerroleArn: ""