@@ -4,21 +4,21 @@ metadata:
44 name : {{ include "extensionlib.names.fullname" . }}
55 namespace : {{ .Release.Namespace }}
66 labels :
7+ {{- include "extensionlib.labels" (list .) | nindent 4 }}
78 {{- range $key, $value := .Values.extraLabels }}
89 {{ $key }}: {{ $value }}
910 {{- end }}
10- {{- include "extensionlib.labels" (list .) | nindent 4 }}
1111spec :
1212 selector :
1313 matchLabels :
1414 app.kubernetes.io/name : {{ include "extensionlib.names.name" . }}
1515 app : {{ include "extensionlib.names.name" . }}
1616 updateStrategy :
17- # updateStrategy.type -- Specifies the strategy used to replace old Pods by new ones.
18- type : RollingUpdate
17+ type : {{ .Values. updateStrategy.type }}
18+ {{- if eq .Values.updateStrategy. type " RollingUpdate" }}
1919 rollingUpdate :
20- # updateStrategy.rollingUpdate.maxSurge -- The maximum number of DaemonSet pods that can be unavailable during the update.
21- maxUnavailable : 1
20+ maxUnavailable : {{ .Values. updateStrategy.rollingUpdate.maxUnavailable }}
21+ {{- end }}
2222 template :
2323 metadata :
2424 labels :
3333 {{- end }}
3434 annotations :
3535 {{- if semverCompare "<1.30-0" .Capabilities.KubeVersion.Version}}
36- " container.apparmor.security.beta.kubernetes.io/{{ include " extensionlib.names.name" . }} ": unconfined
36+ " container.apparmor.security.beta.kubernetes.io/steadybit-extension-jvm " : unconfined
3737 {{- end }}
3838 {{- include "extensionlib.annotation" (list . .Values.containerPorts.http (.Values.daemonSet.extensionlib.list) ) | nindent 8 }}
3939 oneagent.dynatrace.com/injection : " false"
6161 limits :
6262 memory : {{ .Values.resources.limits.memory }}
6363 cpu : {{ .Values.resources.limits.cpu }}
64- name : {{ include "extensionlib.names.name" . }}
64+ name : steadybit-extension-jvm
6565 ports :
6666 - name : http
6767 containerPort : {{ .Values.containerPorts.http }}
8282 - name : STEADYBIT_EXTENSION_DISCOVERY_ATTRIBUTES_EXCLUDES_JVM
8383 value : {{ join "," .Values.discovery.attributes.excludes.jvm | quote }}
8484 {{- end }}
85+ - name : STEADYBIT_EXTENSION_OCIRUNTIME_ROOT
86+ value : {{ include "ociRuntime.get" (list . "root") | quote }}
87+ - name : STEADYBIT_EXTENSION_OCIRUNTIME_PATH
88+ value : {{ include "ociRuntime.get" (list . "path") | quote }}
8589 {{- include "extensionlib.deployment.env" (list .) | nindent 12 }}
8690 {{- with .Values.extraEnv }}
8791 {{- toYaml . | nindent 12 }}
9599 mountPath : /tmp
96100 - name : cgroup-root
97101 mountPath : /sys/fs/cgroup
98- {{- include "containerRuntime.volumeMounts" . | nindent 12 }}
102+ - name : " ociruntime-root"
103+ mountPath : {{ include "ociRuntime.get" (list . "root") | quote }}
99104 {{- include "extensionlib.deployment.volumeMounts" (list .) | nindent 12 }}
100105 livenessProbe :
101106 initialDelaySeconds : {{ .Values.probes.liveness.initialDelaySeconds }}
@@ -126,7 +131,10 @@ spec:
126131 hostPath :
127132 path : /sys/fs/cgroup
128133 type : Directory
129- {{- include "containerRuntime.volumes" . | nindent 8 }}
134+ - name : " ociruntime-root"
135+ hostPath :
136+ path : {{ include "ociRuntime.get" (list . "root") | quote }}
137+ type : Directory
130138 {{- include "extensionlib.deployment.volumes" (list .) | nindent 8 }}
131139 serviceAccountName : {{ .Values.serviceAccount.name }}
132140 {{- with .Values.nodeSelector }}
0 commit comments