Documentation ¶
Index ¶
Constants ¶
View Source
const ( CertFile = "server-cert.pem" KeyFile = "server-key.pem" DefaultCertDir = "/tmp/k8s-webhook-server/serving-certs" FunctionCRDName = "functions.serverless.kyma-project.io" )
View Source
const ( MutatingWebhook WebHookType = "Mutating" ValidatingWebHook WebHookType = "Validating" DefaultingWebhookName = "defaulting.webhook.serverless.kyma-project.io" ValidationWebhookName = "validation.webhook.serverless.kyma-project.io" FunctionDefaultingWebhookPath = "/defaulting/functions" RegistryConfigDefaultingWebhookPath = "/defaulting/registry-config-secrets" FunctionValidationWebhookPath = "/validation/function" )
View Source
const TimeToExpire = 10 * 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func InjectCABundleIntoWebhooks ¶
func InjectCABundleIntoWebhooks(ctx context.Context, client ctlrclient.Client, config WebhookConfig, wt WebHookType) error
Types ¶
type Result ¶
type Result int
func EnsureWebhookSecret ¶
func EnsureWebhookSecret(ctx context.Context, client ctrlclient.Client, secretName, secretNamespace, serviceName string, log *zap.SugaredLogger) (Result, error)
func SetupCertificates ¶
type WebHookType ¶
type WebHookType string
type WebhookConfig ¶
Click to show internal directories.
Click to hide internal directories.