File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
dev/preview/workflow/preview Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ if [[ -f "/tmp/payment" ]] ; then
40
40
printf \\ n' ---' \\ n >> k8s.yaml
41
41
cat " /tmp/payment" >> k8s.yaml
42
42
fi
43
+ # if public-api is configured: Append the YAML objects
44
+ if [[ -f " /tmp/public-api" ]] ; then
45
+ echo " found /tmp/public-api, appending to k8s.yaml now"
46
+ # do not make any assumptions about new lines
47
+ printf \\ n' ---' \\ n >> k8s.yaml
48
+ cat " /tmp/public-api" >> k8s.yaml
49
+ fi
43
50
44
51
# count YAML like lines in the k8s manifest file
45
52
MATCHES=" $( grep -c -- --- k8s.yaml) "
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ data :
3
+ personal-access-token-signing-key : Zm9vCg==
4
+ kind : Secret
5
+ metadata :
6
+ name : personal-access-token-signing-key
7
+ namespace : default
8
+ type : Opaque
Original file line number Diff line number Diff line change @@ -383,6 +383,11 @@ yq w -i "${INSTALLER_CONFIG_PATH}" experimental.webapp.configcatKey "WBLaCPtkjkq
383
383
yq w -i " ${INSTALLER_CONFIG_PATH} " experimental.webapp.proxy.configcat.baseUrl " https://cdn-global.configcat.com"
384
384
yq w -i " ${INSTALLER_CONFIG_PATH} " experimental.webapp.proxy.configcat.pollInterval " 1m"
385
385
386
+ #
387
+ # configurePublicAPI
388
+ #
389
+ yq w -i " ${INSTALLER_CONFIG_PATH} " experimental.webapp.publicApi.personalAccessTokenSigningKeySecretName " personal-access-token-signing-key"
390
+
386
391
#
387
392
# configureDefaultTemplate
388
393
#
@@ -489,6 +494,16 @@ for manifest in "$ROOT"/.werft/jobs/build/payment/*.yaml; do
489
494
echo " ---" >> /tmp/payment
490
495
done
491
496
497
+ #
498
+ # configurePublicAPI
499
+ #
500
+
501
+ rm -f /tmp/public-api
502
+ for manifest in " $ROOT " /.werft/jobs/build/public-api/* .yaml; do
503
+ cat " $manifest " >> /tmp/public-api
504
+ echo " ---" >> /tmp/public-api
505
+ done
506
+
492
507
#
493
508
# Run post-process script
494
509
#
@@ -501,6 +516,7 @@ WITH_VM=true "$ROOT/.werft/jobs/build/installer/post-process.sh" "${PREVIEW_NAME
501
516
rm -f /tmp/payment
502
517
rm -f /tmp/defaultFeatureFlags
503
518
rm -f /tmp/license
519
+ rm -f /tmp/public-api
504
520
505
521
# ===============
506
522
# Install
You can’t perform that action at this time.
0 commit comments