Browse Source

Add node selector to test pod

This PS looks to add a node selector into the test pod's spec.

Change-Id: I11989d5106363e8c3c7d9950da1b4247cfef7539
changes/51/666551/1
Dejaeger, Darren (dd118r) 2 years ago
parent
commit
4c33f54fea
2 changed files with 5 additions and 0 deletions
  1. +2
    -0
      charts/shipyard/templates/tests/test-shipyard-api.yaml
  2. +3
    -0
      charts/shipyard/values.yaml

+ 2
- 0
charts/shipyard/templates/tests/test-shipyard-api.yaml View File

@ -30,6 +30,8 @@ metadata:
{{ tuple $envAll "shipyard" "api-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
spec:
restartPolicy: Never
nodeSelector:
{{ .Values.labels.test.node_selector_key }}: {{ .Values.labels.test.node_selector_value }}
containers:
- name: "{{ .Release.Name }}-shipyard-api-test"
env:


+ 3
- 0
charts/shipyard/values.yaml View File

@ -25,6 +25,9 @@ labels:
airflow:
node_selector_key: ucp-control-plane
node_selector_value: enabled
test:
node_selector_key: ucp-control-plane
node_selector_value: enabled
images:
tags:


Loading…
Cancel
Save