Commands do work for the most part

The frontend needs better way than sed to change the api endpoint.
This commit is contained in:
Skyler Mäntysaari 2023-02-15 04:40:41 +02:00
parent 52ed0d9374
commit 6c8ac774e8
4 changed files with 28 additions and 8 deletions

View File

@ -24,7 +24,7 @@ If release name contains chart name it will be used as a full name.
{{- if contains $name .Release.Name -}}
{{- $name = .Release.Name -}}
{{- else -}}
{{- $name = printf "%s-%s" .Release.Name $name -}}
{{- $name = printf "%s" $name -}}
{{- end -}}
{{- end -}}
{{- trunc 50 $name | trimSuffix "-" -}}

View File

@ -24,7 +24,7 @@ If release name contains chart name it will be used as a full name.
{{- if contains $name .Release.Name -}}
{{- $name = .Release.Name -}}
{{- else -}}
{{- $name = printf "%s-%s" .Release.Name $name -}}
{{- $name = printf "%s" $name -}}
{{- end -}}
{{- end -}}
{{- trunc 50 $name | trimSuffix "-" -}}

View File

@ -24,7 +24,7 @@ If release name contains chart name it will be used as a full name.
{{- if contains $name .Release.Name -}}
{{- $name = .Release.Name -}}
{{- else -}}
{{- $name = printf "%s-%s" .Release.Name $name -}}
{{- $name = printf "%s" $name -}}
{{- end -}}
{{- end -}}
{{- trunc 50 $name | trimSuffix "-" -}}

View File

@ -11,7 +11,7 @@ global:
controller:
# -- enable the controller.
enabled: true
enabled: false
serviceAccount:
create: false
@ -33,16 +33,18 @@ frontend:
image:
# -- image repository
repository: 1337kavin/piped
repository: 1337kavin/piped-frontend
# -- image tag
# @chart.appVersion
tag:
# -- image pull policy
pullPolicy: IfNotPresent
command: "/bin/ash -c"
args:
- sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g /usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g "daemon off;"
# Using currently container default
#command: "/bin/tail"
#args:
# - -c
# - "sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g /usr/share/nginx/html/assets/*"
backend:
enabled: true
@ -58,6 +60,22 @@ backend:
port: 8080
protocol: HTTP
command: "/opt/java/openjdk/bin/java"
args:
- -server
- -Xmx1G
- -Xaggressive
- -XX:+UnlockExperimentalVMOptions
- -XX:+OptimizeStringConcat
- -XX:+UseStringDeduplication
- -XX:+UseCompressedOops
- -XX:+UseNUMA
- -Xgcpolicy:gencon
- -Xshareclasses:allowClasspaths
- -Xtune:virtualized
- -jar
- /app/piped.jar
image:
# -- image repository
repository: 1337kavin/piped
@ -83,6 +101,8 @@ ytproxy:
port: 8080
protocol: HTTP
command: "/app/piped-proxy"
image:
# -- image repository