summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Sheffield <ajs@sheffieldfamily.net>2018-07-10 15:56:19 -0500
committerAaron Sheffield <ajs@sheffieldfamily.net>2018-07-11 08:03:37 -0500
commit3ef8d03050c9b8cfbdcc52d83898676d4fb65282 (patch)
tree9b7a8f3017a0af9e4c4be7be943fa669a113a7f9
parentb09fee26b84650ebf29c3bcebabdf2d7965386c1 (diff)
Add test pods labels.
- Uses helm toolkit to add labels to test pods. Change-Id: I856b6522312f5a5fccbfae3bbb3fe6ccf98871ba
Notes
Notes (review): Code-Review+2: Pete Birley <pete@port.direct> Code-Review+2: Scott Hussey <sthussey@att.com> Workflow+1: Scott Hussey <sthussey@att.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 11 Jul 2018 13:40:51 +0000 Reviewed-on: https://review.openstack.org/581474 Project: openstack/airship-maas Branch: refs/heads/master
-rw-r--r--charts/maas/templates/tests/test-maas-init.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/charts/maas/templates/tests/test-maas-init.yaml b/charts/maas/templates/tests/test-maas-init.yaml
index 98ade81..fda93aa 100644
--- a/charts/maas/templates/tests/test-maas-init.yaml
+++ b/charts/maas/templates/tests/test-maas-init.yaml
@@ -11,11 +11,13 @@
11# distributed under the License is distributed on an "AS IS" BASIS, 11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and 13# See the License for the specific language governing permissions and
14# limitations under the License. */}} 14# limitations under the License.
15*/}}
15{{/* 16{{/*
16Test that the API is up and can be logged into 17Test that the API is up and can be logged into
17and that an boot image and rack controller are available*/}} 18and that an boot image and rack controller are available*/}}
18{{- if .Values.manifests.test_maas_api }} 19{{- if .Values.manifests.test_maas_api }}
20{{- $envAll := . }}
19--- 21---
20apiVersion: v1 22apiVersion: v1
21kind: Pod 23kind: Pod
@@ -23,6 +25,8 @@ metadata:
23 name: "{{ .Release.Name }}-api-test" 25 name: "{{ .Release.Name }}-api-test"
24 annotations: 26 annotations:
25 "helm.sh/hook": "test-success" 27 "helm.sh/hook": "test-success"
28 labels:
29{{ tuple $envAll "maas" "init-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
26spec: 30spec:
27 restartPolicy: Never 31 restartPolicy: Never
28 containers: 32 containers: