kubernetesk8s.io/kubernetes/test/images/agnhost/webhook Index | Files

package webhook

import "k8s.io/kubernetes/test/images/agnhost/webhook"

Index

Variables

var CmdWebhook = &cobra.Command{
	Use:   "webhook",
	Short: "Starts a HTTP server, useful for testing MutatingAdmissionWebhook and ValidatingAdmissionWebhook",
	Long:  "" /* 284 byte string literal not displayed */,

	Args: cobra.MaximumNArgs(0),
	Run:  main,
}

CmdWebhook is used by agnhost Cobra.

Types

type Config

type Config struct {
	CertFile string
	KeyFile  string
}

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

Source Files

addlabel.go alwaysallow.go alwaysdeny.go config.go configmap.go convert.go crd.go customresource.go main.go pods.go scheme.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
20 packages
Last checked
6 hours ago

Tools for package owners.