Documentation ¶
Index ¶
- func GetCRD(path string) (unstructuredCrds []*unstructured.Unstructured, err error)
- func GetCRDs(paths []string) (unstructuredCrds []*unstructured.Unstructured, err error)
- func GetPolicies(paths []string) (policies []*v1.ClusterPolicy, error error)
- func GetPoliciesValidation(policyPaths []string) ([]*v1.ClusterPolicy, *openapi.Controller, error)
- func MutatePolicy(policy *v1.ClusterPolicy, logger logr.Logger) (*v1.ClusterPolicy, error)
- func PolicyHasNonAllowedVariables(policy v1.ClusterPolicy) bool
- func PolicyHasVariables(policy v1.ClusterPolicy) bool
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.
Click to show internal directories.
Click to hide internal directories.