Commit c491f271 authored by jacklull's avatar jacklull

Make Favicon links variables, remove postgres chart

Issue: #1
parent c77635dd
...@@ -23,11 +23,6 @@ keywords: ...@@ -23,11 +23,6 @@ keywords:
# a dependency of application charts to inject those utilities and functions into the rendering # a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed. # pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application type: application
dependencies:
- name: postgresql
version: 8.10.14
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled
home: https://wiki.js.org home: https://wiki.js.org
icon: https://cdn.js.wiki/images/wikijs-butterfly.svg icon: https://cdn.js.wiki/images/wikijs-butterfly.svg
sources: sources:
......
...@@ -34,7 +34,7 @@ spec: ...@@ -34,7 +34,7 @@ spec:
{{- end }} {{- end }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
{{- if .Values.customFavicons.enabled}} {{- if .Values.customFavicons.enabled }}
lifecycle: lifecycle:
postStart: postStart:
exec: exec:
...@@ -43,9 +43,9 @@ spec: ...@@ -43,9 +43,9 @@ spec:
- -c - -c
- | - |
ls /wiki/assets && rm -rf /wiki/assets/favicons/* && rm -rf /wiki/assets/favicon.ico && \ ls /wiki/assets && rm -rf /wiki/assets/favicons/* && rm -rf /wiki/assets/favicon.ico && \
curl -k -L {{- toYaml .Values.customFavicons.android-chrome-192x192.png}} -o /wiki/assets/favicons/android-chrome-192x192.png && \ curl -k -L {{- toYaml .Values.customFavicons.android-chrome-192x192.png }} -o /wiki/assets/favicons/android-chrome-192x192.png && \
curl -k -L {{- toYaml .Values.customFavicons.favicom-32x32.png}} -o /wiki/assets/favicons/favicon-32x32.png && \ curl -k -L {{- toYaml .Values.customFavicons.favicom-32x32.png }} -o /wiki/assets/favicons/favicon-32x32.png && \
curl -k -L {{- toYaml .Values.customFavicons.favicon.ico}} -o /wiki/assets/favicon.ico curl -k -L {{- toYaml .Values.customFavicons.favicon.ico }} -o /wiki/assets/favicon.ico
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ default "latest" .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ default "latest" .Values.image.tag }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment