Browse Source

Add test pods labels.

- Uses helm toolkit to add labels to test pods.

Change-Id: I856b6522312f5a5fccbfae3bbb3fe6ccf98871ba
Aaron Sheffield 9 months ago
parent
commit
3ef8d03050
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      charts/maas/templates/tests/test-maas-init.yaml

+ 5
- 1
charts/maas/templates/tests/test-maas-init.yaml View File

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

Loading…
Cancel
Save