diff --git a/ceph-osd/templates/daemonset-osd.yaml b/ceph-osd/templates/daemonset-osd.yaml index 1b33b431c..25f9eb56c 100644 --- a/ceph-osd/templates/daemonset-osd.yaml +++ b/ceph-osd/templates/daemonset-osd.yaml @@ -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 }} diff --git a/ceph-osd/templates/utils/_osd_daemonset_overrides.tpl b/ceph-osd/templates/utils/_osd_daemonset_overrides.tpl index 5a5e5aeee..2cbefdabe 100644 --- a/ceph-osd/templates/utils/_osd_daemonset_overrides.tpl +++ b/ceph-osd/templates/utils/_osd_daemonset_overrides.tpl @@ -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 }}