mirror of
https://github.com/redimp/otterwiki.git
synced 2025-12-23 20:20:15 +00:00
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:
@@ -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
|
||||
|
||||
8
Makefile
8
Makefile
@@ -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; \
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -6,6 +6,7 @@ metadata:
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- with .Values.persistence.annotations }}
|
||||
annotations:
|
||||
helm.sh/resource-policy: keep
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
|
||||
@@ -69,6 +69,7 @@ persistence:
|
||||
size: 512Mi
|
||||
accessMode: ReadWriteOnce
|
||||
annotations: {}
|
||||
storageClassName: ""
|
||||
|
||||
nodeSelector: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user