openapi

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCRDSync

func NewCRDSync(client *client.Client, controller *Controller) *crdSync

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewOpenAPIController

func NewOpenAPIController() (*Controller, error)

func (*Controller) GetDefinitionNameFromKind

func (o *Controller) GetDefinitionNameFromKind(kind string) string

func (*Controller) ParseCRD

func (o *Controller) ParseCRD(crd unstructured.Unstructured)

func (*Controller) ValidatePolicyFields

func (o *Controller) ValidatePolicyFields(policyRaw []byte) error

func (*Controller) ValidatePolicyMutation

func (o *Controller) ValidatePolicyMutation(policy v1.ClusterPolicy) error

func (*Controller) ValidateResource

func (o *Controller) ValidateResource(patchedResource unstructured.Unstructured, kind string) error

Jump to

Keyboard shortcuts

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