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.2 (latest)
Published
Jun 17, 2025
Platform
js/wasm
Imports
20 packages
Last checked
1 hour ago

Tools for package owners.