admissionhandler

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidationWebhookPath            = "/validate"
	DefaultWebhookPort               = 9883
	DefaultWebhookMetricsBindAddress = "0"
	WebhookTlsMinVersion             = "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"
)

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 CSISupervisorWebhook added in v2.6.0

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

func (*CSISupervisorWebhook) Handle added in v2.6.0

Jump to

Keyboard shortcuts

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