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:
commit
1c4508b72a
41
.github/config.js
vendored
Normal file
41
.github/config.js
vendored
Normal 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',
|
||||
},
|
||||
],
|
||||
};
|
5
.github/renovate.json
vendored
5
.github/renovate.json
vendored
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"repositories": [
|
||||
"jessebot/mastodon-helm-chart"
|
||||
]
|
||||
}
|
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
@ -5,11 +5,8 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.github/**'
|
||||
- 'charts/**/README.md'
|
||||
- 'LICENSE'
|
||||
- 'README.md'
|
||||
paths:
|
||||
- 'charts/**'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
|
4
.github/workflows/renovate.yaml
vendored
4
.github/workflows/renovate.yaml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v39.0.1
|
||||
uses: renovatebot/github-action@v39.0.5
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
configurationFile: .github/renovate.json
|
||||
configurationFile: .github/config.js
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
@ -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+.
|
||||
|
||||
⚠️ 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
|
||||
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!
|
||||
|
|
|
@ -4,7 +4,7 @@ dependencies:
|
|||
version: 12.6.0
|
||||
- name: elasticsearch
|
||||
repository: oci://registry-1.docker.io/bitnamicharts
|
||||
version: 19.10.1
|
||||
version: 19.10.6
|
||||
- name: redis
|
||||
repository: oci://registry-1.docker.io/bitnamicharts
|
||||
version: 17.14.6
|
||||
|
|
|
@ -15,11 +15,9 @@ 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.
|
||||
# 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
|
||||
# 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.
|
||||
# renovate: image=ghcr.io/mastodon/mastodon
|
||||
appVersion: v4.1.4
|
||||
|
||||
dependencies:
|
||||
|
@ -28,7 +26,7 @@ dependencies:
|
|||
repository: oci://registry-1.docker.io/bitnamicharts
|
||||
condition: postgresql.enabled
|
||||
- name: elasticsearch
|
||||
version: 19.10.1
|
||||
version: 19.10.6
|
||||
repository: oci://registry-1.docker.io/bitnamicharts
|
||||
condition: elasticsearch.enabled
|
||||
- name: redis
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# mastodon
|
||||
|
||||
  
|
||||
  
|
||||
|
||||
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 |
|
||||
|------------|------|---------|
|
||||
| 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 | redis | 17.11.6 |
|
||||
|
||||
|
|
|
@ -248,7 +248,7 @@ ingress:
|
|||
hosts:
|
||||
- mastodon.local
|
||||
|
||||
# -- https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
|
||||
# -- https://github.com/bitnami/charts/tree/main/bitnami/elasticsearch#parameters
|
||||
elasticsearch:
|
||||
# `false` will disable full-text search
|
||||
#
|
||||
|
@ -261,7 +261,7 @@ elasticsearch:
|
|||
image:
|
||||
tag: 7
|
||||
|
||||
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
|
||||
# https://github.com/bitnami/charts/tree/main/bitnami/postgresql#parameters
|
||||
postgresql:
|
||||
# -- disable if you want to use an existing db; in which case the values below
|
||||
# must match those of that external postgres instance
|
||||
|
@ -273,7 +273,7 @@ postgresql:
|
|||
username: mastodon
|
||||
# you must set a password; the password generated by the postgresql chart will
|
||||
# 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: ""
|
||||
# Set the password for the "postgres" admin user
|
||||
# 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
|
||||
existingSecret: ""
|
||||
|
||||
# https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
|
||||
# https://github.com/bitnami/charts/tree/main/bitnami/redis#parameters
|
||||
redis:
|
||||
# disable if you want to use an existing redis instance; in which case the
|
||||
# values below must match those of that external redis instance
|
||||
|
|
Loading…
Reference in New Issue
Block a user