podutil

package
v0.0.0-...-44dad58 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodSpec

type PodSpec struct {
	NS                  string                      `default:""`
	Pvclaims            []*v1.PersistentVolumeClaim `default:"-"`
	InlineVolumeSources []*v1.VolumeSource          `default:"-"`
	HostNetwork         bool                        `default:"-"`
	Command             string                      `default:""`
	HostIPC             bool                        `default:"false"`
	HostPID             bool                        `default:"false"`

	RunAsNonRoot             bool               `default:"-"`
	IsPrivileged             bool               `default:"false"`
	Capability               []v1.Capability    `default:"-"`
	Ports                    []v1.ContainerPort `default:"-"`
	AllowPrivilegeEscalation bool               `default:"-"`
	ImagePullPolicy          v1.PullPolicy      `default:"Always"`
	// contains filtered or unexported fields
}

PodSpec is a struct containing all arguments for creating a pod.

func (PodSpec) MakeSecPod

func (p PodSpec) MakeSecPod() *v1.Pod

MakeSecPod returns a pod definition based on the namespace. The pod references the PVC's name. A slice of BASH commands can be supplied as args to be run by the pod.

func (*PodSpec) SetDefaults

func (p *PodSpec) SetDefaults() error

SetDefaults usage := https://github.com/creasty/defaults#usage

Jump to

Keyboard shortcuts

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