v1alpha1

package
v0.32.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1alpha1 holds the Room API (SP2 §1). +kubebuilder:object:generate=true +groupName=maku.ogenki.io

Index

Constants

View Source
const AnnotationMigratedFrom = "maku.ogenki.io/migrated-from"

AnnotationMigratedFrom is the UID of the object a migrate-group copy was made from. A re-run finishes a copy that carries its original's UID and refuses a same-named object that does not.

View Source
const AnnotationMigrating = "maku.ogenki.io/migrating"

AnnotationMigrating marks a Room or Task that maku-broker migrate-group has copied but whose status it has not written yet. The Room controller and the factory leave such an object alone until the annotation is gone: with no status it would read as new (the maku rebrand's group move).

Variables

View Source
var (
	GroupVersion  = schema.GroupVersion{Group: "maku.ogenki.io", Version: "v1alpha1"}
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

SchemeBuilder uses the apimachinery builder directly: controller-runtime's pkg/scheme.Builder is deprecated for api packages (SA1019, lint budget).

Functions

This section is empty.

Types

type AgentRun

type AgentRun struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AgentRunSpec   `json:"spec"`
	Status            AgentRunStatus `json:"status,omitempty"`
}

AgentRun is one agent run, for the run-controller (adoption 3a). Its spec is SP1's XRD's (crossplane-configuration apis/agentrun/definition.yaml), so a run manifest suits both runtimes. The name prefix is the controller's config, so only the id shape is checked here. +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope=Namespaced +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Role",type=string,JSONPath=`.spec.role` +kubebuilder:printcolumn:name="Room",type=string,JSONPath=`.spec.roomRef` +kubebuilder:printcolumn:name="Reason",type=string,JSONPath=`.status.reason` +kubebuilder:validation:XValidation:rule="self.metadata.name.matches('^[a-z0-9][a-z0-9-]*-[a-z2-7]{8}$')",message="an AgentRun is named <prefix><runId>, runId being 8 characters of [a-z2-7]"

func (*AgentRun) DeepCopy

func (in *AgentRun) DeepCopy() *AgentRun

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

func (*AgentRun) DeepCopyInto

func (in *AgentRun) DeepCopyInto(out *AgentRun)

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

func (*AgentRun) DeepCopyObject

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

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

type AgentRunBudget

type AgentRunBudget struct {
	// +kubebuilder:default=2000000
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=5000000
	// +optional
	MaxTokens int64 `json:"maxTokens,omitempty"`
	// +kubebuilder:default=120
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=480
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="budget.maxMinutes is immutable"
	// +optional
	MaxMinutes int64 `json:"maxMinutes,omitempty"`
}

AgentRunBudget bounds the run. Without a gateway, only maxMinutes is enforced.

func (*AgentRunBudget) DeepCopy

func (in *AgentRunBudget) DeepCopy() *AgentRunBudget

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

func (*AgentRunBudget) DeepCopyInto

func (in *AgentRunBudget) DeepCopyInto(out *AgentRunBudget)

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

type AgentRunEgress

type AgentRunEgress struct {
	// +kubebuilder:default={}
	// +kubebuilder:validation:MaxItems=4
	// +listType=set
	// +optional
	Profiles []AgentRunEgressProfile `json:"profiles,omitempty"`
}

AgentRunEgress adds package registries to the always-on github profile.

func (*AgentRunEgress) DeepCopy

func (in *AgentRunEgress) DeepCopy() *AgentRunEgress

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

func (*AgentRunEgress) DeepCopyInto

func (in *AgentRunEgress) DeepCopyInto(out *AgentRunEgress)

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

type AgentRunEgressProfile

type AgentRunEgressProfile string

AgentRunEgressProfile is one registry profile; github is not one, it is always on. +kubebuilder:validation:Enum=pypi;npm;golang;crates

type AgentRunList

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

AgentRunList is a list of AgentRuns. +kubebuilder:object:root=true

func (*AgentRunList) DeepCopy

func (in *AgentRunList) DeepCopy() *AgentRunList

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

func (*AgentRunList) DeepCopyInto

func (in *AgentRunList) DeepCopyInto(out *AgentRunList)

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

func (*AgentRunList) DeepCopyObject

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

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

type AgentRunLoop

type AgentRunLoop struct {
	// Checks runs the repository's checks in the sandbox (v3 feature 3): the harness gets
	// AGENT_CHECKS=1 and the pod's deadline as AGENT_RUN_SECONDS. A public run only.
	// +optional
	Checks bool `json:"checks,omitempty"`
	// Search offers the search tool (v3 feature 5) to an implementer only: the harness and the room
	// bridge both get AGENT_SEARCH=1, the bridge so it classes the harness's own search as plain.
	// +optional
	Search bool `json:"search,omitempty"`
}

AgentRunLoop is the run's loop policy, fixed at creation (v3: the loop policy's claim object).

