validatingwebhook

package
v0.0.0-...-36a2447 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleBindingRequestValidator

type RoleBindingRequestValidator struct {
	Client runtimeClient.Client
}

func (RoleBindingRequestValidator) HandleValidate

type SSPRequestValidator

type SSPRequestValidator struct {
	Client runtimeClient.Client
}

The SSP resources is a CNV specific resource

func (SSPRequestValidator) HandleValidate

func (v SSPRequestValidator) HandleValidate(w http.ResponseWriter, r *http.Request)

type SpaceBindingRequestValidator

type SpaceBindingRequestValidator struct {
	Client runtimeClient.Client
}

SpaceBindingRequestValidator webhook validates SpaceBindingRequest CRs, Specifically it makes sure that once an SBR resource is created, the SpaceBindingRequest.Spec.MasterUserRecord field is not changed by the user. The reason for making SpaceBindingRequest.Spec.MasterUserRecord field immutable is that as of now the SpaceBinding resource name is composed as follows: <Space.Name>-checksum(<Space.Name>-<MasterUserRecord.Name>), thus changing it will trigger an updated of the SpaceBinding content but the name will still be based on the old MUR name. All the webhook configuration is available at member-operator/deploy/webhook/member-operator-webhook.yaml

func (SpaceBindingRequestValidator) HandleValidate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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