{"modulePath":"github.com/devfile/devworkspace-operator","version":"v1.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package server\n\n## Constants\n\n```go\nconst (\n\tWebhookServerHost    = \"0.0.0.0\"\n\tWebhookServerPort    = 8443\n\tWebhookServerCertDir = \"/tmp/k8s-webhook-server/serving-certs\"\n\n\tWebhookServerAppName        = \"devworkspace-webhook-server\"\n\tWebhookServerDeploymentName = WebhookServerAppName\n\n\tWebhookServerServiceName = \"devworkspace-webhookserver\"\n\tWebhookServerPortName    = \"webhook-server\"\n\n\tWebhookMetricsPortName = \"metrics\"\n\n\t// Holds webhook server related SA name and SA-related objects, like ClusterRole, ClusterRoleBinding\n\tWebhookServerSAName = \"devworkspace-webhook-server\"\n\n\tWebhookServerCertsVolumeName = \"webhook-tls-certs\"\n)\n```\n\n## Variables\n\n```go\nvar CABundle []byte\n```\n\n```go\nvar WebhookServerAppAnnotations = func() map[string]string {\n\n\tnow := time.Now()\n\treturn map[string]string{\n\t\tconstants.WebhookRestartedAtAnnotation: strconv.FormatInt(now.UnixNano(), 10),\n\t}\n}\n```\n\n```go\nvar WebhookServerAppLabels = func() map[string]string {\n\treturn map[string]string{\n\t\t\"app.kubernetes.io/name\":    WebhookServerAppName,\n\t\t\"app.kubernetes.io/part-of\": \"devworkspace-operator\",\n\t}\n}\n```\n\n## Functions\n\n```go\nfunc ConfigureWebhookServer(mgr manager.Manager) error\n```\n\n```go\nfunc GetWebhookServer() webhook.Server\n```\nGetWebhookServer returns webhook server if it's configured, or nil otherwise\n\n```go\nfunc IsSetUp() bool\n```\nIsSetUp returns true if webhook server is configured, or false otherwise\n\n","path":"github.com/devfile/devworkspace-operator/webhook/server","name":"server","synopsis":"","isRedistributable":true}
