Documentation ¶
Index ¶
- type WebhookBuilder
- func (blder *WebhookBuilder) Complete() error
- func (blder *WebhookBuilder) For(apiType runtime.Object) *WebhookBuilder
- func (blder *WebhookBuilder) RecoverPanic() *WebhookBuilder
- func (blder *WebhookBuilder) WithCategory(category string) *WebhookBuilder
- func (blder *WebhookBuilder) WithCategoryProvider(provider types.CategoryProvider) *WebhookBuilder
- func (blder *WebhookBuilder) WithDefaulter(defaulter admission.CustomDefaulter) *WebhookBuilder
- func (blder *WebhookBuilder) WithLogConstructor(logConstructor func(base logr.Logger, req *admission.Request) logr.Logger) *WebhookBuilder
- func (blder *WebhookBuilder) WithValidator(validator admission.CustomValidator) *WebhookBuilder
- type WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) Complete() (*WebhookConfigurationBuilder, error)
- func (b *WebhookConfigurationBuilder) For(apiType runtime.Object) *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) GetCategory() string
- func (b *WebhookConfigurationBuilder) MutatingWebhook() *admissionregv1.MutatingWebhook
- func (b *WebhookConfigurationBuilder) ValidatingWebhook() *admissionregv1.ValidatingWebhook
- func (b *WebhookConfigurationBuilder) WithCABundle(caBundle []byte) *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) WithCategory(category string) *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) WithFailurePolicy(failurePolicy *admissionregv1.FailurePolicyType) *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) WithMatchPolicy(matchPolicy *admissionregv1.MatchPolicyType) *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) WithNamespaceSelector(namespaceSelector *metav1.LabelSelector) *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) WithObjectSelector(objectSelector *metav1.LabelSelector) *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) WithSideEffects(sideEffects *admissionregv1.SideEffectClass) *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) WithWebhookServiceName(webhookServiceName string) *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) WithWebhookServiceNamespace(webhookServiceNamespace string) *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) WithoutMutatingWebhook() *WebhookConfigurationBuilder
- func (b *WebhookConfigurationBuilder) WithoutValidatingWebhook() *WebhookConfigurationBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookBuilder ¶
type WebhookBuilder struct {
// contains filtered or unexported fields
}
WebhookBuilder builds a Webhook.
func WebhookManagedBy ¶
func WebhookManagedBy(m manager.Manager) *WebhookBuilder
WebhookManagedBy returns a new webhook builder.
func (*WebhookBuilder) Complete ¶
func (blder *WebhookBuilder) Complete() error
Complete builds the webhook.
func (*WebhookBuilder) For ¶
func (blder *WebhookBuilder) For(apiType runtime.Object) *WebhookBuilder
For takes a runtime.Object which should be a CR. If the given object implements the admission.Defaulter interface, a MutatingWebhook will be wired for this type. If the given object implements the admission.Validator interface, a ValidatingWebhook will be wired for this type.
func (*WebhookBuilder) RecoverPanic ¶
func (blder *WebhookBuilder) RecoverPanic() *WebhookBuilder
RecoverPanic indicates whether panics caused by the webhook should be recovered.
func (*WebhookBuilder) WithCategory ¶
func (blder *WebhookBuilder) WithCategory(category string) *WebhookBuilder
func (*WebhookBuilder) WithCategoryProvider ¶
func (blder *WebhookBuilder) WithCategoryProvider(provider types.CategoryProvider) *WebhookBuilder
func (*WebhookBuilder) WithDefaulter ¶
func (blder *WebhookBuilder) WithDefaulter(defaulter admission.CustomDefaulter) *WebhookBuilder
WithDefaulter takes an admission.CustomDefaulter interface, a MutatingWebhook will be wired for this type.
func (*WebhookBuilder) WithLogConstructor ¶
func (blder *WebhookBuilder) WithLogConstructor(logConstructor func(base logr.Logger, req *admission.Request) logr.Logger) *WebhookBuilder
WithLogConstructor overrides the webhook's LogConstructor.
func (*WebhookBuilder) WithValidator ¶
func (blder *WebhookBuilder) WithValidator(validator admission.CustomValidator) *WebhookBuilder
WithValidator takes a admission.CustomValidator interface, a ValidatingWebhook will be wired for this type.
type WebhookConfigurationBuilder ¶
type WebhookConfigurationBuilder struct {
// contains filtered or unexported fields
}
func WebhookConfigurationManagedBy ¶
func WebhookConfigurationManagedBy(m manager.Manager) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) Complete ¶
func (b *WebhookConfigurationBuilder) Complete() (*WebhookConfigurationBuilder, error)
func (*WebhookConfigurationBuilder) For ¶
func (b *WebhookConfigurationBuilder) For(apiType runtime.Object) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) GetCategory ¶
func (b *WebhookConfigurationBuilder) GetCategory() string
func (*WebhookConfigurationBuilder) MutatingWebhook ¶
func (b *WebhookConfigurationBuilder) MutatingWebhook() *admissionregv1.MutatingWebhook
func (*WebhookConfigurationBuilder) ValidatingWebhook ¶
func (b *WebhookConfigurationBuilder) ValidatingWebhook() *admissionregv1.ValidatingWebhook
func (*WebhookConfigurationBuilder) WithCABundle ¶
func (b *WebhookConfigurationBuilder) WithCABundle(caBundle []byte) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) WithCategory ¶
func (b *WebhookConfigurationBuilder) WithCategory(category string) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) WithFailurePolicy ¶
func (b *WebhookConfigurationBuilder) WithFailurePolicy(failurePolicy *admissionregv1.FailurePolicyType) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) WithMatchPolicy ¶
func (b *WebhookConfigurationBuilder) WithMatchPolicy(matchPolicy *admissionregv1.MatchPolicyType) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) WithNamespaceSelector ¶
func (b *WebhookConfigurationBuilder) WithNamespaceSelector(namespaceSelector *metav1.LabelSelector) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) WithObjectSelector ¶
func (b *WebhookConfigurationBuilder) WithObjectSelector(objectSelector *metav1.LabelSelector) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) WithSideEffects ¶
func (b *WebhookConfigurationBuilder) WithSideEffects(sideEffects *admissionregv1.SideEffectClass) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) WithWebhookServiceName ¶
func (b *WebhookConfigurationBuilder) WithWebhookServiceName(webhookServiceName string) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) WithWebhookServiceNamespace ¶
func (b *WebhookConfigurationBuilder) WithWebhookServiceNamespace(webhookServiceNamespace string) *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) WithoutMutatingWebhook ¶
func (b *WebhookConfigurationBuilder) WithoutMutatingWebhook() *WebhookConfigurationBuilder
func (*WebhookConfigurationBuilder) WithoutValidatingWebhook ¶
func (b *WebhookConfigurationBuilder) WithoutValidatingWebhook() *WebhookConfigurationBuilder