Browse Source

[fix] add labels to shipyard jobs

Adds the appropriate labels to the ks-user and ks-service jobs
to ensure they can be referenced for deletion.

Change-Id: I56d6f67d37e7293f596193a8bf7311e82cac3e7f
changes/87/569187/1
Bryan Strassner 4 years ago
parent
commit
2e780aef5a
  1. 2
      charts/shipyard/templates/job-ks-service.yaml
  2. 3
      charts/shipyard/templates/job-ks-user.yaml

2
charts/shipyard/templates/job-ks-service.yaml

@ -28,7 +28,7 @@ spec:
template:
metadata:
labels:
{{ tuple $envAll "shipyard" "ks-user" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
{{ tuple $envAll "shipyard" "ks-service" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
spec:
serviceAccountName: {{ $serviceAccountName }}
restartPolicy: OnFailure

3
charts/shipyard/templates/job-ks-user.yaml

@ -27,6 +27,9 @@ metadata:
name: shipyard-ks-user
spec:
template:
metadata:
labels:
{{ tuple $envAll "shipyard" "ks-user" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
spec:
serviceAccountName: {{ $serviceAccountName }}
restartPolicy: OnFailure

Loading…
Cancel
Save