v1alpha1

package
v0.0.0-...-a9fa893 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the appstudio v1alpha1 API group +kubebuilder:object:generate=true +groupName=appstudio.redhat.com

Index

Constants

View Source
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

View Source
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

func (in *Bar) DeepCopy() *Bar

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

func (*Bar) DeepCopyInto

func (in *Bar) DeepCopyInto(out *Bar)

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

func (*Bar) DeepCopyObject

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

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

func (in *BarList) DeepCopy() *BarList

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

func (*BarList) DeepCopyInto

func (in *BarList) DeepCopyInto(out *BarList)

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

func (*BarList) DeepCopyObject

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

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

func (in *BarSpec) DeepCopy() *BarSpec

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

func (*BarSpec) DeepCopyInto

func (in *BarSpec) DeepCopyInto(out *BarSpec)

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

func (in *Foo) DeepCopy() *Foo

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

func (*Foo) DeepCopyInto

func (in *Foo) DeepCopyInto(out *Foo)

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

func (*Foo) DeepCopyObject

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

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

func (in *FooList) DeepCopy() *FooList

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

func (*FooList) DeepCopyInto

func (in *FooList) DeepCopyInto(out *FooList)

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

func (*FooList) DeepCopyObject

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

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

func (in *FooSpec) DeepCopy() *FooSpec

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

func (*FooSpec) DeepCopyInto

func (in *FooSpec) DeepCopyInto(out *FooSpec)

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

func (in *FooStatus) DeepCopy() *FooStatus

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

func (*FooStatus) DeepCopyInto

func (in *FooStatus) DeepCopyInto(out *FooStatus)

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

Directories

Path Synopsis
bar

Jump to

Keyboard shortcuts

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