admissionhandler

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

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

func StartWebhookServer(ctx context.Context) error

StartWebhookServer starts the webhook server.

Types

type CSIGuestWebhook added in v3.1.0

type CSIGuestWebhook struct {
	client.Client
	// contains filtered or unexported fields
}

func (*CSIGuestWebhook) Handle added in v3.1.0

func (h *CSIGuestWebhook) Handle(ctx context.Context, req admission.Request) (resp admission.Response)

type CSISupervisorWebhook

type CSISupervisorWebhook struct {
	client.Client
	// contains filtered or unexported fields
}

func (*CSISupervisorWebhook) Handle

Jump to

Keyboard shortcuts

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