rte

package
v0.4.10-1rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const MachineConfigLabelKey = "machineconfiguration.openshift.io/role"

MachineConfigLabelKey contains the key of generated label for machine config

Variables

This section is empty.

Functions

func DaemonSetNamespacedNameFromObject

func DaemonSetNamespacedNameFromObject(obj client.Object) (nropv1alpha1.NamespacedName, bool)

func GetMachineConfigLabel

func GetMachineConfigLabel(mcp *machineconfigv1.MachineConfigPool) map[string]string

GetMachineConfigLabel returns machine config labels that should be used under the machine config pool machine config selector

func UpdateDaemonSetHashAnnotation

func UpdateDaemonSetHashAnnotation(ds *appsv1.DaemonSet, cmHash string)

func UpdateDaemonSetPauseContainerSettings

func UpdateDaemonSetPauseContainerSettings(ds *appsv1.DaemonSet) error

func UpdateDaemonSetRunAsIDs

func UpdateDaemonSetRunAsIDs(ds *appsv1.DaemonSet)

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 UpdateDaemonSetUserImageSettings

func UpdateDaemonSetUserImageSettings(ds *appsv1.DaemonSet, userImageSpec, builtinImageSpec string, builtinPullPolicy corev1.PullPolicy) error

Types

type ExistingManifests

type ExistingManifests struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL