openapi

package
v1.8.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCRDSync

func NewCRDSync(client dclient.Interface, 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) ValidatePolicyMutation

func (o *Controller) ValidatePolicyMutation(policy kyvernov1.PolicyInterface) error

ValidatePolicyMutation ...

func (*Controller) ValidateResource

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

ValidateResource ...

type ValidateInterface added in v1.8.0

type ValidateInterface interface {
	ValidateResource(resource unstructured.Unstructured, apiVersion, kind string) error
}

func NewFake added in v1.8.0

func NewFake() ValidateInterface

Jump to

Keyboard shortcuts

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