common

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCRD added in v1.1.11

func GetCRD(path string) (unstructuredCrds []*unstructured.Unstructured, err error)

GetCRD - Extracts crds from a YAML

func GetCRDs added in v1.1.11

func GetCRDs(paths []string) (unstructuredCrds []*unstructured.Unstructured, err error)

GetCRDs - Extracting the crds from multiple YAML

func GetPolicies

func GetPolicies(paths []string) (policies []*v1.ClusterPolicy, error error)

GetPolicies - Extracting the policies from multiple YAML

func GetPoliciesValidation

func GetPoliciesValidation(policyPaths []string) ([]*v1.ClusterPolicy, *openapi.Controller, error)

GetPoliciesValidation - validating policies

func MutatePolicy added in v1.1.9

func MutatePolicy(policy *v1.ClusterPolicy, logger logr.Logger) (*v1.ClusterPolicy, error)

MutatePolicy - applies mutation to a policy

func PolicyHasNonAllowedVariables added in v1.1.11

func PolicyHasNonAllowedVariables(policy v1.ClusterPolicy) bool

PolicyHasNonAllowedVariables - checks for non whitelisted variables in the policy

func PolicyHasVariables added in v1.1.7

func PolicyHasVariables(policy v1.ClusterPolicy) bool

PolicyHasVariables - check for variables in the policy

Types

This section is empty.

Jump to

Keyboard shortcuts

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