Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the k8s v1alpha1 API group +kubebuilder:object:generate=true +groupName=k8s.418.cloud
Index ¶
- Variables
- type TeapotApp
- func (t *TeapotApp) AutoscalingEnabled() bool
- func (in *TeapotApp) DeepCopy() *TeapotApp
- func (in *TeapotApp) DeepCopyInto(out *TeapotApp)
- func (in *TeapotApp) DeepCopyObject() runtime.Object
- func (t *TeapotApp) GetLimits() corev1.ResourceList
- func (t *TeapotApp) GetMaxReplicas() int32
- func (t *TeapotApp) GetMinReplicas() *int32
- func (t *TeapotApp) GetPath() string
- func (t *TeapotApp) GetReplicas() *int32
- func (t *TeapotApp) GetRequests() corev1.ResourceList
- func (t *TeapotApp) IsAutoscalingOutdated(autoscaling autoscalingv2beta2.HorizontalPodAutoscaler) bool
- func (t *TeapotApp) IsDeploymentOutdated(deployment appsv1.Deployment) bool
- func (t *TeapotApp) IsIngressRouteOutdated(ingressroute traefikv1alpha1.IngressRoute) bool
- type TeapotAppAutoscaling
- type TeapotAppList
- type TeapotAppResourceBlock
- type TeapotAppResources
- type TeapotAppScale
- type TeapotAppSpec
- type TeapotAppStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "k8s.418.cloud", Version: "v1alpha1"} // 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 TeapotApp ¶
type TeapotApp struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TeapotAppSpec `json:"spec,omitempty"` Status TeapotAppStatus `json:"status,omitempty"` }
TeapotApp is the Schema for the teapotapps API
func (*TeapotApp) AutoscalingEnabled ¶
func (*TeapotApp) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeapotApp.
func (*TeapotApp) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TeapotApp) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TeapotApp) GetLimits ¶
func (t *TeapotApp) GetLimits() corev1.ResourceList
func (*TeapotApp) GetMaxReplicas ¶
func (*TeapotApp) GetMinReplicas ¶
func (*TeapotApp) GetReplicas ¶
func (*TeapotApp) GetRequests ¶
func (t *TeapotApp) GetRequests() corev1.ResourceList
func (*TeapotApp) IsAutoscalingOutdated ¶
func (t *TeapotApp) IsAutoscalingOutdated(autoscaling autoscalingv2beta2.HorizontalPodAutoscaler) bool
func (*TeapotApp) IsDeploymentOutdated ¶
func (t *TeapotApp) IsDeploymentOutdated(deployment appsv1.Deployment) bool
IsDeploymentOutdated returns true if the deployment is outdated
func (*TeapotApp) IsIngressRouteOutdated ¶
func (t *TeapotApp) IsIngressRouteOutdated(ingressroute traefikv1alpha1.IngressRoute) bool
type TeapotAppAutoscaling ¶
type TeapotAppAutoscaling struct { Enabled *bool `json:"enabled,omitempty"` MinReplicas *int32 `json:"minReplicas,omitempty"` MaxReplicas *int32 `json:"maxReplicas,omitempty"` }
func (*TeapotAppAutoscaling) DeepCopy ¶
func (in *TeapotAppAutoscaling) DeepCopy() *TeapotAppAutoscaling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeapotAppAutoscaling.
func (*TeapotAppAutoscaling) DeepCopyInto ¶
func (in *TeapotAppAutoscaling) DeepCopyInto(out *TeapotAppAutoscaling)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TeapotAppList ¶
type TeapotAppList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TeapotApp `json:"items"` }
TeapotAppList contains a list of TeapotApp
func (*TeapotAppList) DeepCopy ¶
func (in *TeapotAppList) DeepCopy() *TeapotAppList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeapotAppList.
func (*TeapotAppList) DeepCopyInto ¶
func (in *TeapotAppList) DeepCopyInto(out *TeapotAppList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TeapotAppList) DeepCopyObject ¶
func (in *TeapotAppList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TeapotAppResourceBlock ¶
TeapotAppResourceBlock defines CPU and Memory requests and limits of the deployment
func (*TeapotAppResourceBlock) DeepCopy ¶
func (in *TeapotAppResourceBlock) DeepCopy() *TeapotAppResourceBlock
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeapotAppResourceBlock.
func (*TeapotAppResourceBlock) DeepCopyInto ¶
func (in *TeapotAppResourceBlock) DeepCopyInto(out *TeapotAppResourceBlock)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TeapotAppResources ¶
type TeapotAppResources struct { Limits *TeapotAppResourceBlock `json:"limits,omitempty"` Requests *TeapotAppResourceBlock `json:"requests,omitempty"` }
TeapotAppResources defines the resources of the deployment
func (*TeapotAppResources) DeepCopy ¶
func (in *TeapotAppResources) DeepCopy() *TeapotAppResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeapotAppResources.
func (*TeapotAppResources) DeepCopyInto ¶
func (in *TeapotAppResources) DeepCopyInto(out *TeapotAppResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TeapotAppScale ¶
type TeapotAppScale struct { Replicas *int32 `json:"replicas"` Autoscaling *TeapotAppAutoscaling `json:"autoscaling,omitempty"` }
TeapotAppScale defines the desired scale of the deployment
func (*TeapotAppScale) DeepCopy ¶
func (in *TeapotAppScale) DeepCopy() *TeapotAppScale
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeapotAppScale.
func (*TeapotAppScale) DeepCopyInto ¶
func (in *TeapotAppScale) DeepCopyInto(out *TeapotAppScale)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TeapotAppSpec ¶
type TeapotAppSpec struct { Image string `json:"image,omitempty"` Args []string `json:"args,omitempty"` Scale TeapotAppScale `json:"scale,omitempty"` Resources TeapotAppResources `json:"resources,omitempty"` Path string `json:"path,omitempty"` }
TeapotAppSpec defines the desired state of TeapotApp
func (*TeapotAppSpec) DeepCopy ¶
func (in *TeapotAppSpec) DeepCopy() *TeapotAppSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeapotAppSpec.
func (*TeapotAppSpec) DeepCopyInto ¶
func (in *TeapotAppSpec) DeepCopyInto(out *TeapotAppSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TeapotAppStatus ¶
type TeapotAppStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file DeploymentName string `json:"deployment"` DeploymentStatus appsv1.DeploymentStatus `json:"deploymentStatus"` Route string `json:"route"` }
TeapotAppStatus defines the observed state of TeapotApp
func (*TeapotAppStatus) DeepCopy ¶
func (in *TeapotAppStatus) DeepCopy() *TeapotAppStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeapotAppStatus.
func (*TeapotAppStatus) DeepCopyInto ¶
func (in *TeapotAppStatus) DeepCopyInto(out *TeapotAppStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.