func (*AgentRunLoop) DeepCopy

func (in *AgentRunLoop) DeepCopy() *AgentRunLoop

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

func (*AgentRunLoop) DeepCopyInto

func (in *AgentRunLoop) DeepCopyInto(out *AgentRunLoop)

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

type AgentRunSpec

type AgentRunSpec struct {
	// +kubebuilder:validation:Enum=implementer;reviewer;tester;triager
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="role is immutable"
	Role string `json:"role"`
	// +kubebuilder:validation:MaxLength=140
	// +kubebuilder:validation:Pattern=`^[A-Za-z0-9-]+/[A-Za-z0-9._-]+$`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="repository is immutable"
	Repository string `json:"repository"`
	// +kubebuilder:default=main
	// +kubebuilder:validation:MaxLength=255
	// +kubebuilder:validation:Pattern=`^[A-Za-z0-9]+(?:(?:[_/-]+(?:\.[_/-]*)?|\.[_/-]*)[A-Za-z0-9]+)*$`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="baseRef is immutable"
	// +optional
	BaseRef string `json:"baseRef,omitempty"`
	// +kubebuilder:validation:Pattern=`^agent/[a-z0-9][a-z0-9._/-]{0,100}$`
	// +optional
	Branch string       `json:"branch,omitempty"`
	Task   AgentRunTask `json:"task"`
	// +kubebuilder:validation:MaxLength=128
	// +kubebuilder:validation:Pattern=`^(human:[A-Za-z0-9@._-]+|system:[a-z0-9-]+)$`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="principal is immutable"
	Principal string `json:"principal"`
	// A gateway alias on cloud-native-ref: a C5 tier name, or a provider alias (v3 F15), which the
	// gateway serves public runs only; the run-controller ignores it (3a R7).
	// +kubebuilder:validation:Enum=agent-default;tier-light;tier-standard;tier-frontier;kimi-frontier;mistral-standard;mistral-light
	// +kubebuilder:default=agent-default
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="model is immutable"
	// +optional
	Model string `json:"model,omitempty"`
	// +kubebuilder:validation:Enum=public;internal
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="dataClass is immutable"
	DataClass string `json:"dataClass"`
	// +kubebuilder:default={}
	// +optional
	Budget AgentRunBudget `json:"budget,omitzero"`
	// +kubebuilder:validation:Enum=openhands
	// +kubebuilder:default=openhands
	// +optional
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="harness is immutable"
	Harness string `json:"harness,omitempty"`
	// +kubebuilder:validation:Enum=small;medium;large
	// +kubebuilder:default=small
	// +optional
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="size is immutable"
	Size string `json:"size,omitempty"`
	// +kubebuilder:default={}
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="egress is immutable"
	// +optional
	Egress AgentRunEgress `json:"egress,omitzero"`
	// +kubebuilder:validation:Pattern=`^[a-z2-7]{8}$`
	// +optional
	RoomRef string `json:"roomRef,omitempty"`
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
	// +optional
	QueueName string `json:"queueName,omitempty"`
	// +optional
	Suspendable bool `json:"suspendable,omitempty"`
	// +optional
	Loop AgentRunLoop `json:"loop,omitzero"`
}

