Documentation ¶
Index ¶
- func NewCRDSync(client *client.Client, controller *Controller) *crdSync
- type Controller
- func (o *Controller) GetDefinitionNameFromKind(kind string) string
- func (o *Controller) ParseCRD(crd unstructured.Unstructured)
- func (o *Controller) ValidatePolicyFields(policyRaw []byte) 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
Types ¶
type Controller ¶ added in v1.1.5
type Controller struct {
// contains filtered or unexported fields
}
func NewOpenAPIController ¶ added in v1.1.5
func NewOpenAPIController() (*Controller, error)
func (*Controller) GetDefinitionNameFromKind ¶ added in v1.1.5
func (o *Controller) GetDefinitionNameFromKind(kind string) string
func (*Controller) ParseCRD ¶ added in v1.1.11
func (o *Controller) ParseCRD(crd unstructured.Unstructured)
func (*Controller) ValidatePolicyFields ¶ added in v1.1.5
func (o *Controller) ValidatePolicyFields(policyRaw []byte) error
func (*Controller) ValidatePolicyMutation ¶ added in v1.1.5
func (o *Controller) ValidatePolicyMutation(policy v1.ClusterPolicy) error
func (*Controller) ValidateResource ¶ added in v1.1.5
func (o *Controller) ValidateResource(patchedResource unstructured.Unstructured, kind string) error
Click to show internal directories.
Click to hide internal directories.