webhook

package
v1.6.13-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Gi int64 = 1024 * 1024 * 1024
	Ti int64 = 1024 * Gi
)

Variables

View Source
var (
	// StorageClassV1GVR is GroupVersionResource for v1 StorageClass
	StorageClassV1GVR         = metav1.GroupVersionResource{Group: "storage.k8s.io", Version: "v1", Resource: "storageclasses"}
	FilestoreCSIDriver        = "filestore.csi.storage.gke.io"
	TierEnterprise            = "enterprise"
	InstanceStorageClassLabel = "instance-storageclass-label"
	Multishare                = "multishare"
	MaxVolumeSize             = "max-volume-size"
)
View Source
var CmdWebhook = &cobra.Command{
	Use:   "validation-webhook",
	Short: "Starts a HTTP server, uses MutatingAdmissionWebhook and ValidatingAdmissionWebhook on StorageClass",
	Long:  `Starts a HTTP server, uses MutatingAdmissionWebhook and ValidatingAdmissionWebhook on StorageClass. After deploying it to Kubernetes cluster, the Administrator needs to create a MutatingAdmissionWebhook and ValidatingWebhookConfiguration in the Kubernetes cluster to register remote webhook admission controllers.`,
	Args:  cobra.MaximumNArgs(0),
	Run:   main,
}

CmdWebhook is used by Cobra.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL