Documentation ¶
Index ¶
Constants ¶
View Source
const ( //Skip : failed to process rule, will not update the resource Skip ResourceMode = "SKIP" //Create : create a new resource Create = "CREATE" //Update : update/overwrite the new resource Update = "UPDATE" )
Variables ¶
This section is empty.
Functions ¶
func ValidateResourceWithPattern ¶
ValidateResourceWithPattern is a start of element-by-element validation process It assumes that validation is started from root, so "/" is passed Anchors are not expected in the pattern
Types ¶
type GenerateController ¶
type GenerateController struct { Config config.Configuration // contains filtered or unexported fields }
func NewGenerateController ¶
func NewGenerateController( kyvernoClient kyvernoclient.Interface, client dclient.Interface, policyLister kyvernolister.ClusterPolicyLister, npolicyLister kyvernolister.PolicyLister, urLister urlister.UpdateRequestNamespaceLister, eventGen event.Interface, nsLister corelister.NamespaceLister, log logr.Logger, dynamicConfig config.Configuration, ) (*GenerateController, error)
NewGenerateController returns an instance of the Generate-Request Controller
func (*GenerateController) ProcessUR ¶
func (c *GenerateController) ProcessUR(ur *kyvernov1beta1.UpdateRequest) error
Click to show internal directories.
Click to hide internal directories.