forked from openmediavault/openmediavault
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for template placeholders in recipes (openmediavault#1733)
The following placeholders are supported: - hostname() - domain() - fqdn() - uid('<NAME>') - gid('<NAME>') - sharedfolder_path('<NAME>') - config('<DB_OBJ_ID>', '<UUID>') Examples: ``` apiVersion: helm.cattle.io/v1 kind: HelmChart metadata: name: filebrowser namespace: filebrowser-app spec: repo: https://utkuozdemir.org/helm-charts chart: filebrowser targetNamespace: filebrowser-app valuesContent: |- securityContext: runAsNonRoot: true runAsUser: {{ uid('filebrowser') }} runAsGroup: {{ gid("users") }} rootDir: type: hostPath hostPath: path: {{ sharedfolder_path('data') }} ``` ``` args: - "--port 3000" - "--base /wetty" - "--force-ssh" - "--ssh-port {{ config('conf.service.ssh') | get('port') }}" - "--ssh-host={{ hostname }}" ``` Signed-off-by: Volker Theile <votdev@gmx.de>
- Loading branch information
Showing
23 changed files
with
2,006 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
etc/* etc/ | ||
srv/* srv/ | ||
usr/share/openmediavault/* usr/share/openmediavault/ | ||
usr/share/php/openmediavault/* usr/share/php/openmediavault/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
deb/openmediavault-k8s/usr/share/php/openmediavault/composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"twig/twig": "^3.0" | ||
} | ||
} |
Oops, something went wrong.