Documentation ¶
Index ¶
Constants ¶
View Source
const ( ValidationWebhookPath = "/validate" DefaultWebhookPort = 9883 DefaultWebhookMetricsBindAddress = "0" )
View Source
const ( PVCSIValidationWebhookPath = "/validate" PVCSIDefaultWebhookPort = 9883 PVCSIDefaultWebhookMetricsBindAddress = "0" PVCSIWebhookTlsMinVersion = "1.2" )
View Source
const ( ExpandVolumeWithSnapshotErrorMessage = "Expanding volume with snapshots is not allowed" DeleteVolumeWithSnapshotErrorMessage = "Deleting volume with snapshots is not allowed" )
View Source
const ( CreatePVCWithInvalidAnnotation = "Create PVC with invalid annotation " + common.AnnGuestClusterRequestedTopology AddPVCAnnotation = "Add a new PVC Annotation" UpdatePVCAnnotation = "Update the PVC Annotation" RemovePVCAnnotation = "Remove the PVC Annotation" )
View Source
const ( NonUpdatablePVCAnnotation = "PVC Annotation %s is not mutable by user %s" NonCreatablePVCAnnotation = "PVC Annotation %s cannot be created by user %s" CSIServiceAccountPrefix = "system:serviceaccount:vmware-system-csi" )
View Source
const ( SnapshotOperationNotAllowed = "Snapshot creation initiated directly from the Supervisor cluster " + "is not supported. Please initiate snapshot creation from the Guest cluster." SnapshotFeatureNotEnabled = "CSI Snapshot feature is not supported for vSphere driver on either " + "Supervisor cluster or Guest cluster. Please upgrade the appropriate cluster to get support for CSI snapshot feature." )
View Source
const (
// FileVolumeWithNodeAffinityError conveys the message that a file volume cannot have node affinity rules on it.
FileVolumeWithNodeAffinityError = "Invalid configuration. File volumes cannot have node affinity rules"
)
Variables ¶
View Source
var ( // COInitParams stores the input params required for initiating the // CO agnostic orchestrator in the admission handler package. COInitParams *interface{} )
Functions ¶
func StartWebhookServer ¶
StartWebhookServer starts the webhook server.
Types ¶
type CSIGuestWebhook ¶ added in v3.1.0
Click to show internal directories.
Click to hide internal directories.