Commit new Chart releases for TrueCharts

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot 2022-10-30 00:23:24 +00:00
parent def7ab9a49
commit 88f8a3e49f
14 changed files with 5180 additions and 0 deletions

View File

@ -0,0 +1,99 @@
# Changelog
## [meshcentral-6.0.1](https://github.com/truecharts/charts/compare/meshcentral-6.0.0...meshcentral-6.0.1) (2022-10-30)
### Feat
- Move to Stable ([#4237](https://github.com/truecharts/charts/issues/4237))
## [meshcentral-6.0.0](https://github.com/truecharts/charts/compare/meshcentral-5.0.16...meshcentral-6.0.0) (2022-10-29)
### Chore
- Auto-update chart README [skip ci]
### Feat
- move to stable ([#4234](https://github.com/truecharts/charts/issues/4234))
## [meshcentral-5.0.16](https://github.com/truecharts/charts/compare/meshcentral-5.0.15...meshcentral-5.0.16) (2022-10-29)
### Chore
- Auto-update chart README [skip ci]
### Feat
- allow additiional custom config on UI ([#4228](https://github.com/truecharts/charts/issues/4228))
## [meshcentral-5.0.15](https://github.com/truecharts/charts/compare/meshcentral-5.0.14...meshcentral-5.0.15) (2022-10-29)
### Chore
- Auto-update chart README [skip ci]
- update docker general non-major ([#4230](https://github.com/truecharts/charts/issues/4230))
## [meshcentral-5.0.14](https://github.com/truecharts/charts/compare/meshcentral-5.0.13...meshcentral-5.0.14) (2022-10-28)
### Chore
- Auto-update chart README [skip ci]
- update docker general non-major ([#4218](https://github.com/truecharts/charts/issues/4218))
## [meshcentral-5.0.13](https://github.com/truecharts/charts/compare/meshcentral-5.0.12...meshcentral-5.0.13) (2022-10-27)
### Chore
- Auto-update chart README [skip ci]
### Fix
- rework ([#4208](https://github.com/truecharts/charts/issues/4208))
## [meshcentral-5.0.12](https://github.com/truecharts/charts/compare/meshcentral-5.0.11...meshcentral-5.0.12) (2022-10-27)
### Chore
- Auto-update chart README [skip ci]
### Fix
- remove maintenancemode config because if set to any value enables it ([#4215](https://github.com/truecharts/charts/issues/4215))
## [meshcentral-5.0.11](https://github.com/truecharts/charts/compare/meshcentral-5.0.10...meshcentral-5.0.11) (2022-10-27)
### Chore
- Auto-update chart README [skip ci]
### Fix
- try unsetting maintanancemode ([#4214](https://github.com/truecharts/charts/issues/4214))
## [meshcentral-5.0.10](https://github.com/truecharts/charts/compare/meshcentral-5.0.9...meshcentral-5.0.10) (2022-10-27)

View File

@ -0,0 +1,9 @@
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 10.7.8
- name: mongodb
repository: https://charts.truecharts.org/
version: 2.0.42
digest: sha256:368ab09d96987d02826b4821e7040b6230712e811bfec896c486195289b5f81d
generated: "2022-10-30T00:21:06.506032293Z"

View File

@ -0,0 +1,34 @@
apiVersion: v2
kubeVersion: ">=1.16.0-0"
name: meshcentral
version: 6.0.1
appVersion: "1.0.92"
description: MeshCentral is a full computer management web site
type: application
deprecated: false
home: https://truecharts.org/docs/charts/stable/meshcentral
icon: https://truecharts.org/img/hotlink-ok/chart-icons/meshcentral.png
keywords:
- meshcentral
- teamviewer
- rdp
sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/meshcentral
- https://github.com/Ylianst/MeshCentral
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 10.7.8
- condition: mongodb.enabled
name: mongodb
repository: https://charts.truecharts.org/
version: 2.0.42
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
annotations:
truecharts.org/catagories: |
- cloud
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U

View File

@ -0,0 +1,107 @@
# meshcentral
MeshCentral is a full computer management web site
TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE.
This readme is just an automatically generated general guide on installing our Helm Charts and Apps.
For more information, please click here: [meshcentral](https://truecharts.org/docs/charts/stable/meshcentral)
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)**
## Source Code
* <https://github.com/truecharts/charts/tree/master/charts/stable/meshcentral>
* <https://github.com/Ylianst/MeshCentral>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://charts.truecharts.org/ | mongodb | 2.0.42 |
| https://library-charts.truecharts.org | common | 10.7.8 |
## Installing the Chart
### TrueNAS SCALE
To install this Chart on TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/docs/manual/SCALE%20Apps/Installing-an-App).
### Helm
To install the chart with the release name `meshcentral`
```console
helm repo add TrueCharts https://charts.truecharts.org
helm repo update
helm install meshcentral TrueCharts/meshcentral
```
## Uninstall
### TrueNAS SCALE
**Upgrading, Rolling Back and Uninstalling the Chart**
To upgrade, rollback or delete this Chart from TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/docs/manual/SCALE%20Apps/Upgrade-rollback-delete-an-App).
### Helm
To uninstall the `meshcentral` deployment
```console
helm uninstall meshcentral
```
## Configuration
### Helm
#### Available Settings
Read through the values.yaml file. It has several commented out suggested values.
Other values may be used from the [values.yaml](https://github.com/truecharts/library-charts/tree/main/charts/stable/common/values.yaml) from the [common library](https://github.com/truecharts/library-charts/tree/main/charts/common).
#### Configure using the command line
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
```console
helm install meshcentral \
--set env.TZ="America/New York" \
TrueCharts/meshcentral
```
#### Configure using a yaml file
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.
```console
helm install meshcentral TrueCharts/meshcentral -f values.yaml
```
#### Connecting to other charts
If you need to connect this Chart to other Charts on TrueNAS SCALE, please refer to our [Linking Charts Internally](https://truecharts.org/docs/manual/SCALE%20Apps/linking-apps) quick-start guide.
## Support
- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/docs/manual/SCALE%20Apps/Important-MUST-READ).
- See the [Website](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/apps/issues/new/choose)
---
## Sponsor TrueCharts
TrueCharts can only exist due to the incredible effort of our staff.
Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can!
---
All Rights Reserved - The TrueCharts Project

View File

@ -0,0 +1,8 @@
MeshCentral is a full computer management web site
This App is supplied by TrueCharts, for more information visit the manual: [https://truecharts.org/docs/charts/stable/meshcentral](https://truecharts.org/docs/charts/stable/meshcentral)
---
TrueCharts can only exist due to the incredible effort of our staff.
Please consider making a [donation](https://truecharts.org/docs/about/sponsor) or contributing back to the project any way you can!

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,5 @@
service:
main:
ports:
main:
protocol: HTTPS

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,172 @@
{{/* Define the secret */}}
{{- define "meshcentral.secret" -}}
{{- $secretName := printf "%s-secret" (include "tc.common.names.fullname" .) }}
{{- $secretStorageName := printf "%s-storage-secret" (include "tc.common.names.fullname" .) }}
{{- $config := .Values.meshcentral }}
{{- $mc_custom := .Values.additional_meshcentral }}
{{- $isScale := false }}
{{- if hasKey .Values.global "isSCALE" }}
{{- $isScale = .Values.global.isSCALE }}
{{- else }}
{{- $isScale = false }}
{{- end }}
{{- if $isScale }}
{{- if .Values.additional_meshcentral }}
{{- $mc_custom = (include "render.custom.scale.values" $mc_custom) }}
{{- $mc_custom_merged := dict }}
{{/* We created a new unique section# for each key we parsed */}}
{{/* And we merge them here, as without it we would have multiple */}}
{{/* same top level keys */}}
{{- range $section := (fromYaml $mc_custom) }}
{{- $mc_custom_merged = mergeOverwrite $mc_custom_merged $section }}
{{- end }}
{{- $config = mergeOverwrite $config $mc_custom_merged }}
{{- end }}
{{- end }}
{{- $sessionKey := "" }}
{{- with (lookup "v1" "Secret" .Release.Namespace $secretStorageName) }}
{{- $sessionKey = (index .data "session_key") }}
{{- else }}
{{- $sessionKey = randAlphaNum 32 }}
{{- end }}
{{/* Inject some values */}}
{{- $_ := set $config "$schema" "http://info.meshcentral.com/downloads/meshcentral-config-schema.json" }}
{{- if not (hasKey $config "settings") }}
{{- $_ := set $config "settings" dict }}
{{- end }}
{{- $_ := set $config.settings "mongoDB" (.Values.mongodb.url.complete | trimAll "\"") }}
{{- $_ := set $config.settings "mongoDbName" .Values.mongodb.mongodbDatabase }}
{{- $_ := set $config.settings "sessionKey" $sessionKey }}
{{- $_ := set $config.settings "port" .Values.service.main.ports.main.port }}
{{/* Force disable some functions that are not appliable in docker */}}
{{- $_ := set $config.settings "selfUpdate" false }}
{{- $_ := set $config.settings "cleanNpmCacheOnUpdate" false }}
{{/* Disallows administrators to update the server from the My Server tab. For ANY domains defined */}}
{{- range $domain := $config.domains }}
{{- if not (hasKey $domain "myServer") }}
{{- $_ := set $domain "myServer" dict }}
{{- end }}
{{- $_ := set $domain.myServer "Upgrade" false }}
{{- end }}
{{- if $isScale }}
{{- $config = (include "mergeAndrenameDefaultDomain" $config) }}
{{- $config = (include "prune.keys.scale" (fromYaml $config)) }}
{{- else }}
{{- $config = (include "prune.keys" $config) }}
{{- end }}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ $secretStorageName }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
data:
{{/* Store session_key to reuse */}}
session_key: {{ $sessionKey | b64enc }}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ $secretName }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
data:
{{/* The actual config */}}
config.json: |
{{- toPrettyJson (fromYaml $config) | b64enc | nindent 4 }}
{{- end }}
{{/* Prunes keys that start with _ */}}
{{- define "prune.keys" }}
{{- $values := . }}
{{- range $k, $v := $values }}
{{- if (hasPrefix "_" $k) }}
{{- $_ := unset $values $k }}
{{- else }}
{{- if eq (kindOf $v) "map" }}
{{- $v := (include "prune.keys" $v) }}
{{- end }}
{{- end }}
{{- end }}
{{- toYaml $values }}
{{- end }}
{{/* Only on TrueNAS Scale */}}
{{/* Prunes empty lists */}}
{{/* Prunes int and float equal to -99 */}}
{{/* Prunes empty strings (Does not prune empty strings in lists) */}}
{{/* Prunes keys that start with _ */}}
{{- define "prune.keys.scale" }}
{{- $values := . }}
{{- range $k, $v := $values }}
{{- if eq (kindOf $v) "string" }}
{{- if not $v }}
{{- $_ := unset $values $k }}
{{- end }}
{{- end }}
{{- if or (eq (kindOf $v) "float64") (eq (kindOf $v) "int64") }}
{{- if eq (int $v) -99 }}
{{- $_ := unset $values $k }}
{{- end }}
{{- end }}
{{- if eq (kindOf $v) "slice" }}
{{- if not $v }}
{{- $_ := unset $values $k }}
{{- end }}
{{- end }}
{{- if (hasPrefix "_" $k) }}
{{- $_ := unset $values $k }}
{{- else }}
{{- if eq (kindOf $v) "map" }}
{{- $v := (include "prune.keys.scale" $v) }}
{{- end }}
{{- end }}
{{- end }}
{{- toYaml $values }}
{{- end }}
{{/* Renames tcdefaultdomain variable to "" as this is the key used by MeshCentral */}}
{{/* but SCALE GUI does not handle it well */}}
{{- define "mergeAndrenameDefaultDomain" }}
{{- $values := . }}
{{- $defaultDomain := index $values.domains "" }}
{{- $computedDomain := mergeOverwrite $defaultDomain $values.domains.tcdefaultdomain }}
{{- $_ := set $values.domains "" $computedDomain }}
{{- $_ := unset $values.domains "tcdefaultdomain" }}
{{- toYaml $values }}
{{- end }}
{{/* Takes a list of dicts with a value and a */}}
{{/* key formatted in dot notaion and converts it to yaml */}}
{{- define "render.custom.scale.values" }}
{{- $values := . }}
{{- $section := 1 }}
{{- range $item := $values }}
{{- $indent := 2 }}
{{- printf "section%v" $section | nindent 0 }}:
{{- $section = (add 1 (int $section)) }}
{{- range (split "." $item.key) }}
{{- . | nindent (int $indent) }}:
{{- $indent = (add 2 (int $indent)) }}
{{- end -}}
{{- printf " %v" $item.value }}
{{- end }}
{{- end }}

View File

@ -0,0 +1,23 @@
{{/* Make sure all variables are set properly */}}
{{- include "tc.common.loader.init" . }}
{{/* Render secret */}}
{{- include "meshcentral.secret" . }}
{{- define "meshcentral.probes" -}}
probes:
liveness:
type: {{ .Values.service.main.ports.main.protocol }}
path: /health.ashx
readiness:
type: {{ .Values.service.main.ports.main.protocol }}
path: /health.ashx
startup:
type: {{ .Values.service.main.ports.main.protocol }}
path: /health.ashx
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "meshcentral.probes" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}

View File

View File

@ -0,0 +1,4 @@
icon_url: https://truecharts.org/img/hotlink-ok/chart-icons/meshcentral.png
categories:
- cloud