Add test pods labels.

- Uses helm toolkit to add labels to test pods.

Change-Id: Ib931b3573e33896ad3826b05844271bde7b6ebd0
This commit is contained in:
Aaron Sheffield 2018-07-10 15:57:09 -05:00
parent 109b78df59
commit 73b9d28def
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,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License. */}}
# limitations under the License.
*/}}
{{/*
Test the Deckhand API, to ensure that the health endpoint is active and able to respond.
*/}}
{{- if .Values.manifests.test_deckhand_api }}
{{- $envAll := . }}
---
apiVersion: v1
kind: Pod
@ -23,6 +25,8 @@ metadata:
name: "{{ .Release.Name }}-deckhand-api-test"
annotations:
"helm.sh/hook": "test-success"
labels:
{{ tuple $envAll "deckhand" "api-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
spec:
restartPolicy: Never
containers: