)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8898,"name":"Chris Wedgwood","email":"cw@f00f.org","username":"anticw"},"change_message_id":"296394adf416d34fae57c5aa9fb4885b9c869aff","unresolved":true,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Adding the feature to launch prometheus custom script"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This change adds feature to launch prometheus process"},{"line_number":10,"context_line":"using a custom script which should be stored in override values."},{"line_number":11,"context_line":"Because the known issue"},{"line_number":12,"context_line":"https://github.com/prometheus/prometheus/issues/6934 is still open many years,"},{"line_number":13,"context_line":"we are going to sruggle with growing WAL files using our"},{"line_number":14,"context_line":"custom downstream wrapper script which stops prometheus process and deletes WALs."},{"line_number":15,"context_line":"This solution can not fit all customers because comletely kills"},{"line_number":16,"context_line":" wal cached data but it is ok for our purposes."},{"line_number":17,"context_line":"Such way I just added the feature to use another custom script"},{"line_number":18,"context_line":"to launch prometheus and left original functionality by default."},{"line_number":19,"context_line":"Default/custom mode are defined in \u0027values.yaml\u0027 as the body"},{"line_number":20,"context_line":"of the custom lancher script."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"Change-Id: I929ee8f1dbe0a00c79f7dd24a92a75bc69650315"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"931e26a0_8cb41570","line":20,"range":{"start_line":9,"start_character":1,"end_line":20,"end_character":7},"updated":"2023-01-03 06:19:02.000000000","message":"reflow?","commit_id":"7f304bdd35c1e847acd6ab6d1052d4f4d271e93b"}],"prometheus/templates/bin/_prometheus.sh.tpl":[{"author":{"_account_id":8898,"name":"Chris Wedgwood","email":"cw@f00f.org","username":"anticw"},"change_message_id":"296394adf416d34fae57c5aa9fb4885b9c869aff","unresolved":true,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"set -ex"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"# Two ways how to launch init process in container: by default and custom (defined in override values)."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"{{ $deflaunch :\u003d .Values.procLaunch.prometheus.default }}"},{"line_number":22,"context_line":"if [ \"{{ $deflaunch }}\" \u003d true ]"},{"line_number":23,"context_line":"then"},{"line_number":24,"context_line":"  COMMAND\u003d\"${@:-start}\""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"  function start () {"},{"line_number":27,"context_line":"  {{ $flags :\u003d include \"prometheus.utils.command_line_flags\" .Values.conf.prometheus.command_line_flags }}"},{"line_number":28,"context_line":"    exec /bin/prometheus --config.file\u003d/etc/config/prometheus.yml {{ $flags }}"},{"line_number":29,"context_line":"  }"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"  function stop () {"},{"line_number":32,"context_line":"    kill -TERM 1"},{"line_number":33,"context_line":"  }"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"  $COMMAND"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"else"},{"line_number":38,"context_line":"  {{ tpl (.Values.procLaunch.prometheus.customLaunch) . }}"},{"line_number":39,"context_line":"fi"}],"source_content_type":"text/x-smarty","patch_set":3,"id":"0c02a8a5_805f91fb","line":39,"range":{"start_line":19,"start_character":0,"end_line":39,"end_character":2},"updated":"2023-01-03 06:19:02.000000000","message":"this is a mixture if gotpl and bash\nit was like that before you touched it\n\ni wonder if we\u0027re going to make changes here though if we shouldn\u0027t separate things out so that we use gotpl to pass in values and put the logic/flow entirely in bash to make it easier to read and debug?","commit_id":"7f304bdd35c1e847acd6ab6d1052d4f4d271e93b"}]}
