Documentation ¶
Overview ¶
Package admission provide client for kubernetes admission operations
Index ¶
- type Client
- func (c *Client) CreateValidatingWebhookCfg(cfg *v1.ValidatingWebhookConfiguration) (*v1.ValidatingWebhookConfiguration, error)
- func (c *Client) DeleteValidatingWebhookCfg(name string) error
- func (c *Client) GetValidatingWebhookCfg(webhookName string) (*v1.ValidatingWebhookConfiguration, error)
- func (c *Client) UpdateValidatingWebhookCfg(cfg *v1.ValidatingWebhookConfiguration) (*v1.ValidatingWebhookConfiguration, error)
- type Ops
- type ValidatingWebhookCfgOps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a wrapper for kubernetes admission interface.
func (*Client) CreateValidatingWebhookCfg ¶
func (c *Client) CreateValidatingWebhookCfg(cfg *v1.ValidatingWebhookConfiguration) ( *v1.ValidatingWebhookConfiguration, error)
CreateValidatingWebhookCfg creates given ValidatingWebhookConfiguration
func (*Client) DeleteValidatingWebhookCfg ¶
DeleteValidatingWebhookCfg deletes given ValidatingWebhookConfiguration
func (*Client) GetValidatingWebhookCfg ¶
func (c *Client) GetValidatingWebhookCfg(webhookName string) ( *v1.ValidatingWebhookConfiguration, error)
GetValidatingWebhookCfg get WebhookConfiguration by name
func (*Client) UpdateValidatingWebhookCfg ¶
func (c *Client) UpdateValidatingWebhookCfg(cfg *v1.ValidatingWebhookConfiguration) ( *v1.ValidatingWebhookConfiguration, error)
UpdateValidatingWebhookCfg updates given ValidatingWebhookConfiguration
type Ops ¶
type Ops interface { ValidatingWebhookCfgOps }
Ops is an interface to the admission client wrapper.
type ValidatingWebhookCfgOps ¶
type ValidatingWebhookCfgOps interface { // CreateValidatingWebhookCfg creates given ValidatingWebhookConfiguration CreateValidatingWebhookCfg(req *v1.ValidatingWebhookConfiguration) ( *v1.ValidatingWebhookConfiguration, error) // UpdateValidatingWebhookCfg updates given ValidatingWebhookConfiguration UpdateValidatingWebhookCfg(req *v1.ValidatingWebhookConfiguration) ( *v1.ValidatingWebhookConfiguration, error) // DeleteValidatingWebhookCfg deletes given ValidatingWebhookConfiguration DeleteValidatingWebhookCfg(name string) error // GetValidatingWebhookCfg get WebhookConfiguration by name GetValidatingWebhookCfg(name string) (*v1.ValidatingWebhookConfiguration, error) }
ValidatingWebhookCfgOps is interface to perform CRUD ops on validating webhook controller
Click to show internal directories.
Click to hide internal directories.