Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the app v1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=KubeService/pkg/apis/app +k8s:defaulter-gen=TypeMeta +groupName=app.o0w0o.cn
Package v1 contains API Schema definitions for the app v1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=KubeService/pkg/apis/app +k8s:defaulter-gen=TypeMeta +groupName=app.o0w0o.cn
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type App
- type AppCondition
- type AppConditionType
- type AppList
- type AppSpec
- type AppStatus
- type Canary
- type ConditionStatus
- type DeployVersion
- type IngressLoadBalance
- type LoadBalance
- type MicroService
- type MicroServiceCondition
- type MicroServiceConditionType
- type MicroServiceList
- type MicroServiceSpec
- type MicroServiceStatus
- type MicroServiceTemplate
- type ServiceLoadBalance
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "app.o0w0o.cn", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type App ¶
type App struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AppSpec `json:"spec,omitempty"` Status AppStatus `json:"status,omitempty"` }
App is the Schema for the apps API +k8s:openapi-gen=true +kubebuilder:subresource:status
func (*App) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App.
func (*App) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*App) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppCondition ¶
type AppCondition struct { // Type of deployment condition. Type AppConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=AppConditionType"` // Status of the condition, one of True, False, Unknown. Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"` // The last time this condition was updated. LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` }
type AppConditionType ¶
type AppConditionType string
const ( AppAvailable AppConditionType = "Available" AppProgressing AppConditionType = "Progressing" )
type AppList ¶
type AppList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []App `json:"items"` }
AppList contains a list of App
func (*AppList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppList.
func (*AppList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppSpec ¶
type AppSpec struct {
MicroServices []MicroServiceTemplate `json:"microServices,omitempty"`
}
AppSpec defines the desired state of App
func (*AppSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSpec.
func (*AppSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppStatus ¶
type AppStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file Conditions []AppCondition `json:"conditions,omitempty"` AvailableMicroServices int32 `json:"availableVersions,omitempty" protobuf:"varint,4,opt,name=availableMSs"` TotalMicroServices int32 `json:"totalVersions,omitempty" protobuf:"varint,4,opt,name=totalMSs"` }
AppStatus defines the observed state of App
func (*AppStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStatus.
func (*AppStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Canary ¶
type Canary struct { // +kubebuilder:validation:Maximum=100 // +kubebuilder:validation:Minimum=1 Weight int `json:"weight"` // +optional CanaryIngressName string `json:"canaryIngressName,omitempty"` // +optional Header string `json:"header,omitempty"` // +optional HeaderValue string `json:"headerValue,omitempty"` // +optional Cookie string `json:"cookie,omitempty"` }
func (*Canary) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Canary.
func (*Canary) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionStatus ¶
type ConditionStatus string
const ( ConditionTrue ConditionStatus = "True" ConditionFalse ConditionStatus = "False" ConditionUnknown ConditionStatus = "Unknown" )
type DeployVersion ¶
type DeployVersion struct { Name string `json:"name"` Template appsv1.DeploymentSpec `json:"template"` // +optional ServiceName string `json:"serviceName,omitempty"` // +optional Canary *Canary `json:"canary,omitempty"` }
func (*DeployVersion) DeepCopy ¶
func (in *DeployVersion) DeepCopy() *DeployVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployVersion.
func (*DeployVersion) DeepCopyInto ¶
func (in *DeployVersion) DeepCopyInto(out *DeployVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressLoadBalance ¶
type IngressLoadBalance struct { Name string `json:"name"` Spec extensionsv1beta1.IngressSpec `json:"spec"` }
func (*IngressLoadBalance) DeepCopy ¶
func (in *IngressLoadBalance) DeepCopy() *IngressLoadBalance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressLoadBalance.
func (*IngressLoadBalance) DeepCopyInto ¶
func (in *IngressLoadBalance) DeepCopyInto(out *IngressLoadBalance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LoadBalance ¶
type LoadBalance struct { // +optional Service *ServiceLoadBalance `json:"service,omitempty"` // +optional Ingress *IngressLoadBalance `json:"ingress,omitempty"` }
func (*LoadBalance) DeepCopy ¶
func (in *LoadBalance) DeepCopy() *LoadBalance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalance.
func (*LoadBalance) DeepCopyInto ¶
func (in *LoadBalance) DeepCopyInto(out *LoadBalance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MicroService ¶
type MicroService struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MicroServiceSpec `json:"spec,omitempty"` Status MicroServiceStatus `json:"status,omitempty"` }
MicroService is the Schema for the microservices API +k8s:openapi-gen=true +kubebuilder:subresource:status
func (*MicroService) DeepCopy ¶
func (in *MicroService) DeepCopy() *MicroService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroService.
func (*MicroService) DeepCopyInto ¶
func (in *MicroService) DeepCopyInto(out *MicroService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MicroService) DeepCopyObject ¶
func (in *MicroService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MicroServiceCondition ¶
type MicroServiceCondition struct { // Type of deployment condition. Type MicroServiceConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=MicroServiceConditionType"` // Status of the condition, one of True, False, Unknown. Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"` // The last time this condition was updated. LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` }
type MicroServiceConditionType ¶
type MicroServiceConditionType string
const ( MicroServiceAvailable MicroServiceConditionType = "Available" MicroServiceProgressing MicroServiceConditionType = "Progressing" )
type MicroServiceList ¶
type MicroServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MicroService `json:"items"` }
MicroServiceList contains a list of MicroService
func (*MicroServiceList) DeepCopy ¶
func (in *MicroServiceList) DeepCopy() *MicroServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroServiceList.
func (*MicroServiceList) DeepCopyInto ¶
func (in *MicroServiceList) DeepCopyInto(out *MicroServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MicroServiceList) DeepCopyObject ¶
func (in *MicroServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MicroServiceSpec ¶
type MicroServiceSpec struct { // +optional LoadBalance *LoadBalance `json:"loadBalance,omitempty"` Versions []DeployVersion `json:"versions"` CurrentVersionName string `json:"currentVersionName"` }
MicroServiceSpec defines the desired state of MicroService
func (*MicroServiceSpec) DeepCopy ¶
func (in *MicroServiceSpec) DeepCopy() *MicroServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroServiceSpec.
func (*MicroServiceSpec) DeepCopyInto ¶
func (in *MicroServiceSpec) DeepCopyInto(out *MicroServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MicroServiceStatus ¶
type MicroServiceStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file Conditions []MicroServiceCondition `json:"conditions,omitempty"` AvailableVersions int32 `json:"availableVersions,omitempty" protobuf:"varint,4,opt,name=availableVersions"` TotalVersions int32 `json:"totalVersions,omitempty" protobuf:"varint,4,opt,name=totalVersions"` }
MicroServiceStatus defines the observed state of MicroService
func (*MicroServiceStatus) DeepCopy ¶
func (in *MicroServiceStatus) DeepCopy() *MicroServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroServiceStatus.
func (*MicroServiceStatus) DeepCopyInto ¶
func (in *MicroServiceStatus) DeepCopyInto(out *MicroServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MicroServiceTemplate ¶
type MicroServiceTemplate struct { Name string `json:"name"` Spec MicroServiceSpec `json:"spec,omitempty"` }
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.
func (*MicroServiceTemplate) DeepCopy ¶
func (in *MicroServiceTemplate) DeepCopy() *MicroServiceTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroServiceTemplate.
func (*MicroServiceTemplate) DeepCopyInto ¶
func (in *MicroServiceTemplate) DeepCopyInto(out *MicroServiceTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceLoadBalance ¶
type ServiceLoadBalance struct { Name string `json:"name"` Spec corev1.ServiceSpec `json:"spec"` }
func (*ServiceLoadBalance) DeepCopy ¶
func (in *ServiceLoadBalance) DeepCopy() *ServiceLoadBalance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceLoadBalance.
func (*ServiceLoadBalance) DeepCopyInto ¶
func (in *ServiceLoadBalance) DeepCopyInto(out *ServiceLoadBalance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.