Skip to content

Commit adad551

Browse files
committed
Only remove _chart_version fields from production.yaml
1 parent 90c4f96 commit adad551

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bin/util.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@ create_production_yaml() {
4949
copy_template_if_absent etc/production.yaml etc/base.yaml
5050
tempfile=$(mktemp)
5151
mv etc/production.yaml $tempfile
52-
# only keep the 'atomicInstall', etc. fields
53-
cat $tempfile | grep -vE "^\s*#" | grep -E "atomicInstall|kubeContext|server_name|maintainer_email" > etc/production.yaml
54-
# only keep the '_install: true/false' fields
55-
cat $tempfile | grep -vE "^\s*#" | grep -B 1 --no-group-separator "_install:" >> etc/production.yaml
52+
# remove all '_chart_version' fields
53+
cat $tempfile | grep -v _chart_version > etc/production.yaml
5654
}
5755

5856
# Copies the template (defined by the given config file with suffix

0 commit comments

Comments
 (0)