load

package
v0.0.0-...-0dfb149 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AcceptedK8sTypes = regexp.MustCompile(`(Role|ClusterRole|RoleBinding|ClusterRoleBinding|ServiceAccount|Service|Deployment|Secret)`)

AcceptedK8sTypes contains the supported core Kubernetes types

Functions

func PerformResourceValidation

func PerformResourceValidation(resourcesPath string, onErrClean bool) (*validatemap.ValidateMap, error)

PerformResourceValidation validates templated resources to identify deprecated API versions

func YAMLUnmarshalResources

func YAMLUnmarshalResources(resourcesPath string, validMap *validatemap.ValidateMap, resourceCache *resourcecache.ResourceCache) (*resourcecache.ResourceCache, error)

YAMLUnmarshalResources converts a directory of injected YAML files to Kubernetes resources; resouresPath is assumed to be an absolute path if conversion of any resource fails method will panic; adds resources to resource cache

Types

type DeprecatedResourceAPIVersionError

type DeprecatedResourceAPIVersionError struct {
	// contains filtered or unexported fields
}

DeprecatedResourceAPIVersionError is used to alert that a resource api version is deprecated

func (*DeprecatedResourceAPIVersionError) Error

Jump to

Keyboard shortcuts

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