3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 04:53:21 +00:00

Merge branch 'main' into renovate/redis-17.x

This commit is contained in:
JesseBot 2023-10-25 15:09:31 +02:00 committed by GitHub
commit 1c4508b72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 59 additions and 26 deletions

41
.github/config.js vendored Normal file
View File

@ -0,0 +1,41 @@
module.exports = {
branchPrefix: 'test-renovate/',
username: 'renovate-release',
gitAuthor: 'Renovate Bot <bot@renovateapp.com>',
platform: 'github',
includeForks: true,
dryRun: 'null',
repositories: ['jessebot/mastodon-helm-chart'],
extends: ['config:base'],
allowPostUpgradeCommandTemplating: true,
allowedPostUpgradeCommands: ['^.*'],
regexManagers: [
{
fileMatch: ['(^|/)Chart\\.yaml$'],
matchStrings: [
'#\\s?renovate: image=(?<depName>.*?)\\s?appVersion:\\s?\\"?(?<currentValue>[\\w+\\.\\-]*)',
],
datasourceTemplate: 'docker',
},
],
packageRules: [
{
matchManagers: ['helm-requirements', 'helm-values', 'regex'],
postUpgradeTasks: {
commands: [
`version=$(grep '^version:' {{{parentDir}}}/Chart.yaml | awk '{print $2}')
major=$(echo $version | cut -d. -f1)
minor=$(echo $version | cut -d. -f2)
patch=$(echo $version | cut -d. -f3)
minor=$(expr $minor + 1)
echo "Replacing $version with $major.$minor.$patch"
sed -i "s/^version:.*/version: $\{major\}.$\{minor\}.$\{patch\}/g" {{{parentDir}}}/Chart.yaml
cat {{{parentDir}}}/Chart.yaml
`,
],
},
fileFilters: ['**/Chart.yaml'],
executionMode: 'branch',
},
],
};

View File

@ -1,5 +0,0 @@
{
"repositories": [
"jessebot/mastodon-helm-chart"
]
}

View File

@ -5,11 +5,8 @@ on:
push: push:
branches: branches:
- main - main
paths-ignore: paths:
- '.github/**' - 'charts/**'
- 'charts/**/README.md'
- 'LICENSE'
- 'README.md'
jobs: jobs:
release: release:

View File

@ -11,7 +11,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Self-hosted Renovate - name: Self-hosted Renovate
uses: renovatebot/github-action@v39.0.1 uses: renovatebot/github-action@v39.0.5
with: with:
token: ${{ secrets.RENOVATE_TOKEN }} token: ${{ secrets.RENOVATE_TOKEN }}
configurationFile: .github/renovate.json configurationFile: .github/config.js

View File

