rte

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DaemonSetNamespacedNameFromObject

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

func GetComponentName

func GetComponentName(instanceName, mcpName string) string

func GetMachineConfigName

func GetMachineConfigName(instanceName, mcpName string) string

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)

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