Skip to content

Commit c8ea058

Browse files
committed
Workaround for property substitution not happening in app manifest
See issue: cf-platform-eng/tile-generator#199 (Once/if this is implemented, can remove sed hack)
1 parent aee30d6 commit c8ea058

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

tile/tile.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,23 +121,15 @@ forms:
121121
packages:
122122
- name: splunk-firehose-nozzle
123123
type: app
124-
label: Splunk-Firehose-Nozzle
124+
label: Splunk-Firehose-Nozzle
125125
manifest:
126-
memory: 512M
127-
instances: (( .properties.scale_out_nozzle.value ))
126+
memory: 512M
127+
instances: MY_INSTANCE_COUNT
128128
buildpack: binary_buildpack
129129
path: ../splunk-firehose-nozzle
130130
command: ./splunk-firehose-nozzle
131131
env:
132132
GOPACKAGENAME: main
133-
134-
135-
136-
137-
138-
139-
140-
141-
142-
143133

134+
pre_deploy:
135+
sed -i "s/MY_INSTANCE_COUNT/$SCALE_OUT_NOZZLE/g" $PACKAGE_PATH/splunk_firehose_nozzle/manifest.yml

0 commit comments

Comments
 (0)