openstack-helm-infra/ceph-osd/templates/utils
Sphicas, Phil (ps3910) 938c6d9bb9 fix: ceph-osd AppArmor profiles not applied
AppArmor annotations require the container name to be applied properly.
Before this change, when overrides are not used, the container name is
ceph-osd-default. When overrides are used, the container name is of the
form ceph-osd-HOSTNAME-SHA, but with an identical HOSTNAME and SHA for
all the daemonsets. However, it is not possible to predict this value,
and as a result, the AppArmor profiles are not applied.

This change removes the customization of the container name, and sets
it to ceph-osd-default, allowing AppArmor annotations to be consistently
applied using:

    pod:
      mandatory_access_control:
        type: apparmor
        ceph-osd-default:
          ceph-osd-default: localhost/profilename

Change-Id: I8b6eda00f77ec7393a4311309f3ff76908d06ae6
2019-11-06 14:48:12 +00:00
..
_osd_daemonset_overrides.tpl fix: ceph-osd AppArmor profiles not applied 2019-11-06 14:48:12 +00:00