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
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
|
exclude: ^helm/templates/
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -171,7 +171,13 @@ helm-build:
|
|||||||
cd helm/ && helm lint ./
|
cd helm/ && helm lint ./
|
||||||
cd helm/ && helm package ./
|
cd helm/ && helm package ./
|
||||||
|
|
||||||
helm-push:
|
helm-test:
|
||||||
|
cd helm/ && \
|
||||||
|
helm template otterwiki \
|
||||||
|
--set config.SITE_NAME=Template \
|
||||||
|
./
|
||||||
|
|
||||||
|
helm-push: helm-build
|
||||||
set -e; \
|
set -e; \
|
||||||
CHARTS_POD=$$(kubectl get pods -n 'otterwiki' -l 'app.kubernetes.io/name=charts-otterwiki-com' -o jsonpath='{.items[0].metadata.name}'); \
|
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; \
|
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.
|
description: An Otter Wiki is a minimalstic wiki powered by python, markdown and git.
|
||||||
home: https://otterwiki.com
|
home: https://otterwiki.com
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
appVersion: "2"
|
appVersion: "2"
|
||||||
icon: "https://github.com/redimp/otterwiki/blob/c805922fe886f724eefdd118ac0c1d444d59c8aa/otterwiki/static/img/otterhead.png"
|
icon: "https://github.com/redimp/otterwiki/blob/c805922fe886f724eefdd118ac0c1d444d59c8aa/otterwiki/static/img/otterhead.png"
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|||||||
@@ -13,8 +13,10 @@ spec:
|
|||||||
{{- include "otterwiki.selectorLabels" . | nindent 6 }}
|
{{- include "otterwiki.selectorLabels" . | nindent 6 }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.podAnnotations }}
|
|
||||||
annotations:
|
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 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ metadata:
|
|||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.persistence.annotations }}
|
{{- with .Values.persistence.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
|
helm.sh/resource-policy: keep
|
||||||
{{ toYaml . | indent 4 }}
|
{{ toYaml . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ persistence:
|
|||||||
size: 512Mi
|
size: 512Mi
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
storageClassName: ""
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user