Skip to content

Commit

Permalink
chore(deps): update ghcr.io/usememos/memos docker tag to v0.18.0 (#454)
Browse files Browse the repository at this point in the history
* chore(deps): update ghcr.io/usememos/memos docker tag to v0.18.0

* chore: Update chart metadata

* feat(memos): Add Postgres subchart

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com>
Co-authored-by: Gabe Cook <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2023
1 parent 7e20498 commit 8162da0
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 12 deletions.
7 changes: 5 additions & 2 deletions charts/memos/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ dependencies:
- name: common
repository: https://bjw-s.github.io/helm-charts
version: 1.5.1
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 13.2.24
- name: mariadb
repository: https://charts.bitnami.com/bitnami
version: 14.1.2
digest: sha256:d4491041a329f81f6fe04ce7d4fd19806e896c8f32f84b334fe1149000777ed4
generated: "2023-11-20T01:51:25.609262-06:00"
digest: sha256:6c31c854f34450b8652df48e93461bc6b4f890aca0c9167366f4fc558ec8ed08
generated: "2023-12-10T23:29:31.158809-06:00"
12 changes: 9 additions & 3 deletions charts/memos/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description: A lightweight, self-hosted memo hub. Open Source and Free forever.
home: https://charts.gabe565.com/charts/memos/
icon: https://raw.githubusercontent.com/gabe565/charts/main/charts/memos/icon.png
type: application
version: 0.9.2
version: 0.10.0
# renovate datasource=docker depName=ghcr.io/usememos/memos
appVersion: 0.17.1
appVersion: 0.18.0
kubeVersion: ">=1.22.0-0"
keywords:
- memo
Expand All @@ -16,6 +16,10 @@ dependencies:
- name: common
repository: https://bjw-s.github.io/helm-charts
version: 1.5.1
- name: postgresql
version: 13.2.24
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled
- name: mariadb
version: 14.1.2
repository: https://charts.bitnami.com/bitnami
Expand All @@ -24,8 +28,10 @@ sources:
- https://github.com/usememos/memos
annotations:
artifacthub.io/changes: |-
- kind: changed
description: Update ghcr.io/usememos/memos docker tag to v0.18.0
- kind: added
description: Add mariadb subchart
description: Add Postgres subchart
artifacthub.io/links: |-
- name: App Source
url: https://github.com/usememos/memos
Expand Down
10 changes: 6 additions & 4 deletions charts/memos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

<img src="https://raw.githubusercontent.com/gabe565/charts/main/charts/memos/icon.png" align="right" width="92" alt="memos logo">

![Version: 0.9.2](https://img.shields.io/badge/Version-0.9.2-informational?style=flat)
![Version: 0.10.0](https://img.shields.io/badge/Version-0.10.0-informational?style=flat)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat)
![AppVersion: 0.17.1](https://img.shields.io/badge/AppVersion-0.17.1-informational?style=flat)
![AppVersion: 0.18.0](https://img.shields.io/badge/AppVersion-0.18.0-informational?style=flat)

A lightweight, self-hosted memo hub. Open Source and Free forever.

**Homepage:** <https://charts.gabe565.com/charts/memos/>

**This chart is not maintained by the upstream project and any issues with the chart should be raised
[here](https://github.com/gabe565/charts/issues/new?assignees=gabe565&labels=bug&template=bug_report.yaml&name=memos&version=0.9.2)**
[here](https://github.com/gabe565/charts/issues/new?assignees=gabe565&labels=bug&template=bug_report.yaml&name=memos&version=0.10.0)**

## Source Code

Expand All @@ -27,6 +27,7 @@ Kubernetes: `>=1.22.0-0`
|------------|------|---------|
| <https://bjw-s.github.io/helm-charts> | common | 1.5.1 |
| <https://charts.bitnami.com/bitnami> | mariadb | 14.1.2 |
| <https://charts.bitnami.com/bitnami> | postgresql | 13.2.24 |

## Installing the Chart

Expand Down Expand Up @@ -87,13 +88,14 @@ N/A
|-----|------|---------|-------------|
| image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
| image.repository | string | `"ghcr.io/usememos/memos"` | image repository |
| image.tag | string | `"0.17.1"` | image tag |
| image.tag | string | `"0.18.0"` | image tag |
| ingress.main | object | See [values.yaml](./values.yaml) | Enable and configure ingress settings for the chart under this key. |
| mariadb | object | See [values.yaml](./values.yaml) | Enable and configure mariadb database subchart under this key. For more options see [mariadb chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/mariadb) |
| persistence | object | See [values.yaml](./values.yaml) | Configure persistence settings for the chart under this key. |
| podSecurityContext.fsGroup | int | `65534` | Volume binds will be granted to `nobody` group |
| podSecurityContext.runAsGroup | int | `65534` | Run as `nobody` group |
| podSecurityContext.runAsUser | int | `65534` | Run as `nobody` user |
| postgresql | object | See [values.yaml](./values.yaml) | Enable and configure postgresql database subchart under this key. For more options see [postgresql chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/postgresql) |
| service | object | See [values.yaml](./values.yaml) | Configures service settings for the chart. |

---
Expand Down
13 changes: 11 additions & 2 deletions charts/memos/templates/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
env:
MEMOS_PORT: {{ .Values.service.main.ports.http.port }}

{{- with .Values.mariadb}}
{{- if .enabled }}
{{- if .Values.postgresql.enabled }}
{{- with .Values.postgresql }}
MEMOS_DRIVER: postgres
DB_PASSWORD:
secretKeyRef:
name: {{ $.Release.Name }}-postgresql
key: {{ if not .auth.password }}postgres-{{ end }}password
MEMOS_DSN: postgresql://{{ default "postgres" .auth.username }}:$(DB_PASSWORD)@{{ $.Release.Name }}-postgresql/{{ .auth.database }}?sslmode=disable
{{- end }}
{{- else if .Values.mariadb.enabled }}
{{- with .Values.mariadb }}
MEMOS_DRIVER: mysql
DB_PASSWORD:
secretKeyRef:
Expand Down
16 changes: 15 additions & 1 deletion charts/memos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ image:
# -- image pull policy
pullPolicy: IfNotPresent
# -- image tag
tag: 0.17.1
tag: 0.18.0

# -- Configures service settings for the chart.
# @default -- See [values.yaml](./values.yaml)
Expand Down Expand Up @@ -55,6 +55,20 @@ podSecurityContext:
# -- Volume binds will be granted to `nobody` group
fsGroup: 65534

# -- Enable and configure postgresql database subchart under this key.
# For more options see [postgresql chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/postgresql)
# @default -- See [values.yaml](./values.yaml)
postgresql:
enabled: false
auth:
database: memos
postgresPassword: changeme
primary:
persistence:
enabled: false
# storageClass: ""
# size: 8Gi

# -- Enable and configure mariadb database subchart under this key.
# For more options see [mariadb chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/mariadb)
# @default -- See [values.yaml](./values.yaml)
Expand Down

0 comments on commit 8162da0

Please sign in to comment.