v1alpha1

package
v0.0.0-...-209ba2c Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

View Source
const DefaultFuxiMaxUnavailable = "20%"

EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

Variables

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

	SchemeGroupVersion = GroupVersion

	// 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

func Resource

func Resource(resource string) schema.GroupResource

Types

type Fuxi

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

	Spec   FuxiSpec   `json:"spec,omitempty"`
	Status FuxiStatus `json:"status,omitempty"`
}

Fuxi is the Schema for the Fuxis API

func (*Fuxi) DeepCopy

func (in *Fuxi) DeepCopy() *Fuxi

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

func (*Fuxi) DeepCopyInto

func (in *Fuxi) DeepCopyInto(out *Fuxi)

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

func (*Fuxi) DeepCopyObject

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

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

type FuxiCondition

type FuxiCondition struct {
	// Type of Fuxi condition.
	Type FuxiConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

FuxiCondition describes the state of a Fuxi at a certain point.

func (*FuxiCondition) DeepCopy

func (in *FuxiCondition) DeepCopy() *FuxiCondition

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

func (*FuxiCondition) DeepCopyInto

func (in *FuxiCondition) DeepCopyInto(out *FuxiCondition)

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

type FuxiConditionType

type FuxiConditionType string

FuxiConditionType is type for Fuxi conditions.

const (
	// FuxiConditionFailedScale indicates fuxi controller failed to create or delete pods/pvc.
	FuxiConditionFailedScale FuxiConditionType = "FailedScale"
	// FuxiConditionFailedUpdate indicates fuxi controller failed to update pods.
	FuxiConditionFailedUpdate FuxiConditionType = "FailedUpdate"
)

type FuxiList

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

FuxiList contains a list of Fuxi

func (*FuxiList) DeepCopy

func (in *FuxiList) DeepCopy() *FuxiList

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

func (*FuxiList) DeepCopyInto

func (in *FuxiList) DeepCopyInto(out *FuxiList)

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

func (*FuxiList) DeepCopyObject

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

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

type FuxiSpec

type FuxiSpec struct {
	Replicas             *int32                     `json:"replicas,omitempty"`
	Selector             *metav1.LabelSelector      `json:"selector"`
	Template             v1.PodTemplateSpec         `json:"template"`
	VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
	MinReadySeconds      int32                      `json:"minReadySeconds,omitempty"`
	ScaleStrategy        FuxiStrategy               `json:"scaleStrategy,omitempty"`
	UpdateStrategy       FuxiUpdateStrategy         `json:"updateStrategy,omitempty"`
}

FuxiSpec defines the desired state of Fuxi

func (*FuxiSpec) DeepCopy

func (in *FuxiSpec) DeepCopy() *FuxiSpec

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

func (*FuxiSpec) DeepCopyInto

func (in *FuxiSpec) DeepCopyInto(out *FuxiSpec)

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

type FuxiStatus

type FuxiStatus struct {
	ObservedGeneration   int64  `json:"observedGeneration,omitempty"`
	Ready                bool   `json:"ready"`
	Replicas             int32  `json:"replicas"`
	ReadyReplicas        int32  `json:"readyReplicas"`
	AvailableReplicas    int32  `json:"availableReplicas"`
	UpdatedReplicas      int32  `json:"updatedReplicas"`
	UpdatedReadyReplicas int32  `json:"updatedReadyReplicas"`
	CurrentRevision      string `json:"currentRevision,omitempty"`
	UpdateRevision       string `json:"updateRevision,omitempty"`

	// Conditions represents the latest available observations of a Fuxi's current state.
	Conditions []FuxiCondition `json:"conditions,omitempty"`

	LabelSelector  string `json:"labelSelector,omitempty"`
	CollisionCount *int32 `json:"collisionCount,omitempty"`
}

FuxiStatus defines the observed state of Fuxi

func (*FuxiStatus) DeepCopy

func (in *FuxiStatus) DeepCopy() *FuxiStatus

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

func (*FuxiStatus) DeepCopyInto

func (in *FuxiStatus) DeepCopyInto(out *FuxiStatus)

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

type FuxiStrategy

type FuxiStrategy struct {
	PodsToDelete   []string            `json:"podsToDelete,omitempty"`
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
}

func (*FuxiStrategy) DeepCopy

func (in *FuxiStrategy) DeepCopy() *FuxiStrategy

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

func (*FuxiStrategy) DeepCopyInto

func (in *FuxiStrategy) DeepCopyInto(out *FuxiStrategy)

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

type FuxiUpdateStrategy

type FuxiUpdateStrategy struct {
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
	MaxSurge       *intstr.IntOrString `json:"maxSurge,omitempty"`
	Paused         bool                `json:"paused,omitempty"`
}

func (*FuxiUpdateStrategy) DeepCopy

func (in *FuxiUpdateStrategy) DeepCopy() *FuxiUpdateStrategy

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

func (*FuxiUpdateStrategy) DeepCopyInto

func (in *FuxiUpdateStrategy) DeepCopyInto(out *FuxiUpdateStrategy)

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