BREAKING CHANGES fix(shiori) fix postgres sidecar (#6167)
* feat(shiori) fix postgres sidecar * Update charts/stable/shiori/templates/_secret.tpl Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Signed-off-by: Xstar97 <Xstar97@users.noreply.github.com> * Update charts/stable/shiori/templates/_secret.tpl Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Signed-off-by: Xstar97 <Xstar97@users.noreply.github.com> * Update charts/stable/shiori/values.yaml Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Signed-off-by: Xstar97 <Xstar97@users.noreply.github.com> * Update charts/stable/shiori/values.yaml Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * fix envFrom * remove defaults * set mirror container Signed-off-by: Xstar97 <Xstar97@users.noreply.github.com> Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
@@ -1,21 +1,5 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: "1.5.0"
|
appVersion: "1.5.3"
|
||||||
version: 10.0.16
|
|
||||||
kubeVersion: ">=1.16.0-0"
|
|
||||||
name: shiori
|
|
||||||
description: A simple bookmark manager built with Go
|
|
||||||
type: application
|
|
||||||
home: https://truecharts.org/charts/stable/shiori
|
|
||||||
icon: https://truecharts.org/img/hotlink-ok/chart-icons/shiori.png
|
|
||||||
keywords:
|
|
||||||
- shiori
|
|
||||||
- bookmark
|
|
||||||
- bookmark-manager
|
|
||||||
- web-interface
|
|
||||||
sources:
|
|
||||||
- https://github.com/truecharts/charts/tree/master/charts/stable/shiori
|
|
||||||
- https://github.com/go-shiori/shiori
|
|
||||||
- https://github.com/nicholaswilde/docker-shiori
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://library-charts.truecharts.org
|
repository: https://library-charts.truecharts.org
|
||||||
@@ -24,10 +8,27 @@ dependencies:
|
|||||||
name: postgresql
|
name: postgresql
|
||||||
repository: https://charts.truecharts.org/
|
repository: https://charts.truecharts.org/
|
||||||
version: 11.0.18
|
version: 11.0.18
|
||||||
|
deprecated: false
|
||||||
|
description: A simple bookmark manager built with Go.
|
||||||
|
home: https://truecharts.org/charts/stable/shiori
|
||||||
|
icon: https://truecharts.org/img/hotlink-ok/chart-icons/shiori.png
|
||||||
|
keywords:
|
||||||
|
- shiori
|
||||||
|
- bookmark
|
||||||
|
- bookmark-manager
|
||||||
|
- web-interface
|
||||||
|
kubeVersion: ">=1.16.0-0"
|
||||||
maintainers:
|
maintainers:
|
||||||
- email: info@truecharts.org
|
- email: info@truecharts.org
|
||||||
name: TrueCharts
|
name: TrueCharts
|
||||||
url: https://truecharts.org
|
url: https://truecharts.org
|
||||||
|
name: shiori
|
||||||
|
sources:
|
||||||
|
- https://github.com/truecharts/charts/tree/master/charts/stable/shiori
|
||||||
|
- https://github.com/go-shiori/shiori
|
||||||
|
- https://github.com/go-shiori/shiori/pkgs/container/shiori
|
||||||
|
type: application
|
||||||
|
version: 11.0.0
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- media
|
- media
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ questions:
|
|||||||
# Include{containerConfig}
|
# Include{containerConfig}
|
||||||
# Include{serviceRoot}
|
# Include{serviceRoot}
|
||||||
- variable: main
|
- variable: main
|
||||||
label: "Main Service"
|
label: Main Service
|
||||||
description: "The Primary service on which the healthcheck runs, often the webUI"
|
description: The Primary service on which the healthcheck runs, often the webUI
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
@@ -20,14 +20,14 @@ questions:
|
|||||||
# Include{serviceSelectorLoadBalancer}
|
# Include{serviceSelectorLoadBalancer}
|
||||||
# Include{serviceSelectorExtras}
|
# Include{serviceSelectorExtras}
|
||||||
- variable: main
|
- variable: main
|
||||||
label: "Main Service Port Configuration"
|
label: Main Service Port Configuration
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
- variable: port
|
- variable: port
|
||||||
label: "Port"
|
label: Port
|
||||||
description: "This port exposes the container port on the service"
|
description: This port exposes the container port on the service
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 10098
|
default: 10098
|
||||||
@@ -38,8 +38,8 @@ questions:
|
|||||||
# Include{serviceList}
|
# Include{serviceList}
|
||||||
# Include{persistenceRoot}
|
# Include{persistenceRoot}
|
||||||
- variable: data
|
- variable: data
|
||||||
label: "App Data Storage"
|
label: App Data Storage
|
||||||
description: "Stores the Application Data."
|
description: Stores the Application Data.
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
@@ -48,7 +48,7 @@ questions:
|
|||||||
# Include{persistenceList}
|
# Include{persistenceList}
|
||||||
# Include{ingressRoot}
|
# Include{ingressRoot}
|
||||||
- variable: main
|
- variable: main
|
||||||
label: "Main Ingress"
|
label: Main Ingress
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
@@ -60,41 +60,41 @@ questions:
|
|||||||
# Include{security}
|
# Include{security}
|
||||||
# Include{securityContextAdvancedRoot}
|
# Include{securityContextAdvancedRoot}
|
||||||
- variable: privileged
|
- variable: privileged
|
||||||
label: "Privileged mode"
|
label: Privileged mode
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
- variable: readOnlyRootFilesystem
|
- variable: readOnlyRootFilesystem
|
||||||
label: "ReadOnly Root Filesystem"
|
label: ReadOnly Root Filesystem
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
- variable: allowPrivilegeEscalation
|
- variable: allowPrivilegeEscalation
|
||||||
label: "Allow Privilege Escalation"
|
label: Allow Privilege Escalation
|
||||||
schema:
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
- variable: runAsNonRoot
|
|
||||||
label: "runAsNonRoot"
|
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
- variable: runAsNonRoot
|
||||||
|
label: runAsNonRoot
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
# Include{podSecurityContextRoot}
|
# Include{podSecurityContextRoot}
|
||||||
- variable: runAsUser
|
- variable: runAsUser
|
||||||
label: "runAsUser"
|
label: runAsUser
|
||||||
description: "The UserID of the user running the application"
|
description: The UserID of the user running the application
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 0
|
default: 568
|
||||||
- variable: runAsGroup
|
- variable: runAsGroup
|
||||||
label: "runAsGroup"
|
label: runAsGroup
|
||||||
description: "The groupID this App of the user running the application"
|
description: The groupID this App of the user running the application
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 0
|
default: 568
|
||||||
- variable: fsGroup
|
- variable: fsGroup
|
||||||
label: "fsGroup"
|
label: fsGroup
|
||||||
description: "The group that should own ALL storage."
|
description: The group that should own ALL storage.
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 568
|
default: 568
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{{/* Define the secret */}}
|
||||||
|
{{- define "shiori.secret" -}}
|
||||||
|
|
||||||
|
{{- $secretName := printf "%s-secret" (include "tc.common.names.fullname" .) }}
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: {{ $secretName }}
|
||||||
|
labels:
|
||||||
|
{{- include "tc.common.labels" . | nindent 4 }}
|
||||||
|
stringData:
|
||||||
|
SHIORI_DIR: {{ .Values.persistence.data.mountPath }}
|
||||||
|
|
||||||
|
{{/* Database */}}
|
||||||
|
SHIORI_DBMS: "postgresql"
|
||||||
|
SHIORI_PG_PORT: "5432"
|
||||||
|
SHIORI_PG_USER: {{ .Values.postgresql.postgresqlUsername }}
|
||||||
|
SHIORI_PG_PASS: {{ .Values.postgresql.postgresqlPassword | trimAll "\"" }}
|
||||||
|
SHIORI_PG_NAME: {{ .Values.postgresql.postgresqlDatabase }}
|
||||||
|
SHIORI_PG_HOST: {{ .Values.postgresql.url.plain | trimAll "\"" }}
|
||||||
|
{{- end -}}
|
||||||
@@ -1 +1,8 @@
|
|||||||
{{ include "tc.common.loader.all" . }}
|
{{/* Make sure all variables are set properly */}}
|
||||||
|
{{- include "tc.common.loader.init" . }}
|
||||||
|
|
||||||
|
{{/* Render secret */}}
|
||||||
|
{{- include "shiori.secret" . }}
|
||||||
|
|
||||||
|
{{/* Render the templates */}}
|
||||||
|
{{ include "tc.common.loader.apply" . }}
|
||||||
|
|||||||
@@ -1,27 +1,11 @@
|
|||||||
image:
|
image:
|
||||||
repository: tccr.io/truecharts/shiori
|
repository: tccr.io/truecharts/shiori
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: version-v1.5.0@sha256:6c6331888c9a5162def49b6212327242f7f5c96e2d5a1bb031f79321cc1c0549
|
tag: 1.5.3@sha256:99696bfc727ab1792297cba1e0ba755953bc0cfa38f2c19532c56d68985479a8
|
||||||
|
|
||||||
securityContext:
|
envFrom:
|
||||||
allowPrivilegeEscalation: true
|
- secretRef:
|
||||||
runAsNonRoot: false
|
name: '{{ include "tc.common.names.fullname" . }}-secret'
|
||||||
|
|
||||||
podSecurityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
runAsGroup: 0
|
|
||||||
|
|
||||||
env:
|
|
||||||
SHIORI_PG_NAME: "{{ .Values.postgresql.postgresqlDatabase }}"
|
|
||||||
SHIORI_PG_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
|
||||||
SHIORI_PG_PASS:
|
|
||||||
secretKeyRef:
|
|
||||||
name: dbcreds
|
|
||||||
key: postgresql-password
|
|
||||||
SHIORI_PG_HOST:
|
|
||||||
secretKeyRef:
|
|
||||||
name: dbcreds
|
|
||||||
key: plainhost
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
@@ -33,13 +17,13 @@ service:
|
|||||||
persistence:
|
persistence:
|
||||||
data:
|
data:
|
||||||
enabled: true
|
enabled: true
|
||||||
mountPath: "/data"
|
mountPath: /data
|
||||||
varrun:
|
varrun:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: true
|
enabled: true
|
||||||
existingSecret: "dbcreds"
|
existingSecret: dbcreds
|
||||||
postgresqlUsername: shiori
|
postgresqlUsername: shiori
|
||||||
postgresqlDatabase: shiori
|
postgresqlDatabase: shiori
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user