Pod labels on the deployment are required for
integration in StarlingX.
TEST PLAN
PASS: Chart can be deployed with new values present
1. Create test-values.yaml with podAnnotations/podLabels filled
e.g.
```yaml
---
podLabels:
app.starlingx.io/component: platform
```
2. cd into charts directory
3. Run: helm install --create-namespace -n oran-o2 \
-f values.yaml -f test-values.yaml oran-o2 .
4. Confirm workload pods contain the annotation/labels in test-values
Issue-ID: INF-395
Signed-off-by: Joshua Kraitberg <joshua.kraitberg@windriver.com>
Change-Id: Ib3e44eb7e0f1ab707f50615be30d16e33b0c8af8
-# Copyright (C) 2021 Wind River Systems, Inc.
+# Copyright (C) 2021-2023 Wind River Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
metadata:
labels:
app: o2api
+ {{- with .Values.podLabels }}
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ annotations:
+ {{- with .Values.podAnnotations }}
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
spec:
serviceAccountName: {{ .Values.o2ims.serviceaccountname }}
{{- if .Values.imagePullSecrets }}
-# Copyright (C) 2021 Wind River Systems, Inc.
+# Copyright (C) 2021-2023 Wind River Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
nameOverride: ""
fullnameOverride: ""
+podLabels: {}
+podAnnotations: {}
+
# The default value "" doesn't work with binaryData,
# So generate the value with:
# echo "" | base64