Documentation ¶
Index ¶
- Constants
- func AddVolumeMountMemory(podSpec *corev1.PodSpec, cnt *corev1.Container, mountName, dirName string, ...)
- func ContainerConfig(ds *appsv1.DaemonSet, name string) error
- func DaemonSetArgs(ds *appsv1.DaemonSet, conf nropv1.NodeGroupConfig) error
- func DaemonSetHashAnnotation(ds *appsv1.DaemonSet, cmHash string)
- func DaemonSetPauseContainerSettings(ds *appsv1.DaemonSet) error
- func DaemonSetRunAsIDs(ds *appsv1.DaemonSet) error
- func DaemonSetTolerations(ds *appsv1.DaemonSet, userTolerations []corev1.Toleration)
- func DaemonSetUserImageSettings(ds *appsv1.DaemonSet, userImageSpec, builtinImageSpec string, ...) error
Constants ¶
View Source
const ( MainContainerName = "resource-topology-exporter" HelperContainerName = "shared-pool-container" )
these should be provided by a deployer API
Variables ¶
This section is empty.
Functions ¶
func AddVolumeMountMemory ¶
func DaemonSetArgs ¶
func DaemonSetArgs(ds *appsv1.DaemonSet, conf nropv1.NodeGroupConfig) error
func DaemonSetHashAnnotation ¶
func DaemonSetRunAsIDs ¶
UpdateDaemonSetRunAsIDs bump the ds container privileges to 0/0. We need this in the operator-as-operand flow because the operator image itself is built to run with non-root user/group, and we should keep it like this. OTOH, the rte image needs to have access to the files using *both* DAC and MAC; the SCC/SELinux context take cares of the MAC (when needed, e.g. on OCP), while we take care of DAC here.
func DaemonSetTolerations ¶
func DaemonSetTolerations(ds *appsv1.DaemonSet, userTolerations []corev1.Toleration)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.