Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the appstudio v1alpha1 API group +kubebuilder:object:generate=true +groupName=appstudio.redhat.com
Index ¶
Constants ¶
const ( // HealthyReason is the reason set when the resource is healthy HealthyReason conditions.ConditionReason = "Healthy" // NotEnoughReplicasReason is the reason set when the resource needs to scale up NotEnoughReplicasReason conditions.ConditionReason = "NotEnoughReplicas" // TooManyReplicasReason is the reason set when the resource needs to scale down TooManyReplicasReason conditions.ConditionReason = "TooManyReplicas" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "appstudio.redhat.com", 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 Bar ¶
type Bar struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BarSpec `json:"spec,omitempty"` }
Bar is the Schema for the bars API
func (*Bar) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bar.
func (*Bar) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Bar) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BarList ¶
type BarList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Bar `json:"items"` }
BarList contains a list of Bar
func (*BarList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BarList.
func (*BarList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BarList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BarSpec ¶
type BarSpec struct { // Foo is the name of the Foo resource associated with this resource // +optional Foo string `json:"foo,omitempty"` }
BarSpec defines the desired state of Bar
func (*BarSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BarSpec.
func (*BarSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Foo ¶
type Foo struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FooSpec `json:"spec,omitempty"` Status FooStatus `json:"status,omitempty"` }
Foo is the Schema for the foos API
func (*Foo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Foo.
func (*Foo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Foo) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Foo) MarkHealthy ¶
func (f *Foo) MarkHealthy(reason conditions.ConditionReason)
MarkHealthy marks the Foo resource as healthy using the reason passed as a parameter
func (*Foo) MarkUnhealthy ¶
func (f *Foo) MarkUnhealthy()
MarkUnhealthy marks the Foo resource as unhealthy
type FooList ¶
type FooList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Foo `json:"items"` }
FooList contains a list of Foo
func (*FooList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooList.
func (*FooList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FooList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FooSpec ¶
type FooSpec struct { // DesiredReplicas is the number of Bar replicas that should exist at any given moment DesiredReplicas int `json:"desiredReplicas"` }
FooSpec defines the desired state of Foo
func (*FooSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooSpec.
func (*FooSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FooStatus ¶
type FooStatus struct { // Conditions represent the latest available observations for the Foo resource // +optional Conditions []metav1.Condition `json:"conditions"` // Replicas is a slice containing the list of replica names for this resource Replicas []string `json:"replicas,omitempty"` }
FooStatus defines the observed state of Foo
func (*FooStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooStatus.
func (*FooStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.