utils

package
v0.0.0-...-c6746c1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMatchAllExpr = ".*?"

Variables

This section is empty.

Functions

func GetLimitRangeSepcFromConf

func GetLimitRangeSepcFromConf(path string) (*v1.LimitRange, error)

func GetResourceQuotaSepcFromConf

func GetResourceQuotaSepcFromConf(path string) (*v1.ResourceQuota, error)

func GetValFromConfig

func GetValFromConfig(path, kind string) (interface{}, error)

func In

func In(target string, strArray []string) bool

func SetDefaults_LimitRangeItem

func SetDefaults_LimitRangeItem(obj *v1.LimitRangeItem)

Refer from k8s /pkg/apis/core/v1/defautls.go

func ValidateNaming

func ValidateNaming(name, path, kind string) error

Types

type Config

type Config struct {
	Deployment *Deployment `yaml:"deployment"`
}

type Deployment

type Deployment struct {
	Image  *string `yaml:"image"`
	Naming *string `yaml:"naming"`
}

Jump to

Keyboard shortcuts

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