Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
f4d9fd43
Unverified
Commit
f4d9fd43
authored
Oct 24, 2021
by
Nold
Committed by
GitHub
Oct 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc: helm sideload initContainer option (#4325)
***NO_CI***
parent
5c99cf3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
README.md
dev/helm/README.md
+3
-0
deployment.yaml
dev/helm/templates/deployment.yaml
+10
-0
values.yaml
dev/helm/values.yaml
+11
-0
No files found.
dev/helm/README.md
View file @
f4d9fd43
...
...
@@ -108,6 +108,9 @@ The following table lists the configurable parameters of the Wiki.js chart and t
|
`ingress.annotations`
| Ingress annotations |
`{}`
|
|
`ingress.hosts`
| List of ingress rules |
`[{"host": "wiki.local", "paths": ["/"]}]`
|
|
`ingress.tls`
| Ingress TLS configuration |
`[]`
|
|
`sideload.enabled`
| Enable sideloading of locale files from git |
`false`
|
|
`sideload.repoURL`
| Git repository URL containing locale files |
`https://github.com/Requarks/wiki-localization`
|
|
`sideload.env`
| Environment variables for sideload Container |
`{}`
|
|
`postgresql.enabled`
| Deploy postgres server (see below) |
`true`
|
|
`postgresql.postgresqlDatabase`
| Postgres database name |
`wiki`
|
|
`postgresql.postgresqlUser`
| Postgres username |
`postgres`
|
...
...
dev/helm/templates/deployment.yaml
View file @
f4d9fd43
...
...
@@ -21,6 +21,16 @@ spec:
serviceAccountName
:
{{
include "wiki.serviceAccountName" .
}}
securityContext
:
{{
- toYaml .Values.podSecurityContext | nindent 8
}}
{{
- if .Values.sideload.enabled
}}
initContainers
:
-
name
:
{{
.Chart.Name
}}
-sideload
image
:
"
{{
.Values.image.repository
}}:{{
default
"latest" .Values.image.tag }}"
imagePullPolicy
:
{{
default "IfNotPresent" .Values.image.imagePullPolicy
}}
env
:
{{
- toYaml .Values.sideload.env | nindent 12
}}
command
:
[
"
sh"
,
"
-c"
]
args
:
[
"
mkdir
-p
/wiki/data/sideload
&&
git
clone
--depth=1
{{
.Values.sideload.repoURL
}}
/wiki/data/sideload/"
]
{{
- end
}}
containers
:
-
name
:
{{
.Chart.Name
}}
securityContext
:
...
...
dev/helm/values.yaml
View file @
f4d9fd43
...
...
@@ -85,6 +85,17 @@ tolerations: []
affinity
:
{}
# This will allow us to install locales even without internet access using a initContainer & wikjs "sideloading"
sideload
:
enabled
:
false
# Git-Repo containing all locales.json-files you need:
repoURL
:
https://github.com/Requarks/wiki-localization
## This can be helpfull if you have internet access over a http proxy:
env
:
[]
# - name: HTTPS_PROXY
# value: http://my.proxy.com:3128
## Configuration values for the postgresql dependency.
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
##
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment