helm chart updated to version 0.1.1

- pvc will not be deleted by helm on helm uninstall
- changes to the config will cause the pod to be restarted
This commit is contained in:
Ralph Thesen
2025-08-14 23:04:11 +02:00
parent d4f858a242
commit d5e1e8675e
6 changed files with 14 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ repos:
rev: v5.0.0
hooks:
- id: check-yaml
exclude: ^helm/templates/
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black

View File

@@ -171,7 +171,13 @@ helm-build:
cd helm/ && helm lint ./
cd helm/ && helm package ./
helm-push:
helm-test:
cd helm/ && \
helm template otterwiki \
--set config.SITE_NAME=Template \
./
helm-push: helm-build
set -e; \
CHARTS_POD=$$(kubectl get pods -n 'otterwiki' -l 'app.kubernetes.io/name=charts-otterwiki-com' -o jsonpath='{.items[0].metadata.name}'); \
kubectl cp -c chartexhibiton helm/otterwiki-$(HELM_VERSION).tgz otterwiki/$$CHARTS_POD:/data; \

View File

@@ -4,7 +4,7 @@ name: otterwiki
description: An Otter Wiki is a minimalstic wiki powered by python, markdown and git.
home: https://otterwiki.com
type: application
version: 0.1.0
version: 0.1.1
appVersion: "2"
icon: "https://github.com/redimp/otterwiki/blob/c805922fe886f724eefdd118ac0c1d444d59c8aa/otterwiki/static/img/otterhead.png"
maintainers:

View File

@@ -13,8 +13,10 @@ spec:
{{- include "otterwiki.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:

View File

@@ -6,6 +6,7 @@ metadata:
namespace: {{ .Release.Namespace }}
{{- with .Values.persistence.annotations }}
annotations:
helm.sh/resource-policy: keep
{{ toYaml . | indent 4 }}
{{- end }}
labels:

View File

@@ -69,6 +69,7 @@ persistence:
size: 512Mi
accessMode: ReadWriteOnce
annotations: {}
storageClassName: ""
nodeSelector: {}