49d514c050
Forgebot is a K8s operator + API service for dispatching AI agent jobs from git forge commands. Includes: - CRDs: AgentPool, AgentTask, ProviderQueue, RepositoryBinding - API server with webhook handler, task queue, and comment proxy - Operator controllers for task scheduling and job management - Gitea provider with webhook parsing and signature verification - PostgreSQL database with auto-migration - Woodpecker CI pipelines and multi-stage Dockerfiles
437 lines
12 KiB
Go
437 lines
12 KiB
Go
//go:build !ignore_autogenerated
|
|
|
|
// Code generated by controller-gen. DO NOT EDIT.
|
|
|
|
package v1alpha1
|
|
|
|
import (
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
)
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AgentPool) DeepCopyInto(out *AgentPool) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
in.Spec.DeepCopyInto(&out.Spec)
|
|
out.Status = in.Status
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentPool.
|
|
func (in *AgentPool) DeepCopy() *AgentPool {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AgentPool)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *AgentPool) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AgentPoolList) DeepCopyInto(out *AgentPoolList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]AgentPool, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentPoolList.
|
|
func (in *AgentPoolList) DeepCopy() *AgentPoolList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AgentPoolList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *AgentPoolList) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AgentPoolSpec) DeepCopyInto(out *AgentPoolSpec) {
|
|
*out = *in
|
|
in.Resources.DeepCopyInto(&out.Resources)
|
|
out.CredentialSecretRef = in.CredentialSecretRef
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentPoolSpec.
|
|
func (in *AgentPoolSpec) DeepCopy() *AgentPoolSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AgentPoolSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AgentPoolStatus) DeepCopyInto(out *AgentPoolStatus) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentPoolStatus.
|
|
func (in *AgentPoolStatus) DeepCopy() *AgentPoolStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AgentPoolStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AgentTask) DeepCopyInto(out *AgentTask) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
in.Spec.DeepCopyInto(&out.Spec)
|
|
in.Status.DeepCopyInto(&out.Status)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentTask.
|
|
func (in *AgentTask) DeepCopy() *AgentTask {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AgentTask)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *AgentTask) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AgentTaskList) DeepCopyInto(out *AgentTaskList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]AgentTask, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentTaskList.
|
|
func (in *AgentTaskList) DeepCopy() *AgentTaskList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AgentTaskList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *AgentTaskList) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AgentTaskSpec) DeepCopyInto(out *AgentTaskSpec) {
|
|
*out = *in
|
|
out.Context = in.Context
|
|
if in.ExtraTools != nil {
|
|
in, out := &in.ExtraTools, &out.ExtraTools
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentTaskSpec.
|
|
func (in *AgentTaskSpec) DeepCopy() *AgentTaskSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AgentTaskSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *AgentTaskStatus) DeepCopyInto(out *AgentTaskStatus) {
|
|
*out = *in
|
|
if in.StartTime != nil {
|
|
in, out := &in.StartTime, &out.StartTime
|
|
*out = (*in).DeepCopy()
|
|
}
|
|
if in.EndTime != nil {
|
|
in, out := &in.EndTime, &out.EndTime
|
|
*out = (*in).DeepCopy()
|
|
}
|
|
if in.ChildTasks != nil {
|
|
in, out := &in.ChildTasks, &out.ChildTasks
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentTaskStatus.
|
|
func (in *AgentTaskStatus) DeepCopy() *AgentTaskStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(AgentTaskStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ProviderQueue) DeepCopyInto(out *ProviderQueue) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
out.Spec = in.Spec
|
|
in.Status.DeepCopyInto(&out.Status)
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderQueue.
|
|
func (in *ProviderQueue) DeepCopy() *ProviderQueue {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ProviderQueue)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *ProviderQueue) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ProviderQueueList) DeepCopyInto(out *ProviderQueueList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]ProviderQueue, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderQueueList.
|
|
func (in *ProviderQueueList) DeepCopy() *ProviderQueueList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ProviderQueueList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *ProviderQueueList) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ProviderQueueSpec) DeepCopyInto(out *ProviderQueueSpec) {
|
|
*out = *in
|
|
out.CredentialSecretRef = in.CredentialSecretRef
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderQueueSpec.
|
|
func (in *ProviderQueueSpec) DeepCopy() *ProviderQueueSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ProviderQueueSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *ProviderQueueStatus) DeepCopyInto(out *ProviderQueueStatus) {
|
|
*out = *in
|
|
if in.LastPoll != nil {
|
|
in, out := &in.LastPoll, &out.LastPoll
|
|
*out = (*in).DeepCopy()
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderQueueStatus.
|
|
func (in *ProviderQueueStatus) DeepCopy() *ProviderQueueStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(ProviderQueueStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RepositoryBinding) DeepCopyInto(out *RepositoryBinding) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
in.Spec.DeepCopyInto(&out.Spec)
|
|
out.Status = in.Status
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBinding.
|
|
func (in *RepositoryBinding) DeepCopy() *RepositoryBinding {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RepositoryBinding)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *RepositoryBinding) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RepositoryBindingList) DeepCopyInto(out *RepositoryBindingList) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
if in.Items != nil {
|
|
in, out := &in.Items, &out.Items
|
|
*out = make([]RepositoryBinding, len(*in))
|
|
for i := range *in {
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
}
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBindingList.
|
|
func (in *RepositoryBindingList) DeepCopy() *RepositoryBindingList {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RepositoryBindingList)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *RepositoryBindingList) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RepositoryBindingSpec) DeepCopyInto(out *RepositoryBindingSpec) {
|
|
*out = *in
|
|
if in.AllowedUsers != nil {
|
|
in, out := &in.AllowedUsers, &out.AllowedUsers
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.AllowedCommands != nil {
|
|
in, out := &in.AllowedCommands, &out.AllowedCommands
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
if in.SkillMapping != nil {
|
|
in, out := &in.SkillMapping, &out.SkillMapping
|
|
*out = make([]SkillMapping, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBindingSpec.
|
|
func (in *RepositoryBindingSpec) DeepCopy() *RepositoryBindingSpec {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RepositoryBindingSpec)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *RepositoryBindingStatus) DeepCopyInto(out *RepositoryBindingStatus) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBindingStatus.
|
|
func (in *RepositoryBindingStatus) DeepCopy() *RepositoryBindingStatus {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(RepositoryBindingStatus)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *SkillMapping) DeepCopyInto(out *SkillMapping) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SkillMapping.
|
|
func (in *SkillMapping) DeepCopy() *SkillMapping {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(SkillMapping)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *TaskContext) DeepCopyInto(out *TaskContext) {
|
|
*out = *in
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskContext.
|
|
func (in *TaskContext) DeepCopy() *TaskContext {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(TaskContext)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|