v1beta1

package
v0.0.0-...-dfc5610 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePatch

func CreatePatch(contI MyConIntf, uid int64, gids []int64, username string, usercfg UserCfg) ([]byte, error)

CreatePatch creates mutation patchs

Types

type Conf

type Conf struct {
	AllowedFileSystem []string           `yaml:"allowedFileSystem"`
	UserDefault       UserCfg            `yaml:"userDefault"`
	Users             map[string]UserCfg `yaml:"users"`
}

func (Conf) GetUserCfg

func (c Conf) GetUserCfg(name string) UserCfg

func (*Conf) LoadConfig

func (c *Conf) LoadConfig(configFile string) error

type MyConIntf

type MyConIntf interface {
	GetPodSpecs() map[string]corev1.PodSpec
	GetTemplates() []string
}

func GetConIntf

func GetConIntf(req *v1beta1.AdmissionRequest) (conintf MyConIntf, err error)

GetConIntf gets kubernetes objects interface that can be used by mutation and validation functions

type MyDeployment

type MyDeployment appsv1.Deployment

func (MyDeployment) GetPodSpecs

func (v MyDeployment) GetPodSpecs() map[string]corev1.PodSpec

func (MyDeployment) GetTemplates

func (v MyDeployment) GetTemplates() []string

type MyPod

type MyPod corev1.Pod

func (MyPod) GetPodSpecs

func (v MyPod) GetPodSpecs() map[string]corev1.PodSpec

func (MyPod) GetTemplates

func (v MyPod) GetTemplates() []string

type MyVCJob

type MyVCJob vbv1alpha1.Job

func (MyVCJob) GetPodSpecs

func (v MyVCJob) GetPodSpecs() map[string]corev1.PodSpec

func (MyVCJob) GetTemplates

func (v MyVCJob) GetTemplates() []string

type MybJob

type MybJob batchv1.Job

func (MybJob) GetPodSpecs

func (v MybJob) GetPodSpecs() map[string]corev1.PodSpec

func (MybJob) GetTemplates

func (v MybJob) GetTemplates() []string

type UserCfg

type UserCfg struct {
	MaxWallTime    int64    `yaml:"maxWallTime,omitempty"`
	MaxWallTimePod int64    `yaml:"maxWallTime,omitempty"`
	DefaultQueue   string   `yaml:"defaultQueue"`
	AllowedQueues  []string `yaml:"allowedQueues"`
}

Jump to

Keyboard shortcuts

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