Allow resource limits and add config validator.

Fixes #4
This commit is contained in:
Skyler Mäntysaari 2023-04-18 01:42:33 +03:00
parent 51a7f5e226
commit c26e63c5ba
6 changed files with 27 additions and 6 deletions

View File

@ -9,7 +9,7 @@ sources:
- https://github.com/TeamPiped/piped-proxy - https://github.com/TeamPiped/piped-proxy
keywords: keywords:
- streaming - streaming
version: 2.0.1 version: 2.0.2
appVersion: latest appVersion: latest
kubeVersion: ">=1.22.0-0" kubeVersion: ">=1.22.0-0"
maintainers: maintainers:
@ -27,4 +27,6 @@ dependencies:
annotations: annotations:
artifacthub.io/changes: |- artifacthub.io/changes: |-
- kind: fixed - kind: fixed
description: "The backend configmap generation (GH issue: https://github.com/TeamPiped/Piped-Kubernetes/issues/2)" description: Allow specifying of resource limits.
- kind: changed
description: Added a config validator for frontend.

View File

@ -1,6 +1,6 @@
# piped # piped
![Version: 2.0.1](https://img.shields.io/badge/Version-2.0.1-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) ![Version: 2.0.2](https://img.shields.io/badge/Version-2.0.2-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
Piped is an alternative privacy-friendly YouTube frontend which is efficient by design. Piped is an alternative privacy-friendly YouTube frontend which is efficient by design.
@ -160,7 +160,7 @@ helm install piped TeamPiped/piped -f values.yaml
## Changelog ## Changelog
### Version 2.0.1 ### Version 2.0.2
#### Added #### Added
@ -168,11 +168,11 @@ N/A
#### Changed #### Changed
N/A * Added a config validator for frontend.
#### Fixed #### Fixed
- The backend configmap generation (GH issue: https://github.com/TeamPiped/Piped-Kubernetes/issues/2) * Allow specifying of resource limits.
## Support ## Support

View File

@ -102,4 +102,8 @@ topologySpreadConstraints:
tolerations: tolerations:
{{- toYaml . | nindent 2 }} {{- toYaml . | nindent 2 }}
{{- end }} {{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end -}} {{- end -}}

View File

@ -0,0 +1,7 @@
{{- if .Values.frontend.env }}
{{- $envVar := .Values.frontend.env.BACKEND_HOSTNAME }}
{{ else if .Values.ingress.main.enabled }}
{{- $envVar := index (index .Values.ingress.main.hosts 0) "host" }}
{{- else }}
{{- fail "Frontend container environment is missing a required variable BACKEND_HOSTNAME or main ingress is not enabled." .Values.frontend.env }}
{{- end }}

View File

@ -98,4 +98,8 @@ topologySpreadConstraints:
tolerations: tolerations:
{{- toYaml . | nindent 2 }} {{- toYaml . | nindent 2 }}
{{- end }} {{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end -}} {{- end -}}

View File

@ -102,4 +102,8 @@ topologySpreadConstraints:
tolerations: tolerations:
{{- toYaml . | nindent 2 }} {{- toYaml . | nindent 2 }}
{{- end -}} {{- end -}}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end -}} {{- end -}}