ac9cc7f736
* chore(questions): replace port parts with templates * chore(questions): replace controller parts with templates * remove tons of whitespce * remove quotes from strings on templates * make complete controller an include * default to recreate * remove replica and strategies as it's covered from controllerStrtegies include * remove whitespace again * replace controllertype with include (deployment/daemonset/statefulset) * replace advanced port part except targetport * remove more quotes * add hidden toggle of enable the port * new includes * update build script * controller deploy/stateful/deamon template changes * replace controllerStrategies with replicas, replica#, strategy, recreate * move 2 templates into a subfolder * remove quotes * remove disabled portals from questions and defined them on values * remove enabled portal from the questions and add it on values * one more app * Portal cleanup * remove portal templates * add more includes * replace portal links * move some templates in folders * replace ingressRoot with template * more grouping * replace persistenceroot with template * replace serviceExpertRoot * replace serviceroot * fix a rogue one * vctRoot * securityContext cleanup * remove quotes from templates on string * replace vctRoot * replace advanedSecurityRoot * replace podsecurity root * Update .github/scripts/build-catalog.sh * Update values.yaml * remove dupe portal * update build-release script * fix paths * fix apps with imageSelector Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
65 lines
1.3 KiB
YAML
65 lines
1.3 KiB
YAML
image:
|
|
repository: tccr.io/truecharts/pinry
|
|
tag: v2.1.12@sha256:fc1ddce0a4cdd0ce567db0bb6514a62880c50fcb5f1826b0bde3f3660c54123a
|
|
pullPolicy: IfNotPresent
|
|
|
|
securityContext:
|
|
readOnlyRootFilesystem: false
|
|
runAsNonRoot: false
|
|
|
|
podSecurityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
|
|
env:
|
|
SECRET_KEY:
|
|
secretKeyRef:
|
|
name: pinry-secrets
|
|
key: SECRET_KEY
|
|
|
|
service:
|
|
main:
|
|
ports:
|
|
main:
|
|
port: 10213
|
|
targetPort: 80
|
|
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
mountPath: "/data"
|
|
|
|
installContainers:
|
|
1-create-key-file:
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: "/data"
|
|
env:
|
|
- name: SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: pinry-secrets
|
|
key: SECRET_KEY
|
|
command: ["sh", "-c"]
|
|
args:
|
|
- >
|
|
keyfile="/data/production_secret_key.txt";
|
|
if [ ! -f ${keyfile} ];
|
|
then
|
|
echo "No ${keyfile} File...";
|
|
echo "Creating ${keyfile} file...";
|
|
echo "${SECRET_KEY}" > ${keyfile};
|
|
if [ -f ${keyfile} ];
|
|
then
|
|
echo "Success!";
|
|
else
|
|
echo "Failed.";
|
|
fi;
|
|
else
|
|
echo "${keyfile} File exists. Skipping...";
|
|
fi;
|
|
|
|
portal:
|
|
enabled: true
|