diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e3ab061 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,40 @@ +--- +kind: pipeline +type: docker +name: default + +steps: +- name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive + +- name: build + image: alpine/helm + volumes: + - name: result + path: /output + commands: + - helm lint --set redis.enabled=false + - helm package -d chart . + - mv chart/glitchtip*.tgz /output/glitchtip.tgz + +- name: upload + image: curlimages/curl:latest + environment: + GIT_HOST: git.kurocon.nl + GIT_PACKAGE_OWNER: KuroNET + GIT_USER: + from_secret: git_username + GIT_TOKEN: + from_secret: git_password_or_token + volumes: + - name: result + path: /output + commands: + - curl --user $GIT_USER:$GIT_TOKEN -X POST --upload-file /output/glitchtip.tgz https://$GIT_HOST/api/packages/{$GIT_PACKAGE_OWNER}/helm/api/charts + + +volumes: +- name: result + temp: {} diff --git a/.gitmodules b/.gitmodules index 1ad4fb4..0290350 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "django-helm-chart"] path = django-helm-chart - url = https://gitlab.com/burke-software/django-helm-chart.git + url = https://git.kurocon.nl/KuroNET/django-helm-chart.git diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..8a85976 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,9 @@ +# Unreleased + +# 4.0.0 + +- (Breaking) Rename value preInstall to migrationJob +- The migration job now runs the migrate script which includes pgpartition. This should help ensure it runs more often as a failsafe should celery fail. +- Add some support for volume mounts, not well tested +- Started this changelog +- Updated chart dependencies to latest versions diff --git a/Chart.lock b/Chart.lock index f629a9e..4973b71 100644 --- a/Chart.lock +++ b/Chart.lock @@ -1,9 +1,9 @@ dependencies: - name: postgresql repository: https://charts.bitnami.com/bitnami - version: 13.0.0 + version: 15.5.16 - name: redis repository: https://charts.bitnami.com/bitnami - version: 18.1.2 -digest: sha256:d3f137e9c3bf32c245dc1c8b7df147e831b44a5b2fcb17d644f6beb16fbdb2da -generated: "2023-10-04T09:28:13.647209811-04:00" + version: 19.6.1 +digest: sha256:39ccb3c76f7a8587ce6623d8b563cefcb3c63a7376768a901ae8092ca4fd9b82 +generated: "2024-07-15T16:16:16.67406353-04:00" diff --git a/Chart.yaml b/Chart.yaml index 4eb7651..048d1ae 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -14,20 +14,20 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 2.4.0 +version: 4.0.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. -appVersion: 3.3.2 +appVersion: 4.1.1 icon: https://glitchtip.gitlab.io/glitchtip-helm-chart/icon.svg dependencies: - name: postgresql - version: ^13.0.0 + version: ^15.2.5 repository: https://charts.bitnami.com/bitnami condition: postgresql.enabled - name: redis - version: ^18.1.2 + version: ^19.1.0 repository: https://charts.bitnami.com/bitnami condition: redis.enabled diff --git a/charts/postgresql-13.0.0.tgz b/charts/postgresql-13.0.0.tgz deleted file mode 100644 index bbc42a7..0000000 Binary files a/charts/postgresql-13.0.0.tgz and /dev/null differ diff --git a/charts/postgresql-15.5.16.tgz b/charts/postgresql-15.5.16.tgz new file mode 100644 index 0000000..3c4bc38 Binary files /dev/null and b/charts/postgresql-15.5.16.tgz differ diff --git a/charts/redis-18.1.2.tgz b/charts/redis-18.1.2.tgz deleted file mode 100644 index 1af0d7a..0000000 Binary files a/charts/redis-18.1.2.tgz and /dev/null differ diff --git a/charts/redis-19.6.1.tgz b/charts/redis-19.6.1.tgz new file mode 100644 index 0000000..f517dcf Binary files /dev/null and b/charts/redis-19.6.1.tgz differ diff --git a/django-helm-chart b/django-helm-chart index 0d5921a..4c7256e 160000 --- a/django-helm-chart +++ b/django-helm-chart @@ -1 +1 @@ -Subproject commit 0d5921af5e3637b1b3f1fe3108bcd2d7a2e9d0f2 +Subproject commit 4c7256e5c96d18e4f187074354690a11d65b57fe diff --git a/values.yaml b/values.yaml index b9bb53a..415b0b5 100644 --- a/values.yaml +++ b/values.yaml @@ -1,7 +1,7 @@ # Default values for glitchtip. image: repository: glitchtip/glitchtip - tag: v3.3.2 + tag: v4.1.1 pullPolicy: IfNotPresent imagePullSecrets: [] @@ -19,8 +19,9 @@ env: # DATABASE_URL: Specify if using external postgres (not managed by this chart) # REDIS_URL: Specify if using external redis (not managed by this chart) -preInstall: +migrationJob: enabled: true + command: ["bin/run-migrate.sh"] activeDeadlineSeconds: 900 web: @@ -91,7 +92,7 @@ worker: minReplicas: 1 maxReplicas: 10 targetCPU: 100 - # targetMemory: 80 + # targetMemory: 100 livenessProbe: initialDelaySeconds: 10 periodSeconds: 60