v1

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the custompodautoscaler.com v1 API group +kubebuilder:object:generate=true +groupName=custompodautoscaler.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "custompodautoscaler.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 CustomPodAutoscaler

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

	Spec   CustomPodAutoscalerSpec   `json:"spec,omitempty"`
	Status CustomPodAutoscalerStatus `json:"status,omitempty"`
}

CustomPodAutoscaler is the Schema for the custompodautoscalers API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:shortName=cpa +groupName=custompodautoscaler.com

func (*CustomPodAutoscaler) DeepCopy

func (in *CustomPodAutoscaler) DeepCopy() *CustomPodAutoscaler

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

func (*CustomPodAutoscaler) DeepCopyInto

func (in *CustomPodAutoscaler) DeepCopyInto(out *CustomPodAutoscaler)

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

func (*CustomPodAutoscaler) DeepCopyObject

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

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

type CustomPodAutoscalerConfig

type CustomPodAutoscalerConfig struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

CustomPodAutoscalerConfig defines the configuration options that can be passed to the CustomPodAutoscaler

func (*CustomPodAutoscalerConfig) DeepCopy

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

func (*CustomPodAutoscalerConfig) DeepCopyInto

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

type CustomPodAutoscalerList

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

CustomPodAutoscalerList contains a list of CustomPodAutoscaler +kubebuilder:object:root=true

func (*CustomPodAutoscalerList) DeepCopy

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

func (*CustomPodAutoscalerList) DeepCopyInto

func (in *CustomPodAutoscalerList) DeepCopyInto(out *CustomPodAutoscalerList)

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

func (*CustomPodAutoscalerList) DeepCopyObject

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

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

type CustomPodAutoscalerSpec

type CustomPodAutoscalerSpec struct {
	// The image of the Custom Pod Autoscaler
	Template PodTemplateSpec `json:"template"`
	// ScaleTargetRef defining what the Custom Pod Autoscaler should manage
	ScaleTargetRef autoscaling.CrossVersionObjectReference `json:"scaleTargetRef"`
	// Configuration options to be delivered as environment variables to the container
	Config                    []CustomPodAutoscalerConfig `json:"config,omitempty"`
	ProvisionRole             *bool                       `json:"provisionRole,omitempty"`
	ProvisionRoleBinding      *bool                       `json:"provisionRoleBinding,omitempty"`
	ProvisionServiceAccount   *bool                       `json:"provisionServiceAccount,omitempty"`
	ProvisionPod              *bool                       `json:"provisionPod,omitempty"`
	RoleRequiresMetricsServer *bool                       `json:"roleRequiresMetricsServer,omitempty"`
	RoleRequiresArgoRollouts  *bool                       `json:"roleRequiresArgoRollouts,omitempty"`
}

CustomPodAutoscalerSpec defines the desired state of CustomPodAutoscaler

func (*CustomPodAutoscalerSpec) DeepCopy

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

func (*CustomPodAutoscalerSpec) DeepCopyInto

func (in *CustomPodAutoscalerSpec) DeepCopyInto(out *CustomPodAutoscalerSpec)

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

type CustomPodAutoscalerStatus

type CustomPodAutoscalerStatus struct{}

CustomPodAutoscalerStatus defines the observed state of CustomPodAutoscaler

func (*CustomPodAutoscalerStatus) DeepCopy

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

func (*CustomPodAutoscalerStatus) DeepCopyInto

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

type PodMeta added in v1.3.0

type PodMeta metav1.ObjectMeta

+kubebuilder:pruning:PreserveUnknownFields

func (*PodMeta) DeepCopy added in v1.3.0

func (in *PodMeta) DeepCopy() *PodMeta

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

func (*PodMeta) DeepCopyInto added in v1.3.0

func (in *PodMeta) DeepCopyInto(out *PodMeta)

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

type PodSpec added in v1.3.0

type PodSpec corev1.PodSpec

func (*PodSpec) DeepCopy added in v1.3.0

func (in *PodSpec) DeepCopy() *PodSpec

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

func (*PodSpec) DeepCopyInto added in v1.3.0

func (in *PodSpec) DeepCopyInto(out *PodSpec)

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

type PodTemplateSpec added in v1.3.0

type PodTemplateSpec struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta PodMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Specification of the desired behavior of the pod.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec PodSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

func (*PodTemplateSpec) DeepCopy added in v1.3.0

func (in *PodTemplateSpec) DeepCopy() *PodTemplateSpec

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

func (*PodTemplateSpec) DeepCopyInto added in v1.3.0

func (in *PodTemplateSpec) DeepCopyInto(out *PodTemplateSpec)

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