Add test pods labels.

- Uses helm toolkit to add labels to test pods.

Change-Id: I856b6522312f5a5fccbfae3bbb3fe6ccf98871ba
This commit is contained in:
Aaron Sheffield 2018-07-10 15:56:19 -05:00
parent b09fee26b8
commit 3ef8d03050
1 changed files with 5 additions and 1 deletions

View File

@ -11,11 +11,13 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. */}} # limitations under the License.
*/}}
{{/* {{/*
Test that the API is up and can be logged into Test that the API is up and can be logged into
and that an boot image and rack controller are available*/}} and that an boot image and rack controller are available*/}}
{{- if .Values.manifests.test_maas_api }} {{- if .Values.manifests.test_maas_api }}
{{- $envAll := . }}
--- ---
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
@ -23,6 +25,8 @@ metadata:
name: "{{ .Release.Name }}-api-test" name: "{{ .Release.Name }}-api-test"
annotations: annotations:
"helm.sh/hook": "test-success" "helm.sh/hook": "test-success"
labels:
{{ tuple $envAll "maas" "init-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
spec: spec:
restartPolicy: Never restartPolicy: Never
containers: containers: