CmdCrdConversionWebhook is used by agnhost Cobra.
var CmdCrdConversionWebhook = &cobra.Command{ Use: "crd-conversion-webhook", Short: "Starts HTTP server on port 443 for testing CustomResourceConversionWebhook", Long: `The subcommand tests "CustomResourceConversionWebhook". After deploying it to Kubernetes cluster, the administrator needs to create a "CustomResourceConversion.Webhook" in Kubernetes cluster to use remote webhook for conversions. The subcommand starts a HTTP server, listening on port 443, and creating the "/crdconvert" endpoint.`, Args: cobra.MaximumNArgs(0), Run: main, }
Config contains the server (the webhook) cert and key.
type Config struct { CertFile string KeyFile string }