AgentRunSpec is what the run does, on which repository, for whom. +kubebuilder:validation:XValidation:rule="self.role != 'reviewer' || (has(self.task.url) && self.task.url.matches('^https://github\\\\.com/[^/]+/[^/]+/pull/[0-9]+$'))",message="a reviewer run needs a pull request URL as its task" +kubebuilder:validation:XValidation:rule="self.role == 'reviewer' || !has(self.task.text) || !has(self.task.url)",message="only a reviewer run carries both task.text and task.url" +kubebuilder:validation:XValidation:rule="!has(self.task.url) || self.task.url.startsWith('https://github.com/' + self.repository + '/')",message="task.url must point into spec.repository" +kubebuilder:validation:XValidation:rule="self.dataClass != 'internal' || !has(self.egress) || !has(self.egress.profiles) || size(self.egress.profiles) == 0",message="an internal run takes no egress profiles" +kubebuilder:validation:XValidation:rule="has(self.branch) == has(oldSelf.branch) && (!has(self.branch) || self.branch == oldSelf.branch)",message="branch is immutable and cannot be added or removed after creation" +kubebuilder:validation:XValidation:rule="has(self.roomRef) == has(oldSelf.roomRef) && (!has(self.roomRef) || self.roomRef == oldSelf.roomRef)",message="roomRef is immutable and cannot be added or removed after creation" +kubebuilder:validation:XValidation:rule="has(self.queueName) == has(oldSelf.queueName) && (!has(self.queueName) || self.queueName == oldSelf.queueName)",message="queueName is immutable and cannot be added or removed after creation" +kubebuilder:validation:XValidation:rule="has(self.suspendable) == has(oldSelf.suspendable) && (!has(self.suspendable) || self.suspendable == oldSelf.suspendable)",message="suspendable is immutable and cannot be added or removed after creation" +kubebuilder:validation:XValidation:rule="self.dataClass != 'internal' || !has(self.loop) || !has(self.loop.checks) || !self.loop.checks",message="an internal run runs no repository checks" +kubebuilder:validation:XValidation:rule="has(self.loop) == has(oldSelf.loop) && (!has(self.loop) || (has(self.loop.checks) == has(oldSelf.loop.checks) && (!has(self.loop.checks) || self.loop.checks == oldSelf.loop.checks) && has(self.loop.search) == has(oldSelf.loop.search) && (!has(self.loop.search) || self.loop.search == oldSelf.loop.search)))",message="loop is immutable and cannot be added or removed after creation" +kubebuilder:validation:XValidation:rule="self.dataClass == 'public' || !has(self.model) || !(self.model in ['kimi-frontier', 'mistral-standard', 'mistral-light'])",message="an internal run never names a provider alias"

func (*AgentRunSpec) DeepCopy

func (in *AgentRunSpec) DeepCopy() *AgentRunSpec

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

func (*AgentRunSpec) DeepCopyInto

func (in *AgentRunSpec) DeepCopyInto(out *AgentRunSpec)

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

type AgentRunStatus

type AgentRunStatus struct {
	// +kubebuilder:validation:Enum=Pending;Running;Suspended;Succeeded;Failed;BudgetExhausted;Revoked
	// +optional
	Phase          string `json:"phase,omitempty"`
	RunID          string `json:"runId,omitempty"`
	Branch         string `json:"branch,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	StartedAt      string `json:"startedAt,omitempty"`
	FinishedAt     string `json:"finishedAt,omitempty"`
	Reason         string `json:"reason,omitempty"`
	PullRequest    string `json:"pullRequest,omitempty"`
	// +listType=map
	// +listMapKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

AgentRunStatus is what runwatch and the factory read (C3), as the composition writes it.

func (*AgentRunStatus) DeepCopy

func (in *AgentRunStatus) DeepCopy() *AgentRunStatus

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

func (*AgentRunStatus) DeepCopyInto

func (in *AgentRunStatus) DeepCopyInto(out *AgentRunStatus)

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

type AgentRunTask

type AgentRunTask struct {
	// +kubebuilder:validation:MaxLength=16384
	// +optional
	Text string `json:"text,omitempty"`
	// +kubebuilder:validation:MaxLength=256
	// +kubebuilder:validation:Pattern=`^https://github\.com/[A-Za-z0-9-]+/[A-Za-z0-9._-]+/(issues|pull)/[0-9]+$`
	// +optional
	URL string `json:"url,omitempty"`
}

AgentRunTask is text or url. A reviewer's carries both, the factory's brief beside the pull request (harness roles HR4); every other role's exactly one, which AgentRunSpec's rule holds. +kubebuilder:validation:XValidation:rule="has(self.text) || has(self.url)",message="set task.text, task.url, or both for a reviewer" +kubebuilder:validation:XValidation:rule="self == oldSelf",message="task is immutable"

