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 ¶
func (d *DeprecatedResourceAPIVersionError) Error() string
Click to show internal directories.
Click to hide internal directories.