generator

package
v0.0.0-...-79f44d0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CronJobWrapper

func CronJobWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)

func DaemonsetWrapper

func DaemonsetWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)

func DeploymentWrapper

func DeploymentWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)

func EnsureSELinuxOptions

func EnsureSELinuxOptions(pod *corev1.PodTemplate) *corev1.PodTemplate

pls call ensureSecurityContext before calling this

func EnsureSecurityContext

func EnsureSecurityContext(pod *corev1.PodTemplate) *corev1.PodTemplate

func GetBasePod

func GetBasePod() *corev1.PodTemplate

func JobWrapper

func JobWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)

func PodWrapper

func PodWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)

func ReplicaSetWrapper

func ReplicaSetWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)

func ReplicationControllerWrapper

func ReplicationControllerWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)

func StatefulSetWrapper

func StatefulSetWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)

Types

type Generator

type Generator struct {
	Pod *corev1.PodTemplate
}

func NewGenerator

func NewGenerator() *Generator

func (*Generator) Overlay

func (g *Generator) Overlay(modifiers []func(*corev1.PodTemplate) *corev1.PodTemplate) *corev1.PodTemplate

Overlay takes a base pod and a list of functions that modify the pod if there is conflict then the later wins

Jump to

Keyboard shortcuts

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