k8s

package
v0.0.0-...-ed07655 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PullAlways means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.
	PullAlways v1.PullPolicy = "Always"
	// PullNever means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present
	PullNever v1.PullPolicy = "Never"
	// PullIfNotPresent means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.
	PullIfNotPresent v1.PullPolicy = "IfNotPresent"
)

Variables

This section is empty.

Functions

func CreateJob

func CreateJob(assumeJobSpec *AssumeJobSpec)

func GetPodImageName

func GetPodImageName() string

Types

type AssumeJobSpec

type AssumeJobSpec struct {
	AccountId          string
	JobName            string
	JobNamespace       string
	ServiceAccountName string
	CredsVolName       string
	CredsVolPath       string
	OutputVolName      string
	OutputVolPath      string
	AssumeName         string
	AssumeImage        string
	AssumeCmd          []string
	AssumeArgs         []string
	InventoryName      string
	InventoryImage     string
	InventoryCmd       []string
	InventoryArgs      []string
	UploadName         string
	UploadImage        string
	UploadCmd          []string
	UploadArgs         []string
}

Jump to

Keyboard shortcuts

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