@ -1,4 +1,5 @@
# Introduction # Mastodon Helm Chart
<a href="https://github.com/jessebot/mastodon-helm-chart/releases"><img src="https://img.shields.io/github/v/release/jessebot/mastodon-helm-chart?style=plastic&labelColor=blue&color=green&logo=GitHub&logoColor=white"></a>
This is a fork of the official mastodon helm chart for installing Mastodon on a Kubernetes cluster. I'll maintain this at least till some of the security features PRs are merged in the upstream repo. The basic usage is: This is a fork of the official mastodon helm chart for installing Mastodon on a Kubernetes cluster. I'll maintain this at least till some of the security features PRs are merged in the upstream repo. The basic usage is:
@ -8,7 +9,8 @@ This is a fork of the official mastodon helm chart for installing Mastodon on a
This chart is tested with k8s 1.26+ and helm 3.6.0+. This chart is tested with k8s 1.26+ and helm 3.6.0+.
⚠️ I just became aware of the bitnami mastodon chart [here](https://github.com/bitnami/charts/tree/main/bitnami/mastodon) so I may publicly archive this repo in the near future. Feel free to take what you need though :) > [!Note]
> I just became aware of the bitnami mastodon chart [here](https://github.com/bitnami/charts/tree/main/bitnami/mastodon) so I may publicly archive this repo in the near future. Feel free to take what you need though :)
## Known caveats for this chart ## Known caveats for this chart
Currently in chart version `4.1.0`, you need to run postgresql and redis helm charts independently of this one. This is because there's a helm hook job called db-migrate that I can't figure out how to make run after the dependency charts are fully installed, but before everything else. If you know the answer to this, please open an issue/pr here and let me know! Currently in chart version `4.1.0`, you need to run postgresql and redis helm charts independently of this one. This is because there's a helm hook job called db-migrate that I can't figure out how to make run after the dependency charts are fully installed, but before everything else. If you know the answer to this, please open an issue/pr here and let me know!

View File

@ -4,7 +4,7 @@ dependencies:
version: 12.6.0 version: 12.6.0
- name: elasticsearch - name: elasticsearch
repository: oci://registry-1.docker.io/bitnamicharts repository: oci://registry-1.docker.io/bitnamicharts
version: 19.10.1 version: 19.10.6
- name: redis - name: redis
repository: oci://registry-1.docker.io/bitnamicharts repository: oci://registry-1.docker.io/bitnamicharts
version: 17.14.6 version: 17.14.6

View File

@ -15,11 +15,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # 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. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 4.1.0 version: 4.2.0
# This is the version number of the application being deployed. This version number should be # renovate: image=ghcr.io/mastodon/mastodon
# 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.
appVersion: v4.1.4 appVersion: v4.1.4
dependencies: dependencies:
@ -28,7 +26,7 @@ dependencies:
repository: oci://registry-1.docker.io/bitnamicharts repository: oci://registry-1.docker.io/bitnamicharts
condition: postgresql.enabled condition: postgresql.enabled
- name: elasticsearch - name: elasticsearch
version: 19.10.1 version: 19.10.6
repository: oci://registry-1.docker.io/bitnamicharts repository: oci://registry-1.docker.io/bitnamicharts
condition: elasticsearch.enabled condition: elasticsearch.enabled
- name: redis - name: redis

View File

@ -1,6 +1,6 @@
# mastodon # mastodon
![Version: 4.1.0](https://img.shields.io/badge/Version-4.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.1.4](https://img.shields.io/badge/AppVersion-v4.1.4-informational?style=flat-square) ![Version: 4.2.0](https://img.shields.io/badge/Version-4.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.1.4](https://img.shields.io/badge/AppVersion-v4.1.4-informational?style=flat-square)
Mastodon is a free, open-source social network server based on ActivityPub. Mastodon is a free, open-source social network server based on ActivityPub.
@ -8,7 +8,7 @@ Mastodon is a free, open-source social network server based on ActivityPub.
| Repository | Name | Version | | Repository | Name | Version |
|------------|------|---------| |------------|------|---------|
| oci://registry-1.docker.io/bitnamicharts | elasticsearch | 19.10.1 | | oci://registry-1.docker.io/bitnamicharts | elasticsearch | 19.10.6 |
| oci://registry-1.docker.io/bitnamicharts | postgresql | 12.6.0 | | oci://registry-1.docker.io/bitnamicharts | postgresql | 12.6.0 |
| oci://registry-1.docker.io/bitnamicharts | redis | 17.11.6 | | oci://registry-1.docker.io/bitnamicharts | redis | 17.11.6 |

View File

@ -248,7 +248,7 @@ ingress:
hosts: hosts:
- mastodon.local - mastodon.local
# -- https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters # -- https://github.com/bitnami/charts/tree/main/bitnami/elasticsearch#parameters
elasticsearch: elasticsearch:
# `false` will disable full-text search # `false` will disable full-text search
# #
@ -261,7 +261,7 @@ elasticsearch:
image: image:
tag: 7 tag: 7
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters # https://github.com/bitnami/charts/tree/main/bitnami/postgresql#parameters
postgresql: postgresql:
# -- disable if you want to use an existing db; in which case the values below # -- disable if you want to use an existing db; in which case the values below
# must match those of that external postgres instance # must match those of that external postgres instance
@ -273,7 +273,7 @@ postgresql:
username: mastodon username: mastodon
# you must set a password; the password generated by the postgresql chart will # you must set a password; the password generated by the postgresql chart will
# be rotated on each upgrade: # be rotated on each upgrade:
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrade # https://github.com/bitnami/charts/tree/main/bitnami/postgresql#upgrade
password: "" password: ""
# Set the password for the "postgres" admin user # Set the password for the "postgres" admin user
# set this to the same value as above if you've previously installed # set this to the same value as above if you've previously installed
@ -283,7 +283,7 @@ postgresql:
# with a key of password set to the password you want # with a key of password set to the password you want
existingSecret: "" existingSecret: ""
# https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters # https://github.com/bitnami/charts/tree/main/bitnami/redis#parameters
redis: redis:
# disable if you want to use an existing redis instance; in which case the # disable if you want to use an existing redis instance; in which case the
# values below must match those of that external redis instance # values below must match those of that external redis instance