Armada check: Add test directive to charts

This adds support for executing helm tests via the armada test
directive. It enables theses tests for all services, except for
nova and neutron as executing tests with armada force a chart to
wait. Forcing nova and neutron to wait effectively sequences the
charts, which will result in a failure to deploy past those
services

Depends-On: https://review.openstack.org/#/c/581148

Change-Id: I6ac845c82d744e2f5fd79c3e2ff3c1479dd1ddab
This commit is contained in:
Steve Wilkerson 2018-07-02 12:46:03 -05:00
parent 3a48b149c5
commit 2840259fb8
14 changed files with 120 additions and 0 deletions

View File

@ -28,6 +28,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: "{{.Release.Name}}-test" name: "{{.Release.Name}}-test"
labels:
{{ tuple $envAll "barbican" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -27,6 +27,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: {{ print $envAll.Release.Name "-test" }} name: {{ print $envAll.Release.Name "-test" }}
labels:
{{ tuple $envAll "cinder" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -23,6 +23,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: "{{.Release.Name}}-test" name: "{{.Release.Name}}-test"
labels:
{{ tuple $envAll "congress" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -27,6 +27,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: {{ print $envAll.Release.Name "-test" }} name: {{ print $envAll.Release.Name "-test" }}
labels:
{{ tuple $envAll "glance" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -27,6 +27,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: "{{.Release.Name}}-test" name: "{{.Release.Name}}-test"
labels:
{{ tuple $envAll "gnocchi" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -27,6 +27,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: {{ print $envAll.Release.Name "-test" }} name: {{ print $envAll.Release.Name "-test" }}
labels:
{{ tuple $envAll "heat" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -27,6 +27,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: {{ print $envAll.Release.Name "-test" }} name: {{ print $envAll.Release.Name "-test" }}
labels:
{{ tuple $envAll "keystone" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -27,6 +27,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: {{ print $envAll.Release.Name "-test" }} name: {{ print $envAll.Release.Name "-test" }}
labels:
{{ tuple $envAll "mistral" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -27,6 +27,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: {{ print $envAll.Release.Name "-test" }} name: {{ print $envAll.Release.Name "-test" }}
labels:
{{ tuple $envAll "neutron" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -27,6 +27,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: {{ print $envAll.Release.Name "-test" }} name: {{ print $envAll.Release.Name "-test" }}
labels:
{{ tuple $envAll "nova" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -24,6 +24,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: "{{.Release.Name}}-test" name: "{{.Release.Name}}-test"
labels:
{{ tuple $envAll "rabbitmq" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -27,6 +27,8 @@ apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: "{{.Release.Name}}-test" name: "{{.Release.Name}}-test"
labels:
{{ tuple $envAll "senlin" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
spec: spec:

View File

@ -206,6 +206,8 @@ data:
timeout: 3600 timeout: 3600
labels: labels:
release_group: osh-infra-elasticsearch release_group: osh-infra-elasticsearch
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -215,6 +217,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-infra-elasticsearch release_group: osh-infra-elasticsearch
- type: pod
labels:
release_group: osh-infra-elasticsearch
component: test
values: values:
endpoints: endpoints:
elasticsearch: elasticsearch:
@ -255,6 +261,8 @@ data:
timeout: 3600 timeout: 3600
labels: labels:
release_group: osh-infra-fluent-logging release_group: osh-infra-fluent-logging
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -264,6 +272,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-infra-fluent-logging release_group: osh-infra-fluent-logging
- type: pod
labels:
release_group: osh-infra-fluent-logging
component: test
values: values:
endpoints: endpoints:
elasticsearch: elasticsearch:
@ -355,6 +367,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-infra-prometheus release_group: osh-infra-prometheus
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -364,6 +378,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-infra-prometheus release_group: osh-infra-prometheus
- type: pod
labels:
release_group: osh-infra-prometheus
component: test
values: values:
labels: labels:
prometheus: prometheus:
@ -506,6 +524,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-infra-grafana release_group: osh-infra-grafana
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -515,6 +535,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-infra-grafana release_group: osh-infra-grafana
- type: pod
labels:
release_group: osh-infra-grafana
component: test
values: values:
endpoints: endpoints:
oslo_db: oslo_db:

View File

@ -209,6 +209,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-keystone-rabbitmq release_group: osh-keystone-rabbitmq
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -218,6 +220,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-keystone-rabbitmq release_group: osh-keystone-rabbitmq
- type: pod
labels:
release_group: osh-keystone-rabbitmq
component: test
values: values:
endpoints: endpoints:
oslo_messaging: oslo_messaging:
@ -260,6 +266,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-keystone release_group: osh-keystone
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -269,6 +277,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-keystone release_group: osh-keystone
- type: pod
labels:
release_group: osh-keystone
component: test
values: values:
endpoints: endpoints:
identity: identity:
@ -391,6 +403,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-glance-rabbitmq release_group: osh-glance-rabbitmq
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -400,6 +414,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-glance-rabbitmq release_group: osh-glance-rabbitmq
- type: pod
labels:
release_group: osh-glance-rabbitmq
component: test
values: values:
endpoints: endpoints:
oslo_messaging: oslo_messaging:
@ -442,6 +460,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-glance release_group: osh-glance
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -451,6 +471,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-glance release_group: osh-glance
- type: pod
labels:
release_group: osh-glance
component: test
values: values:
endpoints: endpoints:
identity: identity:
@ -512,6 +536,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-cinder-rabbitmq release_group: osh-cinder-rabbitmq
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -521,6 +547,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-cinder-rabbitmq release_group: osh-cinder-rabbitmq
- type: pod
labels:
release_group: osh-cinder-rabbitmq
component: test
values: values:
endpoints: endpoints:
oslo_messaging: oslo_messaging:
@ -563,6 +593,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-cinder release_group: osh-cinder
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -572,6 +604,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-cinder release_group: osh-cinder
- type: pod
labels:
release_group: osh-cinder
component: test
values: values:
endpoints: endpoints:
identity: identity:
@ -705,6 +741,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-nova-rabbitmq release_group: osh-nova-rabbitmq
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -714,6 +752,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-nova-rabbitmq release_group: osh-nova-rabbitmq
- type: pod
labels:
release_group: osh-nova-rabbitmq
component: test
values: values:
endpoints: endpoints:
oslo_messaging: oslo_messaging:
@ -910,6 +952,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-neutron-rabbitmq release_group: osh-neutron-rabbitmq
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -919,6 +963,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-neutron-rabbitmq release_group: osh-neutron-rabbitmq
- type: pod
labels:
release_group: osh-neutron-rabbitmq
component: test
values: values:
endpoints: endpoints:
oslo_messaging: oslo_messaging:
@ -1085,6 +1133,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-heat-rabbitmq release_group: osh-heat-rabbitmq
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -1094,6 +1144,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-heat-rabbitmq release_group: osh-heat-rabbitmq
- type: pod
labels:
release_group: osh-heat-rabbitmq
component: test
values: values:
endpoints: endpoints:
oslo_messaging: oslo_messaging:
@ -1136,6 +1190,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-heat release_group: osh-heat
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -1145,6 +1201,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-heat release_group: osh-heat
- type: pod
labels:
release_group: osh-heat
component: test
values: values:
endpoints: endpoints:
identity: identity:
@ -1218,6 +1278,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-barbican-rabbitmq release_group: osh-barbican-rabbitmq
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -1227,6 +1289,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-barbican-rabbitmq release_group: osh-barbican-rabbitmq
- type: pod
labels:
release_group: osh-barbican-rabbitmq
component: test
values: values:
endpoints: endpoints:
oslo_messaging: oslo_messaging:
@ -1269,6 +1335,8 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-barbican release_group: osh-barbican
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -1278,6 +1346,10 @@ data:
- type: job - type: job
labels: labels:
release_group: osh-barbican release_group: osh-barbican
- type: pod
labels:
release_group: osh-barbican
component: test
values: values:
endpoints: endpoints:
identity: identity: