Tempest: Add helm hook for jobs
Change-Id: Id2fa3fa81b50a5495003fe30e7859e1475f08843
This commit is contained in:
parent
537716e157
commit
a454a7cb29
@ -4,4 +4,5 @@ tempest:
|
||||
- 0.1.1 Change helm-toolkit dependency version to ">= 0.1.0"
|
||||
- 0.2.0 Remove support for releases before T
|
||||
- 0.2.1 Update htk requirements repo
|
||||
- 0.2.2 Add helm hook for ks job
|
||||
...
|
||||
|
@ -14,7 +14,7 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Tempest
|
||||
name: tempest
|
||||
version: 0.2.1
|
||||
version: 0.2.2
|
||||
home: https://docs.openstack.org/tempest/latest/
|
||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/tempest/OpenStack_Project_tempest_vertical.png
|
||||
sources:
|
||||
|
@ -12,7 +12,16 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- define "metadata.annotations.job.ks_user" }}
|
||||
helm.sh/hook: post-install,post-upgrade
|
||||
helm.sh/hook-weight: "-1"
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.manifests.job_ks_user }}
|
||||
{{- $ksUserJob := dict "envAll" . "serviceName" "tempest" -}}
|
||||
|
||||
{{- if .Values.helm3_hook }}
|
||||
{{- $_ := set $ksUserJob "jobAnnotations" (include "metadata.annotations.job.ks_user" . | fromYaml) -}}
|
||||
{{- end }}
|
||||
{{ $ksUserJob | include "helm-toolkit.manifests.job_ks_user" }}
|
||||
{{- end }}
|
||||
|
@ -25,6 +25,7 @@ metadata:
|
||||
name: {{ .Release.Name }}-run-tests
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||
helm.sh/hook: post-install,post-upgrade
|
||||
spec:
|
||||
backoffLimit: {{ .Values.jobs.run_tests.backoffLimit }}
|
||||
template:
|
||||
|
@ -93,6 +93,8 @@ dependencies:
|
||||
- endpoint: internal
|
||||
service: local_image_registry
|
||||
|
||||
helm3_hook: true
|
||||
|
||||
conf:
|
||||
script: |
|
||||
tempest run --config-file /etc/tempest/tempest.conf -w 4 --smoke
|
||||
|
Loading…
Reference in New Issue
Block a user