Documentation
¶
Index ¶
- Constants
- func CleanWebhookTest(client clientset.Interface, namespaceName string)
- func CreateAuthReaderRoleBinding(f *framework.Framework, namespace string)
- func CreateWebhookConfigurationReadyNamespace(f *framework.Framework)
- func DeployWebhookAndService(f *framework.Framework, image string, certContext *certContext, ...)
- func LabelNamespace(f *framework.Framework, namespace string)
- func RegisterMutatingWebhookForPod(f *framework.Framework, configName string, certContext *certContext, ...) func()
- func SetupWebhookCert(namespaceName string) *certContext
Constants ¶
const (
// WebhookServiceName is the webhook service name.
WebhookServiceName = "e2e-test-webhook"
)
Variables ¶
This section is empty.
Functions ¶
func CleanWebhookTest ¶
CleanWebhookTest cleans after a webhook test.
func CreateAuthReaderRoleBinding ¶
CreateAuthReaderRoleBinding creates the role binding to allow the webhook read the extension-apiserver-authentication configmap.
func CreateWebhookConfigurationReadyNamespace ¶
CreateWebhookConfigurationReadyNamespace creates a separate namespace for webhook configuration ready markers to prevent cross-talk with webhook configurations being tested.
func DeployWebhookAndService ¶
func DeployWebhookAndService(f *framework.Framework, image string, certContext *certContext, servicePort int32, containerPort int32, params ...string)
DeployWebhookAndService creates a webhook with a corresponding service.
func LabelNamespace ¶
LabelNamespace applies unique label to the namespace.
func RegisterMutatingWebhookForPod ¶
func RegisterMutatingWebhookForPod(f *framework.Framework, configName string, certContext *certContext, servicePort int32) func()
RegisterMutatingWebhookForPod creates mutation webhook configuration and applies it to the cluster.
func SetupWebhookCert ¶
func SetupWebhookCert(namespaceName string) *certContext
SetupWebhookCert sets up the server cert. For example, user, apiservers and admission webhooks can use the cert to prove their identity to the kube-apiserver.
Types ¶
This section is empty.