Documentation ¶
Index ¶
- func CronJobWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)
- func DaemonsetWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)
- func DeploymentWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)
- func EnsureSELinuxOptions(pod *corev1.PodTemplate) *corev1.PodTemplate
- func EnsureSecurityContext(pod *corev1.PodTemplate) *corev1.PodTemplate
- func GetBasePod() *corev1.PodTemplate
- func JobWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)
- func PodWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)
- func ReplicaSetWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)
- func ReplicationControllerWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)
- func StatefulSetWrapper(obj *corev1.PodTemplate, ns, name string) ([]byte, error)
- type Generator
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
Click to show internal directories.
Click to hide internal directories.