admission

package
v5.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAdmissionServer

func RunAdmissionServer()

RunAdmissionServer starts the admission https server

Types

type ResourceValidator

type ResourceValidator struct {
	Logger *logrus.Entry
	// contains filtered or unexported fields
}

ResourceValidator struct holds a resource information required to preform the validations

func NewBackingStoreValidator

func NewBackingStoreValidator(arRequest admissionv1.AdmissionReview) *ResourceValidator

NewBackingStoreValidator initializes a BackingStoreValidator to be used for loading and validating a backingstore

func NewBucketClassValidator

func NewBucketClassValidator(arRequest admissionv1.AdmissionReview) *ResourceValidator

NewBucketClassValidator initializes a BucketClassValidator to be used for loading and validating a bucketclass

func NewNamespaceStoreValidator

func NewNamespaceStoreValidator(arRequest admissionv1.AdmissionReview) *ResourceValidator

NewNamespaceStoreValidator initializes a BackingStoreValidator to be used for loading and validating a namespacestore

func NewNoobaaAccountValidator

func NewNoobaaAccountValidator(arRequest admissionv1.AdmissionReview) *ResourceValidator

NewNoobaaAccountValidator initializes a NoobaaAccountValidator to be used for loading and validating a noobaaaccount

func NewNoobaaValidator added in v5.11.0

func NewNoobaaValidator(arRequest admissionv1.AdmissionReview) *ResourceValidator

NewNoobaaValidator initializes a NoobaaValidator to be used for loading and validating a noobaa resource

func (*ResourceValidator) DeserializeBC

func (bcv *ResourceValidator) DeserializeBC(rawBS []byte) *nbv1.BucketClass

DeserializeBC extract the bucketclass object from the request

func (*ResourceValidator) DeserializeBS

func (bsv *ResourceValidator) DeserializeBS(rawBS []byte) *nbv1.BackingStore

DeserializeBS extract the backingstore object from the request

func (*ResourceValidator) DeserializeNA

func (nav *ResourceValidator) DeserializeNA(rawNA []byte) *nbv1.NooBaaAccount

DeserializeNA extract the noobaaaccount object from the request

func (*ResourceValidator) DeserializeNB added in v5.11.0

func (nv *ResourceValidator) DeserializeNB(rawNB []byte) *nbv1.NooBaa

DeserializeNB extract noobaa cr from the request

func (*ResourceValidator) DeserializeNS

func (nsv *ResourceValidator) DeserializeNS(rawNS []byte) *nbv1.NamespaceStore

DeserializeNS extract the namespacestore object from the request

func (*ResourceValidator) SetValidationResult

func (rv *ResourceValidator) SetValidationResult(isAllowed bool, message string)

SetValidationResult responsible of assinging the return values of a validation into the response appropriate fields

func (*ResourceValidator) ValidateBackingstore

func (bsv *ResourceValidator) ValidateBackingstore() admissionv1.AdmissionReview

ValidateBackingstore call appropriate validations based on the operation

func (*ResourceValidator) ValidateBucketClass

func (bcv *ResourceValidator) ValidateBucketClass() admissionv1.AdmissionReview

ValidateBucketClass call appropriate validations based on the operation

func (*ResourceValidator) ValidateCreateBC

func (bcv *ResourceValidator) ValidateCreateBC()

ValidateCreateBC runs all the validations tests for CREATE operations

func (*ResourceValidator) ValidateCreateBS

func (bsv *ResourceValidator) ValidateCreateBS()

ValidateCreateBS runs all the validations tests for CREATE operations

func (*ResourceValidator) ValidateCreateNA

func (nav *ResourceValidator) ValidateCreateNA()

ValidateCreateNA runs all the validations tests for CREATE operations

func (*ResourceValidator) ValidateCreateNS

func (nsv *ResourceValidator) ValidateCreateNS()

ValidateCreateNS runs all the validations tests for CREATE operations

func (*ResourceValidator) ValidateDeleteBS

func (bsv *ResourceValidator) ValidateDeleteBS()

ValidateDeleteBS runs all the validations tests for DELETE operations

func (*ResourceValidator) ValidateDeleteNS

func (nsv *ResourceValidator) ValidateDeleteNS()

ValidateDeleteNS runs all the validations tests for DELETE operations

func (*ResourceValidator) ValidateDeleteNoobaa added in v5.11.0

func (nv *ResourceValidator) ValidateDeleteNoobaa()

ValidateDeleteNoobaa runs all the validations tests for DELETE operations

func (*ResourceValidator) ValidateNamespaceStore

func (nsv *ResourceValidator) ValidateNamespaceStore() admissionv1.AdmissionReview

ValidateNamespaceStore call appropriate validations based on the operation

func (*ResourceValidator) ValidateNoobaAaccount

func (nav *ResourceValidator) ValidateNoobaAaccount() admissionv1.AdmissionReview

ValidateNoobaAaccount call appropriate validations based on the operation

func (*ResourceValidator) ValidateNoobaa added in v5.11.0

func (nv *ResourceValidator) ValidateNoobaa() admissionv1.AdmissionReview

ValidateNoobaa call appropriate validations based on the operation

func (*ResourceValidator) ValidateNoobaaCreate added in v5.12.4

func (nv *ResourceValidator) ValidateNoobaaCreate()

ValidateNoobaaCreate runs all the validations tests for CREATE operations

func (*ResourceValidator) ValidateNoobaaUpdate added in v5.12.4

func (nv *ResourceValidator) ValidateNoobaaUpdate()

ValidateNoobaaUpdate runs all the validations tests for UPDATE operations

func (*ResourceValidator) ValidateUpdateBC added in v5.13.0

func (bcv *ResourceValidator) ValidateUpdateBC()

ValidateUpdateBC runs all the validations tests for UPDATE operations

func (*ResourceValidator) ValidateUpdateBS

func (bsv *ResourceValidator) ValidateUpdateBS()

ValidateUpdateBS runs all the validations tests for UPDATE operations

func (*ResourceValidator) ValidateUpdateNA

func (nav *ResourceValidator) ValidateUpdateNA()

ValidateUpdateNA runs all the validations tests for UPDATE operations

func (*ResourceValidator) ValidateUpdateNS

func (nsv *ResourceValidator) ValidateUpdateNS()

ValidateUpdateNS runs all the validations tests for UPDATE operations

type ServerHandler

type ServerHandler struct {
}

ServerHandler listen to admission requests and serve responses

Jump to

Keyboard shortcuts

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