Consistency: Move Heat container start commands to scripts

This PS moves the container start commands to scripts. This brings
the service into alignment with others in OpenStack-Helm, and enables
easier debugging and modifcation of the launch commands for services.

Change-Id: I9a3ca50ea303fe7e866f41f6acb0194cc2aa3dac
This commit is contained in:
Pete Birley 2017-05-31 09:34:44 -05:00
parent c0651f3e22
commit e82846f1c7
9 changed files with 120 additions and 12 deletions

View File

@ -0,0 +1,19 @@
#!/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 -x
exec heat-api \
--config-file /etc/heat/heat.conf

View File

@ -0,0 +1,19 @@
#!/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 -x
exec heat-api-cfn \
--config-file /etc/heat/heat.conf

View File

@ -0,0 +1,19 @@
#!/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 -x
exec heat-api-cloudwatch \
--config-file /etc/heat/heat.conf

View File

@ -0,0 +1,19 @@
#!/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 -x
exec heat-engine \
--config-file /etc/heat/heat.conf

View File

@ -29,3 +29,11 @@ data:
{{- include "helm-toolkit.scripts.keystone_user" . | indent 4 }}
ks-domain-user.sh: |+
{{- include "helm-toolkit.scripts.keystone_domain_user" . | indent 4 }}
heat-api.sh: |
{{ tuple "bin/_heat-api.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
heat-cfn.sh: |
{{ tuple "bin/_heat-cfn.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
heat-cloudwatch.sh: |
{{ tuple "bin/_heat-cloudwatch.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
heat-engine.sh: |
{{ tuple "bin/_heat-engine.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}

View File

@ -57,9 +57,8 @@ spec:
cpu: {{ .Values.resources.heat_api.limits.cpu | quote }}
{{- end }}
command:
- heat-api
- --config-dir
- /etc/heat
- bash
- /tmp/heat-api.sh
ports:
- containerPort: {{ .Values.conf.heat.heat_api.heat.common.wsgi.bind_port }}
readinessProbe:
@ -70,6 +69,10 @@ spec:
mountPath: /etc/heat
- name: pod-var-cache-heat
mountPath: /var/cache/heat
- name: heat-bin
mountPath: /tmp/heat-api.sh
subPath: heat-api.sh
readOnly: true
- name: heat-etc
mountPath: /etc/heat/heat.conf
subPath: heat.conf
@ -88,6 +91,9 @@ spec:
emptyDir: {}
- name: pod-var-cache-heat
emptyDir: {}
- name: heat-bin
configMap:
name: heat-bin
- name: heat-etc
configMap:
name: heat-etc

View File

@ -57,9 +57,8 @@ spec:
cpu: {{ .Values.resources.heat_cfn.limits.cpu | quote }}
{{- end }}
command:
- heat-api-cfn
- --config-dir
- /etc/heat
- bash
- /tmp/heat-cfn.sh
ports:
- containerPort: {{ .Values.conf.heat.heat_api_cfn.heat.common.wsgi.bind_port }}
readinessProbe:
@ -70,6 +69,10 @@ spec:
mountPath: /etc/heat
- name: pod-var-cache-heat
mountPath: /var/cache/heat
- name: heat-bin
mountPath: /tmp/heat-cfn.sh
subPath: heat-cfn.sh
readOnly: true
- name: heat-etc
mountPath: /etc/heat/heat.conf
subPath: heat.conf
@ -88,6 +91,9 @@ spec:
emptyDir: {}
- name: pod-var-cache-heat
emptyDir: {}
- name: heat-bin
configMap:
name: heat-bin
- name: heat-etc
configMap:
name: heat-etc

View File

@ -57,9 +57,8 @@ spec:
cpu: {{ .Values.resources.heat_cloudwatch.limits.cpu | quote }}
{{- end }}
command:
- heat-api-cloudwatch
- --config-dir
- /etc/heat
- bash
- /tmp/heat-cloudwatch.sh
ports:
- containerPort: {{ .Values.conf.heat.heat_api_cloudwatch.heat.common.wsgi.bind_port }}
readinessProbe:
@ -70,6 +69,10 @@ spec:
mountPath: /etc/heat
- name: pod-var-cache-heat
mountPath: /var/cache/heat
- name: heat-bin
mountPath: /tmp/heat-cloudwatch.sh
subPath: heat-cloudwatch.sh
readOnly: true
- name: heat-etc
mountPath: /etc/heat/heat.conf
subPath: heat.conf
@ -88,6 +91,9 @@ spec:
emptyDir: {}
- name: pod-var-cache-heat
emptyDir: {}
- name: heat-bin
configMap:
name: heat-bin
- name: heat-etc
configMap:
name: heat-etc

View File

@ -48,14 +48,17 @@ spec:
cpu: {{ .Values.resources.heat_engine.limits.cpu | quote }}
{{- end }}
command:
- heat-engine
- --config-dir
- /etc/heat
- bash
- /tmp/heat-engine.sh
volumeMounts:
- name: pod-etc-heat
mountPath: /etc/heat
- name: pod-var-cache-heat
mountPath: /var/cache/heat
- name: heat-bin
mountPath: /tmp/heat-engine.sh
subPath: heat-engine.sh
readOnly: true
- name: heat-etc
mountPath: /etc/heat/heat.conf
subPath: heat.conf
@ -70,6 +73,9 @@ spec:
emptyDir: {}
- name: pod-var-cache-heat
emptyDir: {}
- name: heat-bin
configMap:
name: heat-bin
- name: heat-etc
configMap:
name: heat-etc