util

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserDataKey = "data"
)

Variables

This section is empty.

Functions

func BuildContainer

func BuildContainer(container *corev1.Container, buildFn func(*corev1.Container)) corev1.Container

func BuildVolume

func BuildVolume(volume *corev1.Volume, buildFn func(*corev1.Volume)) corev1.Volume

func ComputeHash

func ComputeHash(s string) string

func EnsureOwnerRef

func EnsureOwnerRef(resource client.Object, ownerRef *metav1.OwnerReference)

func EnsurePullSecret

func EnsurePullSecret(serviceAccount *corev1.ServiceAccount, secretName string)

func ReconcileWorkerManifest

func ReconcileWorkerManifest(cm *corev1.ConfigMap, resource client.Object) error

Types

type ContainerVolumeMounts

type ContainerVolumeMounts map[string]string

type PodVolumeMounts

type PodVolumeMounts map[string]ContainerVolumeMounts

func (PodVolumeMounts) ContainerMounts

func (m PodVolumeMounts) ContainerMounts(container string) []corev1.VolumeMount

func (PodVolumeMounts) Path

func (m PodVolumeMounts) Path(container, volume string) string

Jump to

Keyboard shortcuts

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