Merge "fix: ceph-osd AppArmor profiles not applied"
This commit is contained in:
commit
58f616fc26
@ -212,7 +212,7 @@ spec:
|
||||
mountPath: /var/lib/ceph/journal
|
||||
readOnly: false
|
||||
containers:
|
||||
- name: osd-pod
|
||||
- name: ceph-osd-default
|
||||
{{ tuple $envAll "ceph_osd" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.osd | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
{{ dict "envAll" $envAll "application" "osd" "container" "osd_pod" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
||||
|
@ -230,17 +230,6 @@ limitations under the License.
|
||||
{{- if not $context.Values.__daemonset_yaml.metadata.name }}{{- $_ := set $context.Values.__daemonset_yaml.metadata "name" dict }}{{- end }}
|
||||
{{- $_ := set $context.Values.__daemonset_yaml.metadata "name" $current_dict.dns_1123_name }}
|
||||
|
||||
{{/* set container names and add to the list of containers for the pod */}}
|
||||
{{- $_ := set $context.Values "__containers_list" ( list ) }}
|
||||
{{- range $container := $context.Values.__daemonset_yaml.spec.template.spec.containers }}
|
||||
{{- if eq $container.name "osd-pod" }}
|
||||
{{- $_ := set $container "name" $current_dict.dns_1123_name }}
|
||||
{{- end }}
|
||||
{{- $__containers_list := append $context.Values.__containers_list $container }}
|
||||
{{- $_ := set $context.Values "__containers_list" $__containers_list }}
|
||||
{{- end }}
|
||||
{{- $_ := set $context.Values.__daemonset_yaml.spec.template.spec "containers" $context.Values.__containers_list }}
|
||||
|
||||
{{/* cross-reference configmap name to container volume definitions */}}
|
||||
{{- $_ := set $context.Values "__volume_list" list }}
|
||||
{{- range $current_volume := $context.Values.__daemonset_yaml.spec.template.spec.volumes }}
|
||||
|
Loading…
Reference in New Issue
Block a user