Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Helm Charts for Minds Projects
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Merge Requests
1
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Helm Charts for Minds Projects
Compare Revisions
eeddc8392bea7bd9818968246f017b2710422405...5e0267f44ecb0fd6ec1bf287836cf1389a375811
Source
5e0267f44ecb0fd6ec1bf287836cf1389a375811
...
Target
eeddc8392bea7bd9818968246f017b2710422405
Compare
Commits (2)
Fix/email settings pipe
· 954c54a5
Brian Hatchet
authored
2 hours ago
954c54a5
Merge branch 'fix/email-settings-pipe' into 'master'
· 5e0267f4
Brian Hatchet
authored
2 hours ago
Fix/email settings pipe See merge request
!24
5e0267f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
+24
-5
README.md
View file @
5e0267f4
## Helm Charts for Minds
WIP
### Pipes are your friend
The settings.php generated by the interpolation of settings.yaml is very fragile.
Fortunately, helm provides pipes for handling some formatting issues.
1.
Bools and ints should
*not*
be quoted
2.
You can set a reasonable default with
```{{ .Values.key | default "value" }}}```
3.
You can ensure your values are quoted with
```{{ .Values.key | quote }}```
4.
To properly escape an empty string
```{{ .Values.key | default "" | quote }}```
### Testing
No more shipping broken templates!
```
helm install --dry-run --debug ./minds
```
This will output all the files generated by helm and allows you to spot check settings.php to make sure your changes look right.
This diff is collapsed.
minds/templates/configMap.yaml
View file @
5e0267f4
...
...
@@ -668,12 +668,12 @@ data:
$CONFIG->set('email', [
'smtp' => [
'host' => {{ .Values.email.host | quote }},
'username' => {{ .Values.email.username
|
quote }},
'password' => {{ .Values.email.password | quote }},
'host' => {{ .Values.email.host |
default "" |
quote }},
'username' => {{ .Values.email.username
| default "" |
quote }},
'password' => {{ .Values.email.password
| default ""
| quote }},
'port' => {{ .Values.email.port | default 465 }},
'auth' => {{ .Values.email.auth | default true }},
'smtp_secure' => {{ .Values.email.smtp_secure | quote }}
'smtp_secure' => {{ .Values.email.smtp_secure |
default "none" |
quote }}
]
]);
...
...
This diff is collapsed.