Documentation ¶
Index ¶
- func NewCRDSync(client *client.Client, controller *Controller) *crdSync
- type Controller
- func (o *Controller) ParseCRD(crd unstructured.Unstructured)
- func (o *Controller) ValidatePolicyFields(policy v1.ClusterPolicy) error
- func (o *Controller) ValidatePolicyMutation(policy v1.ClusterPolicy) error
- func (o *Controller) ValidateResource(patchedResource unstructured.Unstructured, kind string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCRDSync ¶
func NewCRDSync(client *client.Client, controller *Controller) *crdSync
NewCRDSync ...
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller represents OpenAPIController
func NewOpenAPIController ¶
func NewOpenAPIController() (*Controller, error)
NewOpenAPIController initializes a new instance of OpenAPIController
func (*Controller) ParseCRD ¶
func (o *Controller) ParseCRD(crd unstructured.Unstructured)
ParseCRD loads CRD to the cache
func (*Controller) ValidatePolicyFields ¶
func (o *Controller) ValidatePolicyFields(policy v1.ClusterPolicy) error
ValidatePolicyFields ...
func (*Controller) ValidatePolicyMutation ¶
func (o *Controller) ValidatePolicyMutation(policy v1.ClusterPolicy) error
ValidatePolicyMutation ...
func (*Controller) ValidateResource ¶
func (o *Controller) ValidateResource(patchedResource unstructured.Unstructured, kind string) error
ValidateResource ...
Click to show internal directories.
Click to hide internal directories.