You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2023/07/25 03:25:35 UTC

[skywalking-kubernetes] branch master updated: Add `extraPodLabels` to `oapInit` so Job can have additional labels (#125)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-kubernetes.git


The following commit(s) were added to refs/heads/master by this push:
     new e7b653f  Add `extraPodLabels` to `oapInit` so Job can have additional labels (#125)
e7b653f is described below

commit e7b653ffcc43a084f8dbf68325e956508921dff1
Author: eric-futureself <13...@users.noreply.github.com>
AuthorDate: Mon Jul 24 20:25:29 2023 -0700

    Add `extraPodLabels` to `oapInit` so Job can have additional labels (#125)
---
 chart/skywalking/templates/oap-init.job.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/chart/skywalking/templates/oap-init.job.yaml b/chart/skywalking/templates/oap-init.job.yaml
index 0e42286..e804990 100644
--- a/chart/skywalking/templates/oap-init.job.yaml
+++ b/chart/skywalking/templates/oap-init.job.yaml
@@ -36,6 +36,9 @@ spec:
         app: {{ template "skywalking.name" . }}
         component: "{{ template "skywalking.fullname" . }}-job"
         release: {{ .Release.Name }}
+{{- if .Values.oapInit.extraPodLabels }}
+{{ toYaml .Values.oapInit.extraPodLabels | indent 8 }}
+{{- end }}
     spec:
       serviceAccountName: {{ template "skywalking.serviceAccountName.oap" . }}
       {{- with .Values.oap.securityContext }}