From bd98e0237b0bd8af8baf1ad6d325343f413f880d Mon Sep 17 00:00:00 2001 From: alhendrickson Date: Thu, 11 Jun 2026 15:34:37 +0000 Subject: [PATCH 1/3] fix(helm/medcat-trainer): Fix collection should not be created. Update to latest trainer tag --- helm-charts/medcat-trainer-helm/Chart.yaml | 2 +- helm-charts/medcat-trainer-helm/README.md | 1 + helm-charts/medcat-trainer-helm/values.yaml | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/helm-charts/medcat-trainer-helm/Chart.yaml b/helm-charts/medcat-trainer-helm/Chart.yaml index 4604112..b00f4ee 100644 --- a/helm-charts/medcat-trainer-helm/Chart.yaml +++ b/helm-charts/medcat-trainer-helm/Chart.yaml @@ -21,7 +21,7 @@ version: 0.0.1 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "3.5.1" +appVersion: "3.6.0" maintainers: - name: alhendrickson diff --git a/helm-charts/medcat-trainer-helm/README.md b/helm-charts/medcat-trainer-helm/README.md index 499929d..1d61ea5 100644 --- a/helm-charts/medcat-trainer-helm/README.md +++ b/helm-charts/medcat-trainer-helm/README.md @@ -127,6 +127,7 @@ These features are not yet existing but to be added in future: | serviceAccount.create | bool | `true` | Specifies whether a service account should be created | | serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | | solr.auth.enabled | bool | `false` | | +| solr.collection | string | `""` | Disable default collection creation by setting to empty string. MedCAT trainer does not require the collection to exist. | | solr.collectionReplicas | int | `1` | | | solr.collectionShards | int | `1` | | | solr.image.repository | string | `"bitnamilegacy/solr"` | | diff --git a/helm-charts/medcat-trainer-helm/values.yaml b/helm-charts/medcat-trainer-helm/values.yaml index 428c883..2e42cf8 100644 --- a/helm-charts/medcat-trainer-helm/values.yaml +++ b/helm-charts/medcat-trainer-helm/values.yaml @@ -165,6 +165,8 @@ medcatConfig: | solr: replicaCount: 1 + # -- Disable default collection creation by setting to empty string. MedCAT trainer does not require the collection to exist. + collection: "" collectionShards: 1 collectionReplicas: 1 @@ -178,7 +180,7 @@ solr: app.kubernetes.io/part-of: cogstack image: repository: bitnamilegacy/solr - # Pin legacy version of postgresql following bitnami change to remove free images. Match prefect version + # Pin legacy version of solr following bitnami change to remove free images tag: 9.9.0-debian-12-r1 zookeeper: From b3f24a34dbd6aea56946cf08142424dabea23c93 Mon Sep 17 00:00:00 2001 From: alhendrickson Date: Thu, 11 Jun 2026 15:53:12 +0000 Subject: [PATCH 2/3] build: Fix build disk space use in helm --- .github/workflows/kubernetes-charts-build.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/kubernetes-charts-build.yaml b/.github/workflows/kubernetes-charts-build.yaml index fe0a8b9..5f27589 100644 --- a/.github/workflows/kubernetes-charts-build.yaml +++ b/.github/workflows/kubernetes-charts-build.yaml @@ -22,6 +22,20 @@ jobs: runs-on: ubuntu-latest if: github.event.pull_request.user.login != 'dependabot[bot]' && github.repository == 'CogStack/cogstack-platform' steps: + + - name: 🧹 Free up disk space + run: | + df -h # Optional: Check space before build + # Remove large, unnecessary packages/tools + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /usr/share/swift + sudo rm -rf /usr/share/rust + sudo rm -rf /usr/share/powershell + # Remove cached tools and files + sudo apt-get clean + df -h # Optional: Check space before build + - name: Checkout uses: actions/checkout@v5.0.0 with: From de11a9c81189e36f4eb4d88d478672e7d83b6337 Mon Sep 17 00:00:00 2001 From: alhendrickson Date: Thu, 11 Jun 2026 15:56:24 +0000 Subject: [PATCH 3/3] build: Fix build disk space use in helm --- .github/workflows/kubernetes-charts-build.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/kubernetes-charts-build.yaml b/.github/workflows/kubernetes-charts-build.yaml index 5f27589..60d7da7 100644 --- a/.github/workflows/kubernetes-charts-build.yaml +++ b/.github/workflows/kubernetes-charts-build.yaml @@ -22,7 +22,11 @@ jobs: runs-on: ubuntu-latest if: github.event.pull_request.user.login != 'dependabot[bot]' && github.repository == 'CogStack/cogstack-platform' steps: - + - name: Checkout + uses: actions/checkout@v5.0.0 + with: + fetch-depth: 0 + - name: 🧹 Free up disk space run: | df -h # Optional: Check space before build @@ -35,11 +39,6 @@ jobs: # Remove cached tools and files sudo apt-get clean df -h # Optional: Check space before build - - - name: Checkout - uses: actions/checkout@v5.0.0 - with: - fetch-depth: 0 - name: Set up Helm uses: azure/setup-helm@v4.3.1