Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the base v1alpha1 API group +kubebuilder:object:generate=true +groupName=base.cd.klovercloud.com
Index ¶
- Variables
- type Agent
- type ApiService
- type Console
- type ConsoleList
- type ConsoleSpec
- type ConsoleStatus
- type CoreEngine
- type DB
- type EventBank
- type ExternalAgent
- type ExternalAgentList
- type ExternalAgentSpec
- type ExternalAgentStatus
- type IntegrationManager
- type KlovercloudCD
- type KlovercloudCDList
- type KlovercloudCDSpec
- type KlovercloudCDStatus
- type LightHouse
- type LightHouseCommand
- type LightHouseQuery
- type Security
- type Terminal
- type UIConsole
- type User
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "base.cd.klovercloud.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 Agent ¶
type Agent struct { // Size is the number of instance Size int32 `json:"size"` // PullSize defines how many jobs it will pull every period. It should depend on consumed resources PullSize string `json:"pull_size,omitempty"` // Token defines token to communicate with api service. Generate this by doing exec inside api service, then run kcpctl generate-jwt client={your agent name} Token string `json:"token,omitempty"` // LightHouseEnabled defines if Light House is enabled or not. By default, it is false. LightHouseEnabled string `json:"light_house_enabled,omitempty"` // TerminalBaseUrl defines base url of terminal. LightHouseEnabled should be true for this feature. TerminalBaseUrl string `json:"terminal_base_url,omitempty"` // TerminalApiVersion defines the api version of terminal. By default, it is api/v1 TerminalApiVersion string `json:"terminal_api_version,omitempty"` // EventStoreUrl defines the event bank url. For external agent, it should be api service base url with api version EventStoreUrl string `json:"event_store_url,omitempty"` // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
Agent defines the config of Agent service
func (*Agent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Agent.
func (*Agent) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApiService ¶
type ApiService struct { // Size is the number of instance Size int32 `json:"size"` // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
ApiService defines the config of api service
func (*ApiService) DeepCopy ¶
func (in *ApiService) DeepCopy() *ApiService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiService.
func (*ApiService) DeepCopyInto ¶
func (in *ApiService) DeepCopyInto(out *ApiService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Console ¶
type Console struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConsoleSpec `json:"spec,omitempty"` Status ConsoleStatus `json:"status,omitempty"` }
Console is the Schema for the consoles API
func (*Console) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Console.
func (*Console) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Console) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConsoleList ¶
type ConsoleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Console `json:"items"` }
ConsoleList contains a list of Console
func (*ConsoleList) DeepCopy ¶
func (in *ConsoleList) DeepCopy() *ConsoleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsoleList.
func (*ConsoleList) DeepCopyInto ¶
func (in *ConsoleList) DeepCopyInto(out *ConsoleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConsoleList) DeepCopyObject ¶
func (in *ConsoleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConsoleSpec ¶
type ConsoleSpec struct { // KlovercloudCD Version, default Latest. See available in enums.VERSIONS Version enums.VERSIONS `json:"version,omitempty"` // Console config of Console server Console UIConsole `json:"console"` // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
ConsoleSpec defines the desired state of Console
func (*ConsoleSpec) DeepCopy ¶
func (in *ConsoleSpec) DeepCopy() *ConsoleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsoleSpec.
func (*ConsoleSpec) DeepCopyInto ¶
func (in *ConsoleSpec) DeepCopyInto(out *ConsoleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConsoleStatus ¶
type ConsoleStatus struct { // ConsolePods are the names of the Console pods ConsolePods []string `json:"console_pods"` }
ConsoleStatus defines the observed state of Console
func (*ConsoleStatus) DeepCopy ¶
func (in *ConsoleStatus) DeepCopy() *ConsoleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsoleStatus.
func (*ConsoleStatus) DeepCopyInto ¶
func (in *ConsoleStatus) DeepCopyInto(out *ConsoleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CoreEngine ¶
type CoreEngine struct { // Size is the number of instance Size int32 `json:"size"` // NumberOfConcurrentProcess is the number of concurrent jobs for (build,jenkins,intermediary) NumberOfConcurrentProcess int `json:"number_of_concurrent_process"` // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
CoreEngine defines the config of CoreEngine service
func (*CoreEngine) DeepCopy ¶
func (in *CoreEngine) DeepCopy() *CoreEngine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoreEngine.
func (*CoreEngine) DeepCopyInto ¶
func (in *CoreEngine) DeepCopyInto(out *CoreEngine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DB ¶
type DB struct { // Type of database , dafault MONGO. See supported Databases in enums.DATABASE_OPTION Type enums.DATABASE_OPTION `json:"type,omitempty"` // UserName of database server UserName string `json:"user_name,omitempty"` // Password of database server Password string `json:"password,omitempty"` // ServerURL represents database server url ServerURL string `json:"server_url,omitempty"` // ServerPort represents database server port ServerPort string `json:"server_port,omitempty"` }
DB defines the database configurations
func (*DB) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DB.
func (*DB) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventBank ¶
type EventBank struct { // Size is the number of instance Size int32 `json:"size"` // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
EventBank defines the config of EventBank service
func (*EventBank) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBank.
func (*EventBank) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExternalAgent ¶
type ExternalAgent struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ExternalAgentSpec `json:"spec,omitempty"` Status ExternalAgentStatus `json:"status,omitempty"` }
ExternalAgent is the Schema for the externalagents API
func (*ExternalAgent) DeepCopy ¶
func (in *ExternalAgent) DeepCopy() *ExternalAgent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalAgent.
func (*ExternalAgent) DeepCopyInto ¶
func (in *ExternalAgent) DeepCopyInto(out *ExternalAgent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalAgent) DeepCopyObject ¶
func (in *ExternalAgent) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExternalAgentList ¶
type ExternalAgentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ExternalAgent `json:"items"` }
ExternalAgentList contains a list of ExternalAgent
func (*ExternalAgentList) DeepCopy ¶
func (in *ExternalAgentList) DeepCopy() *ExternalAgentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalAgentList.
func (*ExternalAgentList) DeepCopyInto ¶
func (in *ExternalAgentList) DeepCopyInto(out *ExternalAgentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalAgentList) DeepCopyObject ¶
func (in *ExternalAgentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExternalAgentSpec ¶
type ExternalAgentSpec struct { // KlovercloudCD Version, default Latest. See available in enums.VERSIONS Version enums.VERSIONS `json:"version,omitempty"` // Agent config of agent server Agent Agent `json:"agent,omitempty"` }
ExternalAgentSpec defines the desired state of ExternalAgent
func (*ExternalAgentSpec) DeepCopy ¶
func (in *ExternalAgentSpec) DeepCopy() *ExternalAgentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalAgentSpec.
func (*ExternalAgentSpec) DeepCopyInto ¶
func (in *ExternalAgentSpec) DeepCopyInto(out *ExternalAgentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExternalAgentStatus ¶
type ExternalAgentStatus struct { // AgentPods are the names of the Agent pods AgentPods []string `json:"agent_pods"` }
ExternalAgentStatus defines the observed state of ExternalAgent
func (*ExternalAgentStatus) DeepCopy ¶
func (in *ExternalAgentStatus) DeepCopy() *ExternalAgentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalAgentStatus.
func (*ExternalAgentStatus) DeepCopyInto ¶
func (in *ExternalAgentStatus) DeepCopyInto(out *ExternalAgentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IntegrationManager ¶
type IntegrationManager struct { // Size is the number of instance Size int32 `json:"size"` // PerDayTotalProcess defines allowed per day total process PerDayTotalProcess string `json:"per_day_total_process"` //default 30 // ConcurrentProcess defines concurrent total process ConcurrentProcess string `json:"concurrent_process"` //default 10 // GithubWebhookConsumingUrl defines GitHub webhook consuming url GithubWebhookConsumingUrl string `json:"github_webhook_consuming_url"` // BitbucketWebhookConsumingUrl defines Bitbucket webhook consuming url BitbucketWebhookConsumingUrl string `json:"bitbucket_webhook_consuming_url"` // PipelinePurging defines if all objects will be purged after process finished PipelinePurging string `json:"pipeline_purging"` // default ENABLE // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
IntegrationManager defines the config of IntegrationManager service
func (*IntegrationManager) DeepCopy ¶
func (in *IntegrationManager) DeepCopy() *IntegrationManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntegrationManager.
func (*IntegrationManager) DeepCopyInto ¶
func (in *IntegrationManager) DeepCopyInto(out *IntegrationManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KlovercloudCD ¶
type KlovercloudCD struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KlovercloudCDSpec `json:"spec,omitempty"` Status KlovercloudCDStatus `json:"status,omitempty"` }
KlovercloudCD is the Schema for the klovercloudcds API
func (*KlovercloudCD) DeepCopy ¶
func (in *KlovercloudCD) DeepCopy() *KlovercloudCD
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlovercloudCD.
func (*KlovercloudCD) DeepCopyInto ¶
func (in *KlovercloudCD) DeepCopyInto(out *KlovercloudCD)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KlovercloudCD) DeepCopyObject ¶
func (in *KlovercloudCD) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KlovercloudCDList ¶
type KlovercloudCDList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KlovercloudCD `json:"items"` }
KlovercloudCDList contains a list of KlovercloudCD
func (*KlovercloudCDList) DeepCopy ¶
func (in *KlovercloudCDList) DeepCopy() *KlovercloudCDList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlovercloudCDList.
func (*KlovercloudCDList) DeepCopyInto ¶
func (in *KlovercloudCDList) DeepCopyInto(out *KlovercloudCDList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KlovercloudCDList) DeepCopyObject ¶
func (in *KlovercloudCDList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KlovercloudCDSpec ¶
type KlovercloudCDSpec struct { // KlovercloudCD Version, default Latest. See available in enums.VERSIONS Version enums.VERSIONS `json:"version,omitempty"` // DB config to be used Database DB `json:"db"` // Security service config Security Security `json:"security"` // LightHouse config of lighthouse server LightHouse LightHouse `json:"light_house,omitempty"` // ApiService config of api server ApiService ApiService `json:"api_service,omitempty"` // Agent config of agent server Agent Agent `json:"agent,omitempty"` // IntegrationManager config of IntegrationManager server IntegrationManager IntegrationManager `json:"integration_manager,omitempty"` // EventBank config of EventBank server EventBank EventBank `json:"event_bank"` // CoreEngine config of CoreEngine server CoreEngine CoreEngine `json:"core_engine"` // Terminal config of Terminal server Terminal Terminal `json:"terminal"` }
KlovercloudCDSpec defines the desired state of KlovercloudCD
func (*KlovercloudCDSpec) DeepCopy ¶
func (in *KlovercloudCDSpec) DeepCopy() *KlovercloudCDSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlovercloudCDSpec.
func (*KlovercloudCDSpec) DeepCopyInto ¶
func (in *KlovercloudCDSpec) DeepCopyInto(out *KlovercloudCDSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KlovercloudCDStatus ¶
type KlovercloudCDStatus struct { // SecurityPods are the names of the Security pods SecurityPods []string `json:"security_pods"` // LightHouseQueryPods are the names of the LightHouseQuery pods LightHouseQueryPods []string `json:"light_house_query_pods"` // LightHouseCommandPods are the names of the LightHouseCommand pods LightHouseCommandPods []string `json:"light_house_command_pods"` // ApiServicePods are the names of the ApiService pods ApiServicePods []string `json:"api_service_pods"` // AgentPods are the names of the Agent pods AgentPods []string `json:"agent_pods"` // IntegrationManagerPods are the names of the IntegrationManager pods IntegrationManagerPods []string `json:"integration_manager_pods"` // EventBankPods are the names of the EventBank pods EventBankPods []string `json:"event_bank_pods"` // CoreEnginePods are the names of the CoreEngine pods CoreEnginePods []string `json:"core_engine_pods"` // TerminalPods are the names of the Terminal pods TerminalPods []string `json:"terminal_pods"` }
KlovercloudCDStatus defines the observed state of KlovercloudCD
func (*KlovercloudCDStatus) DeepCopy ¶
func (in *KlovercloudCDStatus) DeepCopy() *KlovercloudCDStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlovercloudCDStatus.
func (*KlovercloudCDStatus) DeepCopyInto ¶
func (in *KlovercloudCDStatus) DeepCopyInto(out *KlovercloudCDStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LightHouse ¶
type LightHouse struct { // Enabled can be true or false. Enabled string `json:"enabled,omitempty"` // LightHouseCommand config of LightHouseCommand server Command LightHouseCommand `json:"command"` // LightHouseQuery config of LightHouseQuery server Query LightHouseQuery `json:"query"` }
LightHouse defines the config of lighthouse service
func (*LightHouse) DeepCopy ¶
func (in *LightHouse) DeepCopy() *LightHouse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LightHouse.
func (*LightHouse) DeepCopyInto ¶
func (in *LightHouse) DeepCopyInto(out *LightHouse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LightHouseCommand ¶
type LightHouseCommand struct { // Size is the number of instance Size int32 `json:"size"` // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
LightHouse defines the config of lighthouse service
func (*LightHouseCommand) DeepCopy ¶
func (in *LightHouseCommand) DeepCopy() *LightHouseCommand
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LightHouseCommand.
func (*LightHouseCommand) DeepCopyInto ¶
func (in *LightHouseCommand) DeepCopyInto(out *LightHouseCommand)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LightHouseQuery ¶
type LightHouseQuery struct { // Size is the number of instance Size int32 `json:"size"` // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
LightHouseQuery defines the config of LightHouseQuery service
func (*LightHouseQuery) DeepCopy ¶
func (in *LightHouseQuery) DeepCopy() *LightHouseQuery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LightHouseQuery.
func (*LightHouseQuery) DeepCopyInto ¶
func (in *LightHouseQuery) DeepCopyInto(out *LightHouseQuery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Security ¶
type Security struct { // User config of security server User User `json:"user"` // MailServerHostEmail mail servers host email MailServerHostEmail string `json:"mail_server_host_email,omitempty"` // MailServerHostEmailSecret mail servers host emails secret MailServerHostEmailSecret string `json:"mail_server_host_email_secret,omitempty"` // SMTPHost mail server smtp host SMTPHost string `json:"smtp_host,omitempty"` // SMTPPort mail server smtp port SMTPPort string `json:"smtp_port,omitempty"` // Size is the number of instance Size int32 `json:"size"` // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
Security defines security service configuration
func (*Security) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Security.
func (*Security) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Terminal ¶
type Terminal struct { // Enabled can be true or false. Enabled string `json:"enabled"` // Size is the number of instance Size int32 `json:"size"` // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
Terminal defines the config of Terminal service
func (*Terminal) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Terminal.
func (*Terminal) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UIConsole ¶
type UIConsole struct { // Size is the number of instance Size int32 `json:"size"` // AuthEndPoint is url of security service external url . AuthEndpoint string `json:"auth_endpoint"` // ApiEndpoint is url of api service external url . ApiEndpoint string `json:"api_endpoint"` // ApiEndpointWS is websocket url of api service external url . ApiEndpointWS string `json:"api_endpoint_ws"` // Resources defines cpu, memory requests and limits Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` }
UIConsole defines the config of Console service
func (*UIConsole) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UIConsole.
func (*UIConsole) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type User ¶
type User struct { // FirstName firstname of default user FirstName string `json:"first_name"` // LastName lastname of default user LastName string `json:"last_name"` // Email email of default user Email string `json:"email"` // Password password of default user Password string `json:"password"` // Phone phone number of default user Phone string `json:"phone"` // CompanyName company name of default user CompanyName string `json:"company_name"` }
User defines the defualt user of security service
func (*User) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User.
func (*User) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.