openstack-helm-infra/prometheus-openstack-exporter/templates/bin/_prometheus-openstack-exporter.sh.tpl
Steven Fitzpatrick 0a5a6caee6 Update openstack-exporter chart to use new image
This change updates the prometheus-openstack-exporter
chart to pull an updated image which runs on python 3.

Co-Authored By: Bharat Khare <bk552w@att.com>
Depends On: https://review.opendev.org/686252
Change-Id: I4db500ba395b1d8417491bcde82be95a039eeb4f
2019-10-21 09:22:24 -05:00

31 lines
738 B
Smarty

#!/bin/bash
{{/*
Copyright 2017 The Openstack-Helm Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/}}
set -ex
COMMAND="${@:-start}"
function start () {
exec python3 /usr/local/bin/exporter/main.py
}
function stop () {
kill -TERM 1
}
$COMMAND