webhook

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "custom.cmss.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type CustomItems

type CustomItems struct {
	Ingress resource.Quantity `json:"ingress-bandwidth,omitempty"`
	Egress  resource.Quantity `json:"egress-bandwidth,omitempty"`
}

func (*CustomItems) DeepCopy

func (in *CustomItems) DeepCopy() *CustomItems

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomItems.

func (*CustomItems) DeepCopyInto

func (in *CustomItems) DeepCopyInto(out *CustomItems)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CustomLimitRange

type CustomLimitRange struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CustomLimitRangeSpec   `json:"spec"`
	Status CustomLimitRangeStatus `json:"status,omitempty"`
}

CustomLimitRange is the Schema for the customlimitranges API

func (*CustomLimitRange) DeepCopy

func (in *CustomLimitRange) DeepCopy() *CustomLimitRange

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomLimitRange.

func (*CustomLimitRange) DeepCopyInto

func (in *CustomLimitRange) DeepCopyInto(out *CustomLimitRange)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CustomLimitRange) DeepCopyObject

func (in *CustomLimitRange) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CustomLimitRange) Default

func (r *CustomLimitRange) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*CustomLimitRange) SetupWebhookWithManager

func (r *CustomLimitRange) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*CustomLimitRange) ValidateCreate

func (r *CustomLimitRange) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*CustomLimitRange) ValidateDelete

func (r *CustomLimitRange) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*CustomLimitRange) ValidateUpdate

func (r *CustomLimitRange) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type CustomLimitRangeList

type CustomLimitRangeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CustomLimitRange `json:"items"`
}

CustomLimitRangeList contains a list of CustomLimitRange

func (*CustomLimitRangeList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomLimitRangeList.

func (*CustomLimitRangeList) DeepCopyInto

func (in *CustomLimitRangeList) DeepCopyInto(out *CustomLimitRangeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CustomLimitRangeList) DeepCopyObject

func (in *CustomLimitRangeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CustomLimitRangeSpec

type CustomLimitRangeSpec struct {
	LRange LimitRange `json:"limitrange"`
}

CustomLimitRangeSpec defines the desired state of CustomLimitRange

func (*CustomLimitRangeSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomLimitRangeSpec.

func (*CustomLimitRangeSpec) DeepCopyInto

func (in *CustomLimitRangeSpec) DeepCopyInto(out *CustomLimitRangeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CustomLimitRangeStatus

type CustomLimitRangeStatus struct {
}

CustomLimitRangeStatus defines the observed state of CustomLimitRange

func (*CustomLimitRangeStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomLimitRangeStatus.

func (*CustomLimitRangeStatus) DeepCopyInto

func (in *CustomLimitRangeStatus) DeepCopyInto(out *CustomLimitRangeStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LimitRange

type LimitRange struct {
	Type    string      `json:"type"`
	Max     CustomItems `json:"max,omitempty"`
	Min     CustomItems `json:"min,omitempty"`
	Default CustomItems `json:"default,omitempty"`
}

func (*LimitRange) DeepCopy

func (in *LimitRange) DeepCopy() *LimitRange

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitRange.

func (*LimitRange) DeepCopyInto

func (in *LimitRange) DeepCopyInto(out *LimitRange)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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