helm: Fix opentelemetry module installation for daemonset (#9792)
* fix: opentelemetry module for controller-daemonset * fix: Align controller-daemonset with controller-deployment * Fix typo in github/workflows/ci
This commit is contained in:
parent
214ab50820
commit
8c7981bfa2
2 changed files with 10 additions and 8 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
@ -312,7 +312,7 @@ jobs:
|
||||||
kind get kubeconfig > $HOME/.kube/kind-config-kind
|
kind get kubeconfig > $HOME/.kube/kind-config-kind
|
||||||
make kind-e2e-test
|
make kind-e2e-test
|
||||||
|
|
||||||
- name: Uplaod e2e junit-reports
|
- name: Upload e2e junit-reports
|
||||||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -53,7 +53,7 @@ spec:
|
||||||
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
|
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.priorityClassName }}
|
{{- if .Values.controller.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.controller.priorityClassName }}
|
priorityClassName: {{ .Values.controller.priorityClassName | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or .Values.controller.podSecurityContext .Values.controller.sysctls }}
|
{{- if or .Values.controller.podSecurityContext .Values.controller.sysctls }}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
@ -143,11 +143,15 @@ spec:
|
||||||
hostPort: {{ $key }}
|
hostPort: {{ $key }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraModules) }}
|
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if .Values.controller.extraModules }}
|
{{- if (or .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
|
||||||
- name: modules
|
- name: modules
|
||||||
|
{{ if .Values.controller.image.chroot }}
|
||||||
|
mountPath: /chroot/modules_mount
|
||||||
|
{{ else }}
|
||||||
mountPath: /modules_mount
|
mountPath: /modules_mount
|
||||||
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.customTemplate.configMapName }}
|
{{- if .Values.controller.customTemplate.configMapName }}
|
||||||
- mountPath: /etc/nginx/template
|
- mountPath: /etc/nginx/template
|
||||||
|
@ -169,9 +173,7 @@ spec:
|
||||||
{{- if .Values.controller.extraContainers }}
|
{{- if .Values.controller.extraContainers }}
|
||||||
{{ toYaml .Values.controller.extraContainers | nindent 8 }}
|
{{ toYaml .Values.controller.extraContainers | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if (or .Values.controller.extraInitContainers .Values.controller.extraModules .Values.controller.opentelemetry.enabled) }}
|
||||||
|
|
||||||
{{- if (or .Values.controller.extraInitContainers .Values.controller.extraModules) }}
|
|
||||||
initContainers:
|
initContainers:
|
||||||
{{- if .Values.controller.extraInitContainers }}
|
{{- if .Values.controller.extraInitContainers }}
|
||||||
{{ toYaml .Values.controller.extraInitContainers | nindent 8 }}
|
{{ toYaml .Values.controller.extraInitContainers | nindent 8 }}
|
||||||
|
|
Loading…
Reference in a new issue