...

Package crdconvwebhook

import "k8s.io/kubernetes/test/images/agnhost/crd-conversion-webhook"
Overview
Index
Subdirectories

Overview ▾

Index ▾

Package files

config.go main.go

Variables

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,
}

type Config

Config contains the server (the webhook) cert and key.

type Config struct {
    CertFile string
    KeyFile  string
}

Subdirectories

Name Synopsis
..
converter