func (*AgentRunTask) DeepCopy

func (in *AgentRunTask) DeepCopy() *AgentRunTask

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

func (*AgentRunTask) DeepCopyInto

func (in *AgentRunTask) DeepCopyInto(out *AgentRunTask)

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

type Approvals

type Approvals struct {
	// +kubebuilder:default=attended
	// +kubebuilder:validation:Enum=attended;unattended
	// +optional
	Profile string `json:"profile,omitempty"`
	// Per-class override of the profile table (§6).
	// +kubebuilder:validation:XValidation:rule="self.all(k, k in ['forge.push','forge.pr','forge.other','mcp.write','shell.high'])",message="unknown approval class"
	// +kubebuilder:validation:XValidation:rule="self.all(k, self[k] in ['allow','deny','human'])",message="an override is allow, deny or human"
	// +optional
	Overrides map[string]string `json:"overrides,omitempty"`
	// +kubebuilder:default="4h"
	// At most 9999h, bounded like retention so it always fits a time.Duration.
	// +kubebuilder:validation:Pattern=`^[1-9][0-9]{0,3}(m|h)$`
	// +optional
	TTL string `json:"ttl,omitempty"`
	// OD-16: approver must differ from the humans who prompted the turn.
	// +optional
	FourEyes bool `json:"fourEyes,omitempty"`
}

Approvals is the room's approval policy (§6).

func (*Approvals) DeepCopy

func (in *Approvals) DeepCopy() *Approvals

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

func (*Approvals) DeepCopyInto

func (in *Approvals) DeepCopyInto(out *Approvals)

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

type Member

type Member struct {
	// +kubebuilder:validation:Pattern=`^(human|system):[A-Za-z0-9@._-]+$`
	// +kubebuilder:validation:MaxLength=261
	Principal string `json:"principal"`
	// Cumulative: watcher < collaborator < owner (§1).
	// +kubebuilder:validation:Enum=watcher;collaborator;owner
	Role string `json:"role"`
	// +optional
	Approver bool `json:"approver,omitempty"`
}

Member is a principal admitted to the room, with a role and the approver flag: a human, or a sponsored principal the factory makes a watcher of its task's room (factory interfaces F4). +kubebuilder:validation:XValidation:rule="!self.principal.startsWith('system:') || (self.role == 'watcher' && !(has(self.approver) && self.approver))",message="a system member only watches: never an owner, a collaborator or an approver"

func (*Member) DeepCopy

func (in *Member) DeepCopy() *Member

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

func (*Member) DeepCopyInto

func (in *Member) DeepCopyInto(out *Member)

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

type Room

type Room struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              RoomSpec   `json:"spec"`
	Status            RoomStatus `json:"status,omitempty"`
}

Room is one append-only session log (SP2 §1). Rooms are runtime objects, created by SP3's factory or the broker, never committed to Git. +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope=Namespaced +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.status.driver` +kubebuilder:printcolumn:name="Seq",type=integer,JSONPath=`.status.lastSeq` +kubebuilder:printcolumn:name="Pending",type=integer,JSONPath=`.status.pendingApprovals` +kubebuilder:printcolumn:name="Class",type=string,JSONPath=`.spec.dataClass` +kubebuilder:validation:XValidation:rule="self.metadata.name.matches('^[a-z2-7]{8}$')",message="a Room is named with a C2 id: 8 characters of [a-z2-7]"

func (*Room) DeepCopy

func (in *Room) DeepCopy() *Room

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

func (*Room) DeepCopyInto

func (in *Room) DeepCopyInto(out *Room)

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

func (*Room) DeepCopyObject

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

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

type RoomList

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

RoomList is a list of Rooms. +kubebuilder:object:root=true

func (*RoomList) DeepCopy

func (in *RoomList) DeepCopy() *RoomList

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

func (*RoomList) DeepCopyInto

func (in *RoomList) DeepCopyInto(out *RoomList)

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

func (*RoomList) DeepCopyObject

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

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

type RoomSpec

