v1

package
v0.0.0-...-6b6aee0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 功能描述: 生成 Lister Date: 2022/5/20 author: lixiaoming +k8s:deepcopy-gen=package +groupName=app.customer.domain

Package v1 contains API Schema definitions for the app v1 API group +kubebuilder:object:generate=true +groupName=app.customer.domain

Package v1 功能描述: Date: 2022/5/20 author: lixiaoming

Index

Constants

This section is empty.

Variables

View Source
var (
	APPNameLabel        = "app.customer.com/appName"
	APPDisplayNameLabel = "app.customer.com/appDisplayName"
	ModuleNameLabel     = "app.customer.com/moduleName"
	DeploymentType      = "app.customer.com/deploymentType"
)
View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "app.customer.domain", Version: "v1"}
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupVersion.Group, Version: GroupVersion.Version}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Application

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

	Spec   ApplicationSpec   `json:"spec,omitempty"`
	Status ApplicationStatus `json:"status,omitempty"`
}

Application is the Schema for the applications API +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:shortName=app +kubebuilder:printcolumn:name="DISPLAYNAME",JSONPath=".spec.displayName",type="string" +kubebuilder:printcolumn:name="STATUS",JSONPath=".status.status",type="string" +kubebuilder:printcolumn:name="TOTAL",JSONPath=".status.totalModuleNumber",type="string" +kubebuilder:printcolumn:name="RUNNING",JSONPath=".status.runningModuleNumber",type="string" +kubebuilder:printcolumn:name="ROLLINGUPDATE",JSONPath=".status.rollingUpdateNumber",type="string"

func (*Application) DeepCopy

func (in *Application) DeepCopy() *Application

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

func (*Application) DeepCopyInto

func (in *Application) DeepCopyInto(out *Application)

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

func (*Application) DeepCopyObject

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

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

type ApplicationList

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

ApplicationList contains a list of Application +kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ApplicationList) DeepCopy

func (in *ApplicationList) DeepCopy() *ApplicationList

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

func (*ApplicationList) DeepCopyInto

func (in *ApplicationList) DeepCopyInto(out *ApplicationList)

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

func (*ApplicationList) DeepCopyObject

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

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

type ApplicationSpec

type ApplicationSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	//+kubebuilder:validation:Pattern="(.){2,60}$"
	DisplayName string   `json:"displayName,omitempty"`
	Description string   `json:"description"`
	UserID      int      `json:"userID"`
	Modules     []Module `json:"modules,omitempty"`
}

ApplicationSpec defines the desired state of Application

func (*ApplicationSpec) DeepCopy

func (in *ApplicationSpec) DeepCopy() *ApplicationSpec

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

func (*ApplicationSpec) DeepCopyInto

func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)

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

type ApplicationStatus

type ApplicationStatus struct {
	TotalModuleNumber    int32  `json:"totalModuleNumber,omitempty"`
	RunningModuleNumber  int32  `json:"runningModuleNumber,omitempty"`
	StartingModuleNumber int32  `json:"startingModuleNumber,omitempty"`
	StoppedModuleNumber  int32  `json:"stoppedModuleNumber,omitempty"`
	RollingUpdateNumber  int32  `json:"rollingUpdateNumber,omitempty"`
	Status               string `json:"status,omitempty"` // 应用状态 {Running| Stopped}
}

ApplicationStatus defines the observed state of Application

func (*ApplicationStatus) DeepCopy

func (in *ApplicationStatus) DeepCopy() *ApplicationStatus

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

func (*ApplicationStatus) DeepCopyInto

func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)

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

type Module

type Module struct {
	Name           string            `json:"name"`
	AccessMode     string            `json:"accessMode,omitempty"`
	Proxies        []Proxy           `json:"proxies,omitempty"`
	ServiceConfigs []ServiceConfig   `json:"serviceConfigs,omitempty"`
	AppPkgID       string            `json:"appPkgID,omitempty"`
	Template       v1.DeploymentSpec `json:"template"`
}

Module 应用中的服务信息

func (*Module) DeepCopy

func (in *Module) DeepCopy() *Module

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

func (*Module) DeepCopyInto

func (in *Module) DeepCopyInto(out *Module)

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

type Proxy

type Proxy struct {
	Protocol   string `json:"protocol"`
	Port       int32  `json:"port"`
	TargetPort int32  `json:"targetPort"`
}

Proxy 服务出口代理设置,指定协议和内外部端口,自动调谐ingress tcp/udp configmap

func (*Proxy) DeepCopy

func (in *Proxy) DeepCopy() *Proxy

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

func (*Proxy) DeepCopyInto

func (in *Proxy) DeepCopyInto(out *Proxy)

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

type ServiceConfig

type ServiceConfig struct {
	ConfigGroup string `json:"configGroup,omitempty"`
	ConfigItem  string `json:"configItem,omitempty"`
	MountPath   string `json:"mountPath,omitempty"`
}

ServiceConfig 服务引用ConfigMap配置信息

func (*ServiceConfig) DeepCopy

func (in *ServiceConfig) DeepCopy() *ServiceConfig

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

func (*ServiceConfig) DeepCopyInto

func (in *ServiceConfig) DeepCopyInto(out *ServiceConfig)

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