Documentation ¶
Index ¶
- func NewClientManager(wc WebhookConfig, grp schema.GroupVersion, ...) (cm webhook.ClientManager, err error)
- type Convention
- type Conventions
- func (c *Conventions) Apply(ctx context.Context, parent *conventionsv1alpha1.PodIntent, wc WebhookConfig, ...) (*corev1.PodTemplateSpec, error)
- func (c *Conventions) Filter(collectedLabels map[string]labels.Set) (Conventions, error)
- func (c *Conventions) FilterAndSort(collectedLabels map[string]labels.Set) (Conventions, error)
- func (c *Conventions) Sort() Conventions
- type RegistryConfig
- type WebhookConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientManager ¶
func NewClientManager(wc WebhookConfig, grp schema.GroupVersion, addToSchemaFunc func(s *runtime.Scheme) error) (cm webhook.ClientManager, err error)
Types ¶
type Convention ¶
type Convention struct { Name string SelectorTarget conventionsv1alpha1.SelectorTargetSource Selectors []metav1.LabelSelector Priority conventionsv1alpha1.PriorityLevel ClientConfig admissionregistrationv1.WebhookClientConfig }
func (*Convention) Apply ¶
func (o *Convention) Apply(ctx context.Context, conventionRequest *webhookv1alpha1.PodConventionContext, wc WebhookConfig) (*webhookv1alpha1.PodConventionContext, error)
func (*Convention) WebhookClientConfig ¶
func (o *Convention) WebhookClientConfig() webhook.ClientConfig
type Conventions ¶
type Conventions []Convention
func (*Conventions) Apply ¶
func (c *Conventions) Apply(ctx context.Context, parent *conventionsv1alpha1.PodIntent, wc WebhookConfig, rc RegistryConfig, ) (*corev1.PodTemplateSpec, error)
func (*Conventions) Filter ¶
func (c *Conventions) Filter(collectedLabels map[string]labels.Set) (Conventions, error)
func (*Conventions) FilterAndSort ¶
func (c *Conventions) FilterAndSort(collectedLabels map[string]labels.Set) (Conventions, error)
func (*Conventions) Sort ¶
func (c *Conventions) Sort() Conventions
type RegistryConfig ¶
type RegistryConfig struct { Keys authn.Keychain Cache cache.Cache Client kubernetes.Interface CACertPath string }
func (*RegistryConfig) ResolveImageMetadata ¶
func (rc *RegistryConfig) ResolveImageMetadata(ctx context.Context, template *corev1.PodTemplateSpec) ([]webhookv1alpha1.ImageConfig, error)
type WebhookConfig ¶
type WebhookConfig struct { AuthInfoResolver webhookutil.AuthenticationInfoResolver ServiceResolver webhookutil.ServiceResolver }
Click to show internal directories.
Click to hide internal directories.