type RoomSpec struct {
	// A principal, "human:<sub>" or "system:<name>". OIDC Core §2 caps a sub at 255
	// characters, hence 261 with the "human:" prefix, here and for every principal.
	// +kubebuilder:validation:Pattern=`^(human:[A-Za-z0-9@._-]+|system:[a-z0-9-]+)$`
	// +kubebuilder:validation:MaxLength=261
	Owner string `json:"owner"`
	// The initial driver-token holder; afterwards the log decides.
	// +kubebuilder:validation:Pattern=`^(human:[A-Za-z0-9@._-]+|system:[a-z0-9-]+)$`
	// +kubebuilder:validation:MaxLength=261
	Driver string `json:"driver"`
	// Runs join through their own spec.roomRef, never through this list.
	// +kubebuilder:validation:MaxItems=20
	// +listType=map
	// +listMapKey=principal
	// +optional
	Members []Member `json:"members,omitempty"`
	// {} so that the profile and ttl defaults apply even when approvals is omitted (review M2).
	// +kubebuilder:default={}
	// +optional
	Approvals Approvals `json:"approvals,omitempty"`
	// Fixed at creation: the log's row keeps the retention it was created with.
	// +kubebuilder:default="90d"
	// +kubebuilder:validation:Pattern=`^[1-9][0-9]{0,3}d$`
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="retention is immutable"
	// +optional
	Retention string `json:"retention,omitempty"`
	// Runs requested for this room inherit it (C3). Fixed at creation (ruling
	// TD): a room turned public would publish the summaries of verdicts queued
	// under its internal class.
	// +kubebuilder:validation:Enum=public;internal
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="dataClass is immutable"
	DataClass string `json:"dataClass"`
	// The repository every run of the room acts on (v2 D3): the factory refuses a run request
	// naming another. No default: a room names its repository, and one without binds to none.
	// +kubebuilder:validation:Pattern=`^[A-Za-z0-9-]+/[A-Za-z0-9._-]+$`
	// +optional
	Repository string `json:"repository,omitempty"`
}

RoomSpec is who owns and drives the room, who may join, and its policies.

func (*RoomSpec) DeepCopy

func (in *RoomSpec) DeepCopy() *RoomSpec

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

func (*RoomSpec) DeepCopyInto

func (in *RoomSpec) DeepCopyInto(out *RoomSpec)

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

type RoomStatus

type RoomStatus struct {
	// +kubebuilder:validation:Enum=Open;Active;Idle;AwaitingHuman;Closed
	// +optional
	Phase            string `json:"phase,omitempty"`
	LastSeq          int64  `json:"lastSeq,omitempty"`
	Driver           string `json:"driver,omitempty"`
	DriverEpoch      int64  `json:"driverEpoch,omitempty"`
	PendingApprovals int32  `json:"pendingApprovals,omitempty"`
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Task *TaskStatus `json:"task,omitempty"`
}

RoomStatus mirrors the log: phase, last seq, driver and pending approvals.

func (*RoomStatus) DeepCopy

func (in *RoomStatus) DeepCopy() *RoomStatus

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

func (*RoomStatus) DeepCopyInto

func (in *RoomStatus) DeepCopyInto(out *RoomStatus)

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

type TaskStatus

type TaskStatus struct {
	// +kubebuilder:validation:MaxLength=32
	// +optional
	Phase string `json:"phase,omitempty"`
	// +kubebuilder:validation:MaxLength=64
	// +optional
	IssueAuthor string `json:"issueAuthor,omitempty"`
	// +kubebuilder:validation:MaxLength=64
	// +optional
	LabelledBy string `json:"labelledBy,omitempty"`
	// +kubebuilder:validation:MaxLength=64
	// +optional
	PRAuthor string `json:"prAuthor,omitempty"`
	// +kubebuilder:validation:MaxItems=16
	// +kubebuilder:validation:items:MaxLength=64
	// +optional
	PRReviewers []string `json:"prReviewers,omitempty"`
	// The issue and PR the task works on, for the room list's rows (#50).
	// +optional
	Issue int32 `json:"issue,omitempty"`
	// +kubebuilder:validation:MaxLength=500
	// +optional
	IssueTitle string `json:"issueTitle,omitempty"`
	// +optional
	PR int32 `json:"pr,omitempty"`
}

TaskStatus is the last task facts the factory wrote into the room, projected so the room list can filter on them without reading every room's log.

func (*TaskStatus) DeepCopy

func (in *TaskStatus) DeepCopy() *TaskStatus

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

func (*TaskStatus) DeepCopyInto

func (in *TaskStatus) DeepCopyInto(out *TaskStatus)

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