Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the deployments v1alpha1 API group +kubebuilder:object:generate=true +groupName=deployments.plural.sh
Index ¶
- Constants
- Variables
- func ConvertClusterAttributesToUpdate(a console.ClusterAttributes) console.ClusterUpdateAttributes
- func IsDigestReference(image string) bool
- func PolicyBindings(bindings []Binding) []*console.PolicyBindingAttributes
- func Resource(resource string) schema.GroupResource
- type AWSProviderCredentials
- type AgentConfiguration
- type AgentConfigurationList
- type AgentConfigurationSpec
- type AgentHelmConfiguration
- type AgentRun
- func (in *AgentRun) Attributes() console.AgentRunAttributes
- func (in *AgentRun) DeepCopy() *AgentRun
- func (in *AgentRun) DeepCopyInto(out *AgentRun)
- func (in *AgentRun) DeepCopyObject() runtime.Object
- func (in *AgentRun) EnsureLabels(agentRuntimeName, agentRunID string)
- func (in *AgentRun) GetAgentRunID() string
- func (in *AgentRun) IsCancelled() bool
- func (in *AgentRun) IsFailed() bool
- func (in *AgentRun) IsPending() bool
- func (in *AgentRun) IsRunning() bool
- func (in *AgentRun) IsSucceeded() bool
- func (in *AgentRun) SetCondition(condition metav1.Condition)
- func (in *AgentRun) StatusAttributes(status console.AgentRunStatus) console.AgentRunStatusAttributes
- func (in *AgentRun) StatusDiff(hasher Hasher) (changed bool, sha string, err error)
- type AgentRunList
- type AgentRunPhase
- type AgentRunSpec
- type AgentRunStatus
- type AgentRuntime
- func (in *AgentRuntime) Attributes() console.AgentRuntimeAttributes
- func (in *AgentRuntime) ConsoleID() *string
- func (in *AgentRuntime) ConsoleName() string
- func (in *AgentRuntime) DeepCopy() *AgentRuntime
- func (in *AgentRuntime) DeepCopyInto(out *AgentRuntime)
- func (in *AgentRuntime) DeepCopyObject() runtime.Object
- func (in *AgentRuntime) Diff(hasher Hasher) (changed bool, sha string, err error)
- func (in *AgentRuntime) IsAiProxyEnabled() bool
- func (in *AgentRuntime) IsStreamingProxyEnabled() bool
- func (in *AgentRuntime) IsWorkbenchMCPEnabled() bool
- func (in *AgentRuntime) SetCondition(condition metav1.Condition)
- func (in *AgentRuntime) WorkbenchMCPCategories() []WorkbenchMCPCategory
- type AgentRuntimeBindings
- type AgentRuntimeConfig
- type AgentRuntimeConfigRaw
- type AgentRuntimeList
- type AgentRuntimeReference
- type AgentRuntimeSpec
- type AgentRuntimeStatus
- type Binding
- type Bindings
- type Browser
- type BrowserConfig
- type CapiConfigurationClusterSpec
- type ClaudeConfig
- type ClaudeConfigRaw
- type ClusterDrain
- func (in *ClusterDrain) DeepCopy() *ClusterDrain
- func (in *ClusterDrain) DeepCopyInto(out *ClusterDrain)
- func (in *ClusterDrain) DeepCopyObject() runtime.Object
- func (c *ClusterDrain) FindWaveProgress(wave int) *Progress
- func (c *ClusterDrain) SetCondition(condition metav1.Condition)
- func (c *ClusterDrain) SetWaveProgress(newProgress Progress) bool
- type ClusterDrainList
- type ClusterDrainSpec
- type ClusterDrainStatus
- type ClusterSpec
- type CodexConfig
- type CodexConfigRaw
- type ConditionMessage
- type ConditionReason
- type ConditionType
- type CostProvider
- type CustomHealth
- type CustomHealthList
- type CustomHealthSpec
- type CustomHealthStatus
- type CustomInsightPriority
- func (in *CustomInsightPriority) DeepCopy() *CustomInsightPriority
- func (in *CustomInsightPriority) DeepCopyInto(out *CustomInsightPriority)
- func (in *CustomInsightPriority) DeepCopyObject() runtime.Object
- func (c *CustomInsightPriority) RemoveCondition(conditionType ConditionType)
- func (c *CustomInsightPriority) SetCondition(condition metav1.Condition)
- type CustomInsightPriorityList
- type CustomInsightPrioritySpec
- type CustomInsightPriorityStatus
- type DevboxAWSIdentity
- type DevboxAgent
- type DevboxAgentStatus
- type DevboxAgentType
- type DevboxAutonomy
- type DevboxAutonomyLevel
- type DevboxAzureIdentity
- type DevboxBrowser
- type DevboxCapacityStatus
- type DevboxCloudIdentity
- type DevboxCloudProviders
- type DevboxECRRegistries
- type DevboxEnvVar
- type DevboxEnvVarSource
- type DevboxGCPIdentity
- type DevboxHTTPAllowlistEntry
- type DevboxIdlePolicy
- type DevboxImageUpdateMode
- type DevboxImageUpdatePolicy
- type DevboxOCIRegistries
- type DevboxPackageServers
- type DevboxResources
- type DevboxRevision
- type DevboxRevisionPhase
- type DevboxRunner
- func (in *DevboxRunner) ConsoleID() *string
- func (in *DevboxRunner) ConsoleName() string
- func (in *DevboxRunner) DeepCopy() *DevboxRunner
- func (in *DevboxRunner) DeepCopyInto(out *DevboxRunner)
- func (in *DevboxRunner) DeepCopyObject() runtime.Object
- func (in *DevboxRunner) DefaultAgent() *DevboxAgent
- func (in *DevboxRunner) LatestRevision() *DevboxRevision
- func (in *DevboxRunner) RevisionByNumber(revision int64) *DevboxRevision
- func (in *DevboxRunner) SetCondition(condition metav1.Condition)
- func (in *DevboxRunner) UpdateMode(image string) DevboxImageUpdateMode
- type DevboxRunnerBindings
- type DevboxRunnerList
- type DevboxRunnerSpec
- func (in *DevboxRunnerSpec) AutonomyPolicy() (def, maxLevel DevboxAutonomyLevel)
- func (in *DevboxRunnerSpec) CloudProviderHosts() []string
- func (in *DevboxRunnerSpec) DeepCopy() *DevboxRunnerSpec
- func (in *DevboxRunnerSpec) DeepCopyInto(out *DevboxRunnerSpec)
- func (in *DevboxRunnerSpec) EgressPresetHosts() []string
- func (in *DevboxRunnerSpec) OCIRegistryHosts() []string
- func (in *DevboxRunnerSpec) PackageServerHosts() []string
- func (in *DevboxRunnerSpec) SecretEnv() bool
- type DevboxRunnerStatus
- type DevboxSandboxClass
- type DevboxSecretKeySelector
- type DevboxSubstrate
- type DevboxWorkerAutoscaling
- type DevboxWorkerPool
- type DevboxWorkerPoolRef
- type ExaConnection
- type ExaConnectionRaw
- type FlowControl
- type GateSpec
- type GateState
- type GateType
- type GeminiConfig
- type GeminiConfigRaw
- type GitSpec
- type Hasher
- type HelmConfiguration
- type HelmSpec
- type ImageWarmer
- type ImageWarmerList
- type ImageWarmerSpec
- type ImageWarmerStatus
- type IngressReplica
- type IngressReplicaList
- type IngressReplicaSpec
- type InsightEngine
- type InsightEvaluation
- type InsightTarget
- type InsightTargetKind
- type KubecostExtractor
- type KubecostExtractorList
- type KubecostExtractorSpec
- func (in *KubecostExtractorSpec) DeepCopy() *KubecostExtractorSpec
- func (in *KubecostExtractorSpec) DeepCopyInto(out *KubecostExtractorSpec)
- func (in *KubecostExtractorSpec) GetAllocationPath() string
- func (in *KubecostExtractorSpec) GetClusterInfoPath() string
- func (in *KubecostExtractorSpec) GetInterval() time.Duration
- func (in *KubecostExtractorSpec) GetPort() string
- func (in *KubecostExtractorSpec) GetProvider() CostProvider
- func (in *KubecostExtractorSpec) GetServiceRef() corev1.ObjectReference
- type MCPServer
- type MCPServerHeader
- type MetricsAggregate
- type MetricsAggregateList
- type MetricsAggregateStatus
- type MiseSpec
- type OpenCodeConfig
- type OpenCodeConfigRaw
- type OpenCodeOpenAICompatibleConfig
- type PiConfig
- type PiConfigRaw
- type PipelineGate
- type PipelineGateList
- type PipelineGateSpec
- type PipelineGateStatus
- func (in *PipelineGateStatus) DeepCopy() *PipelineGateStatus
- func (in *PipelineGateStatus) DeepCopyInto(out *PipelineGateStatus)
- func (pgs *PipelineGateStatus) GateUpdateAttributes() console.GateUpdateAttributes
- func (pgs *PipelineGateStatus) GetConsoleGateState() *console.GateState
- func (pgs *PipelineGateStatus) GetSHA() string
- func (pgs *PipelineGateStatus) HasJobRef() bool
- func (pgs *PipelineGateStatus) HasSHA() bool
- func (pgs *PipelineGateStatus) IsClosed() bool
- func (pgs *PipelineGateStatus) IsInitialized() bool
- func (pgs *PipelineGateStatus) IsOpen() bool
- func (pgs *PipelineGateStatus) IsPending() bool
- func (pgs *PipelineGateStatus) IsRunning() bool
- func (pgs *PipelineGateStatus) IsSHAEqual(sha string) bool
- func (pgs *PipelineGateStatus) SetJobRef(name string, namespace string) *PipelineGateStatus
- func (pgs *PipelineGateStatus) SetSHA(sha string) *PipelineGateStatus
- func (pgs *PipelineGateStatus) SetState(state console.GateState) *PipelineGateStatus
- type PluralCAPICluster
- func (in *PluralCAPICluster) Attributes() console.ClusterAttributes
- func (in *PluralCAPICluster) ClusterName() string
- func (in *PluralCAPICluster) DeepCopy() *PluralCAPICluster
- func (in *PluralCAPICluster) DeepCopyInto(out *PluralCAPICluster)
- func (in *PluralCAPICluster) DeepCopyObject() runtime.Object
- func (in *PluralCAPICluster) Diff(hasher Hasher) (changed bool, sha string, err error)
- func (in *PluralCAPICluster) GetConsoleToken(ctx context.Context, c k8sClient.Client) (string, error)
- func (in *PluralCAPICluster) SetCondition(condition metav1.Condition)
- func (in *PluralCAPICluster) UpdateAttributes() console.ClusterUpdateAttributes
- type PluralCAPIClusterList
- type PodTemplateSpec
- type Progress
- type ProviderCredentials
- type RecommendationsSettings
- type RepositoryImagePrewarm
- type SentinelRunJob
- type SentinelRunJobList
- type SentinelRunJobSpec
- type SentinelRunJobStatus
- type StackRunJob
- type StackRunJobList
- type StackRunJobSpec
- type StackRunJobStatus
- type Status
- func (in *Status) DeepCopy() *Status
- func (in *Status) DeepCopyInto(out *Status)
- func (p *Status) GetID() string
- func (p *Status) GetSHA() string
- func (p *Status) HasID() bool
- func (p *Status) HasSHA() bool
- func (p *Status) IsSHAEqual(sha string) bool
- func (p *Status) IsStatusConditionTrue(condition ConditionType) bool
- type UpgradeInsights
- type UpgradeInsightsDistro
- type UpgradeInsightsList
- type UpgradeInsightsSpec
- func (in *UpgradeInsightsSpec) DeepCopy() *UpgradeInsightsSpec
- func (in *UpgradeInsightsSpec) DeepCopyInto(out *UpgradeInsightsSpec)
- func (in *UpgradeInsightsSpec) GetClusterName(defaultClusterName string) string
- func (in *UpgradeInsightsSpec) GetDistro(defaultDistro *console.ClusterDistro) *console.ClusterDistro
- func (in *UpgradeInsightsSpec) GetInterval() time.Duration
- type VClusterHelmConfiguration
- type VirtualCluster
- func (in *VirtualCluster) Attributes() console.ClusterAttributes
- func (in *VirtualCluster) DeepCopy() *VirtualCluster
- func (in *VirtualCluster) DeepCopyInto(out *VirtualCluster)
- func (in *VirtualCluster) DeepCopyObject() runtime.Object
- func (in *VirtualCluster) Diff(hasher Hasher) (changed bool, sha string, err error)
- func (in *VirtualCluster) SetCondition(condition metav1.Condition)
- type VirtualClusterList
- type VirtualClusterSpec
- type VirtualClusterStatus
- type WorkbenchMCPCategory
- type WorkbenchMCPConfig
Constants ¶
const ( // OverlappingConditionType is set on a CustomInsightPriority that lost some of its objects to a CustomInsightPriority with a higher precedence. OverlappingConditionType ConditionType = "Overlapping" // InvalidScriptConditionReason means the script could not be compiled, so it is not evaluated. InvalidScriptConditionReason ConditionReason = "InvalidScript" // EvaluationFailedConditionReason means the script failed on the last evaluation, so its objects use the built-in priority. EvaluationFailedConditionReason ConditionReason = "EvaluationFailed" // OverlapConditionReason is the reason of the Overlapping condition. OverlapConditionReason ConditionReason = "Overlap" )
const ( // DevboxRunnerNameLabel marks every Kubernetes object the operator manages for a runner. DevboxRunnerNameLabel = "devboxes.plural.sh/runner" // DevboxImageContractLabel is the image label carrying the contract version (section 4.1a). DevboxImageContractLabel = "sh.plural.devbox/contract" // DevboxImageDaemonVersionLabel is the image label carrying the bundled devbox-daemon version. DevboxImageDaemonVersionLabel = "sh.plural.devbox/daemon-version" // DevboxImageFlavorLabel is the image label naming the base flavor (minimal, fat). DevboxImageFlavorLabel = "sh.plural.devbox/flavor" // DevboxImageContractV1 is the only contract version this operator understands. DevboxImageContractV1 = "v1" )
const ( VClusterDefaultRepository = "https://charts.loft.sh" VClusterDefaultChartName = "vcluster" VClusterKubeconfigSecretKey = "config" AgentDefaultRepository = "https://pluralsh.github.io/deployment-operator" AgentDefaultChartName = "deployment-operator" AgentDefaultReleaseName = "deploy-operator" AgentDefaultNamespace = "plrl-deploy-operator" )
const AgentRunIDLabel = "deployments.plural.sh/agent-run-id"
const AgentRuntimeNameLabel = "deployments.plural.sh/agent-runtime-name"
const DevboxRunnerEnvSecret = "devbox-runner-env"
DevboxRunnerEnvSecret, in the operator namespace, holds every runner's resolved secretKeyRef env vars as one JSON object per runner, keyed by runner name. The gateway reads only this Secret, so runners can reference Secrets in any namespace without the gateway having cluster-wide Secret access.
const ImageWarmerNameLabel = "deployments.plural.sh/image-warmer-name"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "deployments.plural.sh", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &schemeBuilder{GroupVersion: GroupVersion, SchemeBuilder: runtime.NewSchemeBuilder()} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = GroupVersion
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func ConvertClusterAttributesToUpdate ¶
func ConvertClusterAttributesToUpdate(a console.ClusterAttributes) console.ClusterUpdateAttributes
ConvertClusterAttributesToUpdate converts a console.ClusterAttributes into console.ClusterUpdateAttributes
func IsDigestReference ¶ added in v0.6.76
IsDigestReference reports whether an image reference is already pinned by digest.
func PolicyBindings ¶
func PolicyBindings(bindings []Binding) []*console.PolicyBindingAttributes
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type AWSProviderCredentials ¶
type AWSProviderCredentials struct {
// Region is the name of the AWS region cluster lives in.
// +kubebuilder:validation:Required
Region string `json:"region"`
// AccessKeyID is your access key ID used to authenticate against AWS API.
// +kubebuilder:validation:Optional
AccessKeyID *string `json:"accessKeyID,omitempty"`
// SecretAccessKeyRef is a reference to the secret that contains secret access key.
// Since UpgradeInsights is a cluster-scoped resource we can't use local reference.
//
// SecretAccessKey must be stored in a key named "secretAccessKey".
//
// An example secret can look like this:
// apiVersion: v1
// kind: Secret
// metadata:
// name: eks-credentials
// namespace: upgrade-insights-test
// stringData:
// secretAccessKey: "changeme"
//
// Then it can be referenced like this:
// ...
// secretAccessKeyRef:
// name: eks-credentials
// namespace: upgrade-insights-test
//
// +kubebuilder:validation:Optional
SecretAccessKeyRef *corev1.SecretReference `json:"secretAccessKeyRef,omitempty"`
}
func (*AWSProviderCredentials) DeepCopy ¶
func (in *AWSProviderCredentials) DeepCopy() *AWSProviderCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSProviderCredentials.
func (*AWSProviderCredentials) DeepCopyInto ¶
func (in *AWSProviderCredentials) DeepCopyInto(out *AWSProviderCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AgentConfiguration ¶
type AgentConfiguration struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AgentConfigurationSpec `json:"spec,omitempty"`
Status Status `json:"status,omitempty"`
}
AgentConfiguration is the deployment operator configuration
func (*AgentConfiguration) DeepCopy ¶
func (in *AgentConfiguration) DeepCopy() *AgentConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentConfiguration.
func (*AgentConfiguration) DeepCopyInto ¶
func (in *AgentConfiguration) DeepCopyInto(out *AgentConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentConfiguration) DeepCopyObject ¶
func (in *AgentConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AgentConfiguration) SetCondition ¶
func (c *AgentConfiguration) SetCondition(condition metav1.Condition)
type AgentConfigurationList ¶
type AgentConfigurationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []AgentConfiguration `json:"items"`
}
AgentConfigurationList contains a list of AgentConfiguration
func (*AgentConfigurationList) DeepCopy ¶
func (in *AgentConfigurationList) DeepCopy() *AgentConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentConfigurationList.
func (*AgentConfigurationList) DeepCopyInto ¶
func (in *AgentConfigurationList) DeepCopyInto(out *AgentConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentConfigurationList) DeepCopyObject ¶
func (in *AgentConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AgentConfigurationSpec ¶
type AgentConfigurationSpec struct {
// ServicePollInterval defines how often the agent polls for services.
// Expected format is a duration string (e.g., "30s", "5m").
// Set to "0s" to disable service polling.
ServicePollInterval *string `json:"servicePollInterval,omitempty"`
// ManagedNamespacePollInterval defines how often the agent polls for managed namespaces.
// Set to "0s" to disable managed namespace polling.
ManagedNamespacePollInterval *string `json:"managedNamespacePollInterval,omitempty"`
// ClusterPingInterval specifies the interval at which the agent pings the cluster.
// Set to "0s" to disable cluster pings.
ClusterPingInterval *string `json:"clusterPingInterval,omitempty"`
// CompatibilityUploadInterval determines how frequently the agent uploads compatibility data.
// Set to "0s" to disable compatibility uploads.
CompatibilityUploadInterval *string `json:"compatibilityUploadInterval,omitempty"`
// StackPollInterval sets how often the agent polls for stack updates or changes.
// Set to "0s" to disable stack polling.
StackPollInterval *string `json:"stackPollInterval,omitempty"`
// SentinelPollInterval sets how often the agent polls for sentinel run jobs.
// Set to "0s" to disable sentinel run job polling.
SentinelPollInterval *string `json:"sentinelPollInterval,omitempty"`
// PipelineGateInterval specifies how frequently the agent checks pipeline gates.
// Set to "0s" to disable pipeline gate checks.
PipelineGateInterval *string `json:"pipelineGateInterval,omitempty"`
// ComponentShaCacheTTL specifies how long duplicate component updates are cached.
ComponentShaCacheTTL *string `json:"componentShaCacheTTL,omitempty"`
// MaxConcurrentReconciles controls the maximum number of concurrent reconcile loops.
// Higher values can increase throughput at the cost of resource usage.
MaxConcurrentReconciles *int `json:"maxConcurrentReconciles,omitempty"`
// VulnerabilityReportUploadInterval sets how often vulnerability reports are uploaded.
// Set to "0s" to disable vulnerability report uploads.
VulnerabilityReportUploadInterval *string `json:"vulnerabilityReportUploadInterval,omitempty"`
// BaseRegistryURL allows overriding the default base registry URL.
// For stack run jobs, agent run pods, sentinel run jobs.
BaseRegistryURL *string `json:"baseRegistryURL,omitempty"`
// MaxSentinelRunJobs limits the number of concurrent SentinelRunJobs that can be active at any given time.
// Must be greater than 0. Set this field to nil (omit) to disable the limit.
// +kubebuilder:validation:Minimum=1
MaxSentinelRunJobs *int `json:"maxSentinelRunJobs,omitempty"`
// MaxStackRunJobs limits the number of concurrent StackRunJobs that can be active at any given time.
// Must be greater than 0. Set this field to nil (omit) to disable the limit.
// +kubebuilder:validation:Minimum=1
MaxStackRunJobs *int `json:"maxStackRunJobs,omitempty"`
// MaxAgentRunPods limits the number of concurrent agent run pods that can be active at any given time.
// Must be greater than 0. Set this field to nil (omit) to disable the limit.
// +kubebuilder:validation:Minimum=1
MaxAgentRunPods *int `json:"maxAgentRunPods,omitempty"`
// DisableWebsocket disables the cluster websocket connection to the Console.
// When enabled, the agent will rely exclusively on polling instead of receiving
// push updates. This is useful in large-scale edge deployments where maintaining
// persistent websocket connections has an infeasible network cost.
DisableWebsocket *bool `json:"disableWebsocket,omitempty"`
// PollImmediately determines whether the agent should poll immediately upon startup.
// When set to true, the agent will perform an initial poll as soon as it starts.
// By default, it's set to true.
PollImmediately *bool `json:"pollImmediately,omitempty"`
}
AgentConfigurationSpec defines the desired state of AgentConfiguration
func (*AgentConfigurationSpec) DeepCopy ¶
func (in *AgentConfigurationSpec) DeepCopy() *AgentConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentConfigurationSpec.
func (*AgentConfigurationSpec) DeepCopyInto ¶
func (in *AgentConfigurationSpec) DeepCopyInto(out *AgentConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AgentHelmConfiguration ¶
type AgentHelmConfiguration struct {
HelmConfiguration `json:",inline"`
}
func (*AgentHelmConfiguration) DeepCopy ¶
func (in *AgentHelmConfiguration) DeepCopy() *AgentHelmConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentHelmConfiguration.
func (*AgentHelmConfiguration) DeepCopyInto ¶
func (in *AgentHelmConfiguration) DeepCopyInto(out *AgentHelmConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentHelmConfiguration) GetChartName ¶
func (in *AgentHelmConfiguration) GetChartName() string
func (*AgentHelmConfiguration) GetRepoUrl ¶
func (in *AgentHelmConfiguration) GetRepoUrl() string
type AgentRun ¶
type AgentRun struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AgentRunSpec `json:"spec,omitempty"`
Status AgentRunStatus `json:"status,omitempty"`
}
AgentRun is the Schema for the agentruns API
func (*AgentRun) Attributes ¶
func (in *AgentRun) Attributes() console.AgentRunAttributes
Attributes converts the AgentRun CRD to console API format for creating runs
func (*AgentRun) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentRun.
func (*AgentRun) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentRun) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AgentRun) EnsureLabels ¶
func (*AgentRun) GetAgentRunID ¶
func (*AgentRun) IsCancelled ¶
func (*AgentRun) IsSucceeded ¶
func (*AgentRun) SetCondition ¶
func (*AgentRun) StatusAttributes ¶
func (in *AgentRun) StatusAttributes(status console.AgentRunStatus) console.AgentRunStatusAttributes
StatusAttributes converts the AgentRun status to console API format for updating runs.
type AgentRunList ¶
type AgentRunList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []AgentRun `json:"items"`
}
AgentRunList contains a list of AgentRun
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 AgentRunPhase ¶
type AgentRunPhase string
AgentRunPhase represents the phase of an agent run +kubebuilder:validation:Enum=Pending;Running;Succeeded;Failed;Cancelled
const ( AgentRunPhasePending AgentRunPhase = "Pending" AgentRunPhaseRunning AgentRunPhase = "Running" AgentRunPhaseSucceeded AgentRunPhase = "Succeeded" AgentRunPhaseFailed AgentRunPhase = "Failed" AgentRunPhaseCancelled AgentRunPhase = "Cancelled" )
type AgentRunSpec ¶
type AgentRunSpec struct {
// +kubebuilder:validation:Required
RuntimeRef AgentRuntimeReference `json:"runtimeRef"`
// Prompt is the task/prompt given to the agent
// +kubebuilder:validation:Required
Prompt string `json:"prompt"`
// Repository is the git repository the agent will work with
// +kubebuilder:validation:Required
Repository string `json:"repository"`
// Branch is the repository branch the agent should operate on. If omitted, the repository default branch is used.
// +kubebuilder:validation:Optional
Branch *string `json:"branch,omitempty"`
// Mode defines how the agent should run (ANALYZE, WRITE, REVIEW)
// +kubebuilder:validation:Required
Mode console.AgentRunMode `json:"mode"`
// ReviewDepth controls how far a review run explores code adjacent to the pull request changes.
// +kubebuilder:validation:Optional
ReviewDepth *console.AgentReviewDepth `json:"reviewDepth,omitempty"`
// FlowID is the flow this agent run is associated with (optional)
// +kubebuilder:validation:Optional
FlowID *string `json:"flowId,omitempty"`
// WorkbenchMCPURL is the Console MCP endpoint for the workbench that
// originated this run. It is populated by the AgentRuntime controller.
// +kubebuilder:validation:Optional
WorkbenchMCPURL *string `json:"workbenchMcpUrl,omitempty"`
// Language is the programming language used in the agent run.
//
// Deprecated: No longer used for image selection. Enable dind on the AgentRuntime instead.
// +kubebuilder:validation:Optional
Language *console.AgentRunLanguage `json:"language,omitempty"`
// LanguageVersion is the version of the language to use, if you wish to specify.
//
// Deprecated: No longer used for image selection. Enable dind on the AgentRuntime instead.
// +kubebuilder:validation:Optional
LanguageVersion *string `json:"languageVersion,omitempty"`
}
AgentRunSpec defines the desired state of AgentRun
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 {
// PodRef references the pod running this agent
// +kubebuilder:validation:Optional
PodRef *corev1.ObjectReference `json:"podRef,omitempty"`
// Phase represents the current phase of the agent run
// +kubebuilder:validation:Optional
Phase AgentRunPhase `json:"phase,omitempty"`
// StartTime is when the agent run started
// +kubebuilder:validation:Optional
StartTime *metav1.Time `json:"startTime,omitempty"`
// EndTime is when the agent run completed
// +kubebuilder:validation:Optional
EndTime *metav1.Time `json:"endTime,omitempty"`
// Error message if the run failed
// +kubebuilder:validation:Optional
Error *string `json:"error,omitempty"`
// Standard status fields (includes ID field for console API)
Status `json:",inline"`
}
AgentRunStatus defines the observed state of AgentRun
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 AgentRuntime ¶
type AgentRuntime struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AgentRuntimeSpec `json:"spec,omitempty"`
Status AgentRuntimeStatus `json:"status,omitempty"`
}
AgentRuntime is the Schema for the agentruntimes API
func (*AgentRuntime) Attributes ¶
func (in *AgentRuntime) Attributes() console.AgentRuntimeAttributes
func (*AgentRuntime) ConsoleID ¶
func (in *AgentRuntime) ConsoleID() *string
ConsoleID implements [PluralResource] interface
func (*AgentRuntime) ConsoleName ¶
func (in *AgentRuntime) ConsoleName() string
func (*AgentRuntime) DeepCopy ¶
func (in *AgentRuntime) DeepCopy() *AgentRuntime
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentRuntime.
func (*AgentRuntime) DeepCopyInto ¶
func (in *AgentRuntime) DeepCopyInto(out *AgentRuntime)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentRuntime) DeepCopyObject ¶
func (in *AgentRuntime) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AgentRuntime) Diff ¶
func (in *AgentRuntime) Diff(hasher Hasher) (changed bool, sha string, err error)
func (*AgentRuntime) IsAiProxyEnabled ¶ added in v0.6.41
func (in *AgentRuntime) IsAiProxyEnabled() bool
func (*AgentRuntime) IsStreamingProxyEnabled ¶ added in v0.6.46
func (in *AgentRuntime) IsStreamingProxyEnabled() bool
func (*AgentRuntime) IsWorkbenchMCPEnabled ¶ added in v0.6.67
func (in *AgentRuntime) IsWorkbenchMCPEnabled() bool
func (*AgentRuntime) SetCondition ¶
func (in *AgentRuntime) SetCondition(condition metav1.Condition)
func (*AgentRuntime) WorkbenchMCPCategories ¶ added in v0.6.67
func (in *AgentRuntime) WorkbenchMCPCategories() []WorkbenchMCPCategory
type AgentRuntimeBindings ¶
type AgentRuntimeBindings struct {
// Create bindings control who can generate new agent runtimes.
// +kubebuilder:validation:Optional
Create []Binding `json:"create,omitempty"`
}
func (*AgentRuntimeBindings) DeepCopy ¶
func (in *AgentRuntimeBindings) DeepCopy() *AgentRuntimeBindings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentRuntimeBindings.
func (*AgentRuntimeBindings) DeepCopyInto ¶
func (in *AgentRuntimeBindings) DeepCopyInto(out *AgentRuntimeBindings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AgentRuntimeConfig ¶
type AgentRuntimeConfig struct {
// Config for Claude CLI runtime.
// +kubebuilder:validation:Optional
Claude *ClaudeConfig `json:"claude,omitempty"`
// Config for OpenCode CLI runtime.
// +kubebuilder:validation:Optional
OpenCode *OpenCodeConfig `json:"opencode,omitempty"`
// Config for Gemini CLI runtime.
// +kubebuilder:validation:Optional
Gemini *GeminiConfig `json:"gemini,omitempty"`
// Codex config for Codex CLI runtime.
// +kubebuilder:validation:Optional
Codex *CodexConfig `json:"codex,omitempty"`
// Pi config for Pi coding-agent CLI runtime.
// +kubebuilder:validation:Optional
Pi *PiConfig `json:"pi,omitempty"`
}
AgentRuntimeConfig contains typed configuration for the agent runtime.
func (*AgentRuntimeConfig) DeepCopy ¶
func (in *AgentRuntimeConfig) DeepCopy() *AgentRuntimeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentRuntimeConfig.
func (*AgentRuntimeConfig) DeepCopyInto ¶
func (in *AgentRuntimeConfig) DeepCopyInto(out *AgentRuntimeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentRuntimeConfig) ToAgentRuntimeConfigRaw ¶
func (in *AgentRuntimeConfig) ToAgentRuntimeConfigRaw(secretGetter func(corev1.SecretKeySelector) (*corev1.Secret, error), aiProxy bool) (*AgentRuntimeConfigRaw, error)
type AgentRuntimeConfigRaw ¶
type AgentRuntimeConfigRaw struct {
// Claude is the raw configuration for the Claude runtime.
// +kubebuilder:validation:Optional
Claude *ClaudeConfigRaw `json:"claude,omitempty"`
// OpenCode is the raw configuration for the OpenCode runtime.
// +kubebuilder:validation:Optional
OpenCode *OpenCodeConfigRaw `json:"opencode,omitempty"`
// Gemini is the raw configuration for the Gemini runtime.
// +kubebuilder:validation:Optional
Gemini *GeminiConfigRaw `json:"gemini,omitempty"`
// Codex is the raw configuration for the Codex runtime.
// +kubebuilder:validation:Optional
Codex *CodexConfigRaw `json:"codex,omitempty"`
// Pi is the raw configuration for the Pi runtime.
// +kubebuilder:validation:Optional
Pi *PiConfigRaw `json:"pi,omitempty"`
}
AgentRuntimeConfigRaw contains raw configuration for the agent runtime.
NOTE: Do not embed this struct directly, use AgentRuntimeConfig instead. This is only used to read original AgentRuntimeConfig secret data and be able to inject it into the pod as env vars.
func (*AgentRuntimeConfigRaw) DeepCopy ¶
func (in *AgentRuntimeConfigRaw) DeepCopy() *AgentRuntimeConfigRaw
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentRuntimeConfigRaw.
func (*AgentRuntimeConfigRaw) DeepCopyInto ¶
func (in *AgentRuntimeConfigRaw) DeepCopyInto(out *AgentRuntimeConfigRaw)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AgentRuntimeList ¶
type AgentRuntimeList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []AgentRuntime `json:"items"`
}
AgentRuntimeList contains a list of AgentRuntime
func (*AgentRuntimeList) DeepCopy ¶
func (in *AgentRuntimeList) DeepCopy() *AgentRuntimeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentRuntimeList.
func (*AgentRuntimeList) DeepCopyInto ¶
func (in *AgentRuntimeList) DeepCopyInto(out *AgentRuntimeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentRuntimeList) DeepCopyObject ¶
func (in *AgentRuntimeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AgentRuntimeReference ¶
type AgentRuntimeReference struct {
// +kubebuilder:validation:Required
Name string `json:"name"`
}
func (*AgentRuntimeReference) DeepCopy ¶
func (in *AgentRuntimeReference) DeepCopy() *AgentRuntimeReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentRuntimeReference.
func (*AgentRuntimeReference) DeepCopyInto ¶
func (in *AgentRuntimeReference) DeepCopyInto(out *AgentRuntimeReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AgentRuntimeSpec ¶
type AgentRuntimeSpec struct {
// Name of this AgentRuntime.
// If not provided, the name from AgentRuntime.ObjectMeta will be used.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty"`
// Default indicates whether this is the default agent runtime for coding agents.
// +kubebuilder:validation:Optional
Default *bool `json:"default,omitempty"`
// +kubebuilder:validation:Required
TargetNamespace string `json:"targetNamespace"`
// Type specifies the agent runtime to use for executing the stack.
// One of CLAUDE, OPENCODE, GEMINI, CODEX, PI, CUSTOM.
// +kubebuilder:validation:Enum=CLAUDE;OPENCODE;GEMINI;CODEX;PI;CUSTOM
// +kubebuilder:validation:Required
Type console.AgentRuntimeType `json:"type"`
// Bindings define the creation permissions for this agent runtime.
// +kubebuilder:validation:Optional
Bindings *AgentRuntimeBindings `json:"bindings,omitempty"`
// Template defines the pod template for this agent runtime.
Template *corev1.PodTemplateSpec `json:"template,omitempty"`
// Config contains typed configuration depending on the chosen runtime type.
// +kubebuilder:validation:Optional
Config *AgentRuntimeConfig `json:"config,omitempty"`
// AiProxy routes LLM requests through the Console AI proxy (/ext/ai) using the deploy token,
// which the in-pod mcpserver sidecar adds, so provider API keys in spec.config are optional.
//
// Set the model on the runtime-specific config block (for example spec.config.codex.model).
// The proxy expects models in provider/name format (for example openai/gpt-5.4,
// anthropic/claude-sonnet-4-5, vertex/gemini-2.5-pro). Values that already include a "/"
// are passed through unchanged.
//
// When only a bare model id is given, the harness may prefix it by runtime type:
// - CLAUDE: anthropic/{model} (for example claude-sonnet-4-5 -> anthropic/claude-sonnet-4-5)
// - CODEX, OPENCODE: openai/{model} (for example gpt-5.4 -> openai/gpt-5.4)
// - GEMINI: vertex/{model}
// - CUSTOM: no automatic prefix; use provider/name explicitly
AiProxy *bool `json:"aiProxy,omitempty"`
// StreamingProxy routes OpenAI-compatible LLM requests through the in-pod mcpserver
// sse conversion proxy before they reach the Console AI proxy (/ext/ai). Only valid when aiProxy
// is enabled. Applies to CODEX and OPENCODE runtimes.
// +kubebuilder:validation:Optional
StreamingProxy *bool `json:"streamingProxy,omitempty"`
// Dind enables Docker-in-Docker for this agent runtime.
// When true, the runtime will be configured to run with DinD support.
// +kubebuilder:validation:Optional
Dind *bool `json:"dind,omitempty"`
// Memory enables team-shared codebase-memory persistence for this agent runtime.
// When true, agents may create and commit .codebase-memory/ graph artifacts
// by default so future runs can bootstrap from the persisted index. When false
// or unset, codebase-memory indexes stay in the pod-local cache and generated
// .codebase-memory/ artifacts are excluded from commits.
// +kubebuilder:validation:Optional
Memory *bool `json:"memory,omitempty"`
// RepositoryImage is an OCI image of precloned git repositories plus manifest.json.
// When set, an init container copies it into /plural/shared/repos before bootstrap
// so a matching repo can be copied locally instead of git clone.
// +kubebuilder:validation:Optional
RepositoryImage *string `json:"repositoryImage,omitempty"`
// Prewarm periodically pulls RepositoryImage onto selected nodes before
// agent runs are scheduled.
// +kubebuilder:validation:Optional
Prewarm *RepositoryImagePrewarm `json:"prewarm,omitempty"`
// AllowedRepositories the git repositories allowed to be used with this runtime.
// +kubebuilder:validation:Optional
AllowedRepositories []string `json:"allowedRepositories,omitempty"`
// Browser configuration augments agent runtime with a headless browser.
// When provided, the runtime will be configured to run with a headless browser available
// for the agent to use.
// +kubebuilder:validation:Optional
Browser *BrowserConfig `json:"browser,omitempty"`
// BootstrapScript is a bash script that will be executed inside the cloned repository
// directory before the coding agent starts. It can be used to install dependencies,
// configure tooling, or perform any other setup required by the agent.
// +kubebuilder:validation:Optional
BootstrapScript *string `json:"bootstrapScript,omitempty"`
// ReadOnlyRootFilesystem controls the default container securityContext.
// When unset, the root filesystem stays writable (the current default).
// Set true when extending a finished image that already contains compilers.
// Set false (or leave unset) together with mise.config to run
// `mise bootstrap --yes` at boot: https://mise.jdx.dev/bootstrap.html
// +kubebuilder:validation:Optional
ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"`
// Mise supplies a mise.toml applied before the coding agent starts.
// When the default container root is writable, the harness runs
// `mise trust` and `mise bootstrap --yes`. When readOnlyRootFilesystem is true,
// the config is still mounted so mise exec can use [tools] and [env],
// but bootstrap is skipped.
// +kubebuilder:validation:Optional
Mise *MiseSpec `json:"mise,omitempty"`
// Git configure commit signing on agent run. When provided, the runtime will be configured to sign git commits using the provided key reference.
Git *GitSpec `json:"git,omitempty"`
// BabysitInterval configures the interval for the operator to check on the health of the agent runtime and perform necessary babysitting actions (e.g. restarting unhealthy runtimes). When not provided, a default interval of 1 minute will be used.
BabysitInterval *metav1.Duration `json:"babysitInterval,omitempty"`
// AgentTTL configures the maximum lifetime for agent run pods on this runtime. When not provided, a default TTL of 12 hours will be used.
// +kubebuilder:validation:Optional
AgentTTL *metav1.Duration `json:"agentTTL,omitempty"`
// ScmConnection is the name of an ScmConnection in Console to use for git operations on agent runs using this runtime.
// This should match the name of an existing ScmConnection resource or connection created in the Plural UI.
// +kubebuilder:validation:Optional
ScmConnection *string `json:"scmConnection,omitempty"`
// ExaConnection enables Exa web search and content retrieval tools on the Plural MCP server.
ExaConnection *ExaConnection `json:"exaConnection,omitempty"`
// MCPServers are additional remote MCP servers made available to coding agents
// on this runtime. Servers are expected to already be deployed and reachable
// at the given URL. Built-in servers named "plural" and "codebase-memory-mcp"
// are reserved and cannot be overridden.
// +kubebuilder:validation:Optional
// +listType=map
// +listMapKey=name
MCPServers []MCPServer `json:"mcpServers,omitempty"`
// WorkbenchMCP exposes the originating workbench's read-only tools to coding
// agents through the credential-isolating MCP sidecar.
// +kubebuilder:validation:Optional
WorkbenchMCP *WorkbenchMCPConfig `json:"workbenchMcp,omitempty"`
}
AgentRuntimeSpec defines the desired state of AgentRuntime
+kubebuilder:validation:XValidation:rule="!has(self.streamingProxy) || !self.streamingProxy || (has(self.aiProxy) && self.aiProxy)",message="streamingProxy requires aiProxy to be enabled" +kubebuilder:validation:XValidation:rule="!has(self.prewarm) || has(self.repositoryImage)",message="prewarm requires repositoryImage"
func (*AgentRuntimeSpec) DeepCopy ¶
func (in *AgentRuntimeSpec) DeepCopy() *AgentRuntimeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentRuntimeSpec.
func (*AgentRuntimeSpec) DeepCopyInto ¶
func (in *AgentRuntimeSpec) DeepCopyInto(out *AgentRuntimeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AgentRuntimeStatus ¶ added in v0.6.67
type AgentRuntimeStatus struct {
Status `json:",inline"`
// ImageWarmerName is the generated name of the ImageWarmer managed for
// this runtime.
// +kubebuilder:validation:Optional
ImageWarmerName *string `json:"imageWarmerName,omitempty"`
}
func (*AgentRuntimeStatus) DeepCopy ¶ added in v0.6.67
func (in *AgentRuntimeStatus) DeepCopy() *AgentRuntimeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentRuntimeStatus.
func (*AgentRuntimeStatus) DeepCopyInto ¶ added in v0.6.67
func (in *AgentRuntimeStatus) DeepCopyInto(out *AgentRuntimeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Binding ¶
type Binding struct {
// +kubebuilder:validation:Optional
ID *string `json:"id,omitempty"`
// +kubebuilder:validation:Optional
UserID *string `json:"UserID,omitempty"`
// +kubebuilder:validation:Optional
UserEmail *string `json:"userEmail,omitempty"`
// +kubebuilder:validation:Optional
GroupID *string `json:"groupID,omitempty"`
// +kubebuilder:validation:Optional
GroupName *string `json:"groupName,omitempty"`
}
Binding ...
func (*Binding) Attributes ¶
func (b *Binding) Attributes() *console.PolicyBindingAttributes
func (*Binding) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Binding.
func (*Binding) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Bindings ¶
type Bindings struct {
// Read bindings.
// +kubebuilder:validation:Optional
Read []Binding `json:"read,omitempty"`
// Write bindings.
// +kubebuilder:validation:Optional
Write []Binding `json:"write,omitempty"`
}
Bindings represents a policy bindings that can be used to define read/write permissions to this resource for users/groups in the system.
func (*Bindings) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bindings.
func (*Bindings) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Browser ¶
type Browser string
Browser defines the browser to use for the agent runtime.
const ( BrowserChrome Browser = "chrome" BrowserChromium Browser = "chromium" BrowserFirefox Browser = "firefox" BrowserSeleniumChrome Browser = "selenium-chrome" BrowserSeleniumChromium Browser = "selenium-chromium" BrowserSeleniumFirefox Browser = "selenium-firefox" BrowserSeleniumEdge Browser = "selenium-edge" BrowserPuppeteer Browser = "puppeteer" BrowserCustom Browser = "custom" )
type BrowserConfig ¶
type BrowserConfig struct {
// Enabled controls whether the browser runtime is enabled for this agent runtime.
//
// +kubebuilder:validation:Required
Enabled bool `json:"enabled"`
// Browser defines the browser to use. When using non-custom options,
// predefined images with validated configurations will be used. Default configuration
// can be overridden by specifying a custom Container. When using a "custom" browser,
// a custom Container configuration must be provided.
//
// Available options are:
// - chrome - uses browserless/chrome image
// - chromium - uses browserless/chromium image
// - firefox - uses browserless/firefox image
// - selenium-chrome - uses selenium/standalone-chrome image
// - selenium-chromium - uses selenium/standalone-chromium image
// - selenium-firefox - uses selenium/standalone-firefox image
// - selenium-edge - uses selenium/standalone-edge image
// - puppeteer - uses browserless/chromium image
// - custom
//
// Default: chrome
//
// +kubebuilder:validation:Enum:=chrome;chromium;firefox;selenium-chrome;selenium-chromium;selenium-firefox;selenium-edge;puppeteer;custom
// +kubebuilder:default:=chrome
// +kubebuilder:validation:Optional
Browser *Browser `json:"browser,omitempty"`
// Container defines the container to use for the browser runtime.
// For custom images, ensure the container starts a browser server and binds to
// the predetermined port 3000 for remote access from the main agent container.
// When using a predefined image, only partial overrides are allowed, including:
// - environment variables
// - resource limits
// - image pull policy
//
//
// # Examples
//
// Selenium:
// name: browser
// image: selenium/standalone-chrome:144.0
// env:
// - name: SE_OPTS
// value: "--port 3000"
//
// +kubebuilder:validation:Optional
Container *corev1.Container `json:"container,omitempty"`
}
BrowserConfig is the configuration for the browser runtime. It allows AgentRuntime to leverage a headless browser for executing and testing code.
func (*BrowserConfig) DeepCopy ¶
func (in *BrowserConfig) DeepCopy() *BrowserConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BrowserConfig.
func (*BrowserConfig) DeepCopyInto ¶
func (in *BrowserConfig) DeepCopyInto(out *BrowserConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BrowserConfig) IsEnabled ¶
func (in *BrowserConfig) IsEnabled() bool
type CapiConfigurationClusterSpec ¶
type CapiConfigurationClusterSpec struct {
// Cluster is a simplified representation of the Console API cluster
// object. See [ClusterSpec] for more information.
// +kubebuilder:validation:Optional
Cluster *ClusterSpec `json:"cluster,omitempty"`
// TokenSecretRef contains the reference to the secret holding the token to access the Console API
// +kubebuilder:validation:Required
ConsoleTokenSecretRef corev1.SecretKeySelector `json:"consoleTokenSecretRef"`
// CapiClusterRef contains the reference to the CAPI cluster
// +kubebuilder:validation:Required
CapiClusterRef corev1.ObjectReference `json:"capiClusterRef"`
// Agent allows configuring agent specific helm chart options.
// +kubebuilder:validation:Optional
Agent *AgentHelmConfiguration `json:"agent,omitempty"`
}
func (*CapiConfigurationClusterSpec) DeepCopy ¶
func (in *CapiConfigurationClusterSpec) DeepCopy() *CapiConfigurationClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapiConfigurationClusterSpec.
func (*CapiConfigurationClusterSpec) DeepCopyInto ¶
func (in *CapiConfigurationClusterSpec) DeepCopyInto(out *CapiConfigurationClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CapiConfigurationClusterSpec) GetAgent ¶
func (in *CapiConfigurationClusterSpec) GetAgent() *AgentHelmConfiguration
type ClaudeConfig ¶
type ClaudeConfig struct {
// ApiKeySecretRef references a Secret containing the Claude API key.
// Optional when aiProxy is enabled; authentication uses the Console deploy token instead.
// +kubebuilder:validation:Optional
ApiKeySecretRef *corev1.SecretKeySelector `json:"apiKeySecretRef,omitempty"`
// Model Name of the model to use.
Model *string `json:"model,omitempty"`
// Endpoint is the base URL for the Claude API (supports Bedrock/Anthropic-compatible endpoints).
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint,omitempty"`
// ExtraArgs CLI args for advanced flags not modeled here
ExtraArgs []string `json:"extraArgs,omitempty"`
// Timeout bounds a single claude CLI run invocation.
// +kubebuilder:validation:Optional
Timeout *metav1.Duration `json:"timeout,omitempty"`
// BashTimeout is the default timeout for any bash command Claude execute.
// +kubebuilder:validation:Optional
BashTimeout *metav1.Duration `json:"bashTimeout,omitempty"`
// BashMaxTimeout is the maximum time Claude is permitted to wait
// for a command before it is terminated.
// +kubebuilder:validation:Optional
BashMaxTimeout *metav1.Duration `json:"bashMaxTimeout,omitempty"`
}
ClaudeConfig contains configuration for the Claude CLI runtime.
func (*ClaudeConfig) DeepCopy ¶
func (in *ClaudeConfig) DeepCopy() *ClaudeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClaudeConfig.
func (*ClaudeConfig) DeepCopyInto ¶
func (in *ClaudeConfig) DeepCopyInto(out *ClaudeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClaudeConfig) ToClaudeConfigRaw ¶
func (in *ClaudeConfig) ToClaudeConfigRaw(secretGetter func(corev1.SecretKeySelector) (*corev1.Secret, error)) (*ClaudeConfigRaw, error)
type ClaudeConfigRaw ¶
type ClaudeConfigRaw struct {
// ApiKey is the raw API key to use.
ApiKey string `json:"apiKey,omitempty"`
// Model Name of the model to use.
Model *string `json:"model,omitempty"`
// Endpoint is the base URL for the Claude API (supports Bedrock/Anthropic-compatible endpoints).
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint,omitempty"`
// ExtraArgs CLI args for advanced flags not modeled here
ExtraArgs []string `json:"extraArgs,omitempty"`
// Timeout bounds a single claude CLI run invocation.
// +kubebuilder:validation:Optional
Timeout *metav1.Duration `json:"timeout,omitempty"`
// BashTimeout is the default timeout for any bash command Claude executes.
// +kubebuilder:validation:Optional
BashTimeout *metav1.Duration `json:"bashTimeout,omitempty"`
// BashMaxTimeout is the maximum time Claude is permitted to wait
// for a command before it is terminated.
// +kubebuilder:validation:Optional
BashMaxTimeout *metav1.Duration `json:"bashMaxTimeout,omitempty"`
}
ClaudeConfigRaw contains configuration for the Claude CLI runtime.
NOTE: Do not embed this struct directly, use ClaudeConfig instead. This is only used to read original ClaudeConfig secret data and be able to inject it into the pod as env vars.
func (*ClaudeConfigRaw) DeepCopy ¶
func (in *ClaudeConfigRaw) DeepCopy() *ClaudeConfigRaw
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClaudeConfigRaw.
func (*ClaudeConfigRaw) DeepCopyInto ¶
func (in *ClaudeConfigRaw) DeepCopyInto(out *ClaudeConfigRaw)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterDrain ¶
type ClusterDrain struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ClusterDrainSpec `json:"spec,omitempty"`
Status ClusterDrainStatus `json:"status,omitempty"`
}
ClusterDrain is the Schema for the ClusterDrain object
func (*ClusterDrain) DeepCopy ¶
func (in *ClusterDrain) DeepCopy() *ClusterDrain
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDrain.
func (*ClusterDrain) DeepCopyInto ¶
func (in *ClusterDrain) DeepCopyInto(out *ClusterDrain)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDrain) DeepCopyObject ¶
func (in *ClusterDrain) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterDrain) FindWaveProgress ¶
func (c *ClusterDrain) FindWaveProgress(wave int) *Progress
func (*ClusterDrain) SetCondition ¶
func (c *ClusterDrain) SetCondition(condition metav1.Condition)
func (*ClusterDrain) SetWaveProgress ¶
func (c *ClusterDrain) SetWaveProgress(newProgress Progress) bool
type ClusterDrainList ¶
type ClusterDrainList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterDrain `json:"items"`
}
ClusterDrainList contains a list of ClusterDrain
func (*ClusterDrainList) DeepCopy ¶
func (in *ClusterDrainList) DeepCopy() *ClusterDrainList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDrainList.
func (*ClusterDrainList) DeepCopyInto ¶
func (in *ClusterDrainList) DeepCopyInto(out *ClusterDrainList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDrainList) DeepCopyObject ¶
func (in *ClusterDrainList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterDrainSpec ¶
type ClusterDrainSpec struct {
FlowControl FlowControl `json:"flowControl"`
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
}
ClusterDrainSpec defines the desired state of ClusterDrain
func (*ClusterDrainSpec) DeepCopy ¶
func (in *ClusterDrainSpec) DeepCopy() *ClusterDrainSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDrainSpec.
func (*ClusterDrainSpec) DeepCopyInto ¶
func (in *ClusterDrainSpec) DeepCopyInto(out *ClusterDrainSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterDrainStatus ¶
type ClusterDrainStatus struct {
// Represents the observations of a HealthConvert current state.
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
Progress []Progress `json:"progress,omitempty"`
}
ClusterDrainStatus defines the observed state of ClusterDrain
func (*ClusterDrainStatus) DeepCopy ¶
func (in *ClusterDrainStatus) DeepCopy() *ClusterDrainStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDrainStatus.
func (*ClusterDrainStatus) DeepCopyInto ¶
func (in *ClusterDrainStatus) DeepCopyInto(out *ClusterDrainStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterSpec ¶
type ClusterSpec struct {
// Handle is a short, unique human-readable name used to identify this cluster.
// Does not necessarily map to the cloud resource name.
// +kubebuilder:validation:Optional
// +kubebuilder:example:=myclusterhandle
Handle *string `json:"handle,omitempty"`
// Tags used to filter clusters.
// +kubebuilder:validation:Optional
Tags map[string]string `json:"tags,omitempty"`
// Metadata for the cluster
// +kubebuilder:validation:Optional
Metadata *runtime.RawExtension `json:"metadata,omitempty"`
// Bindings contain read and write policies of this cluster
// +kubebuilder:validation:Optional
Bindings *Bindings `json:"bindings,omitempty"`
}
func (*ClusterSpec) DeepCopy ¶
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodexConfig ¶
type CodexConfig struct {
// ApiKeySecretRef references a Secret containing the Codex API key.
// Optional when aiProxy is enabled; authentication uses the Console deploy token instead.
// +kubebuilder:validation:Optional
ApiKeySecretRef *corev1.SecretKeySelector `json:"apiKeySecretRef,omitempty"`
// Model to use.
Model *string `json:"model,omitempty"`
// Method configures which OpenAI API Codex should use.
// AUTO omits wire_api and lets Codex choose. CHAT forces /chat/completions.
// RESPONSES forces /responses.
// +kubebuilder:validation:Enum=CHAT;RESPONSES;AUTO
// +kubebuilder:validation:Optional
Method *console.OpenAiMethod `json:"method,omitempty"`
// Endpoint is the base URL for the Codex API (supports OpenAI/Azure-compatible endpoints).
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint,omitempty"`
// Timeout bounds a single codex run invocation.
// +kubebuilder:validation:Optional
Timeout *metav1.Duration `json:"timeout,omitempty"`
}
func (*CodexConfig) DeepCopy ¶
func (in *CodexConfig) DeepCopy() *CodexConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodexConfig.
func (*CodexConfig) DeepCopyInto ¶
func (in *CodexConfig) DeepCopyInto(out *CodexConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CodexConfig) ToCodexConfigRaw ¶
func (in *CodexConfig) ToCodexConfigRaw(secretGetter func(corev1.SecretKeySelector) (*corev1.Secret, error)) (*CodexConfigRaw, error)
type CodexConfigRaw ¶
type CodexConfigRaw struct {
// ApiKey is the raw API key to use.
ApiKey string `json:"apiKey,omitempty"`
// Model to use.
Model *string `json:"model,omitempty"`
// Method configures which OpenAI API Codex should use.
// AUTO omits wire_api and lets Codex choose. CHAT forces /chat/completions.
// RESPONSES forces /responses.
// +kubebuilder:validation:Enum=CHAT;RESPONSES;AUTO
// +kubebuilder:validation:Optional
Method *console.OpenAiMethod `json:"method,omitempty"`
// Endpoint is the base URL for the Codex API (supports OpenAI/Azure-compatible endpoints).
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint,omitempty"`
// Timeout bounds a single codex run invocation.
// +kubebuilder:validation:Optional
Timeout *metav1.Duration `json:"timeout,omitempty"`
}
func (*CodexConfigRaw) DeepCopy ¶
func (in *CodexConfigRaw) DeepCopy() *CodexConfigRaw
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodexConfigRaw.
func (*CodexConfigRaw) DeepCopyInto ¶
func (in *CodexConfigRaw) DeepCopyInto(out *CodexConfigRaw)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionMessage ¶
type ConditionMessage string
func (ConditionMessage) String ¶
func (c ConditionMessage) String() string
type ConditionReason ¶
type ConditionReason string
const ( ReadyConditionReason ConditionReason = "Ready" ReadyConditionReasonError ConditionReason = "Error" ErrorConditionReason ConditionReason = "Error" SynchronizedConditionReason ConditionReason = "Synchronized" SynchronizedConditionReasonError ConditionReason = "Error" )
const ( DevboxImageContractViolatedReason ConditionReason = "ContractViolated" DevboxImageOutdatedReason ConditionReason = "Outdated" DevboxImageCurrentReason ConditionReason = "Current" DevboxPendingReason ConditionReason = "Pending" DevboxFailedReason ConditionReason = "Failed" DevboxAgentMissingReason ConditionReason = "AgentMissing" DevboxAgentProbeWarningReason ConditionReason = "AgentProbeWarning" DevboxMisconfiguredReason ConditionReason = "Misconfigured" DevboxSnapshotsRemainReason ConditionReason = "SnapshotsRemain" DevboxInstancesRunningReason ConditionReason = "InstancesRunning" )
func (ConditionReason) String ¶
func (c ConditionReason) String() string
type ConditionType ¶
type ConditionType string
const ( ReadonlyConditionType ConditionType = "Readonly" ReadyConditionType ConditionType = "Ready" SynchronizedConditionType ConditionType = "Synchronized" VirtualClusterConditionType ConditionType = "VirtualCluster" AgentConditionType ConditionType = "Agent" )
const ( DevboxImageResolvedConditionType ConditionType = "ImageResolved" DevboxImageContractConditionType ConditionType = "ImageContract" DevboxImageOutdatedConditionType ConditionType = "ImageOutdated" DevboxWorkerPoolReadyConditionType ConditionType = "WorkerPoolReady" DevboxTemplateReadyConditionType ConditionType = "TemplateReady" DevboxAgentProbeConditionType ConditionType = "AgentProbe" DevboxGatewayReadyConditionType ConditionType = "GatewayReady" DevboxSubstrateInstallConditionType ConditionType = "SubstrateInstall" DevboxDrainingConditionType ConditionType = "Draining" // DevboxEnvConditionType is False while a secret env var can't be resolved; instances start without it. DevboxEnvConditionType ConditionType = "Env" )
func (ConditionType) String ¶
func (c ConditionType) String() string
type CostProvider ¶ added in v0.6.45
type CostProvider string
CostProvider identifies which cost allocation backend to query.
const ( CostProviderKubecost CostProvider = "Kubecost" CostProviderOpenCost CostProvider = "OpenCost" )
type CustomHealth ¶
type CustomHealth struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CustomHealthSpec `json:"spec,omitempty"`
Status CustomHealthStatus `json:"status,omitempty"`
}
CustomHealth is the Schema for the HealthConverts API
func (*CustomHealth) DeepCopy ¶
func (in *CustomHealth) DeepCopy() *CustomHealth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomHealth.
func (*CustomHealth) DeepCopyInto ¶
func (in *CustomHealth) DeepCopyInto(out *CustomHealth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomHealth) DeepCopyObject ¶
func (in *CustomHealth) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CustomHealth) SetCondition ¶
func (c *CustomHealth) SetCondition(condition metav1.Condition)
type CustomHealthList ¶
type CustomHealthList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []CustomHealth `json:"items"`
}
CustomHealthList contains a list of CustomHealth
func (*CustomHealthList) DeepCopy ¶
func (in *CustomHealthList) DeepCopy() *CustomHealthList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomHealthList.
func (*CustomHealthList) DeepCopyInto ¶
func (in *CustomHealthList) DeepCopyInto(out *CustomHealthList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomHealthList) DeepCopyObject ¶
func (in *CustomHealthList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CustomHealthSpec ¶
type CustomHealthSpec struct {
// Script is a Lua health-assessment script. The target resource is available as the global `Obj`.
//
// The script must assign a Lua table to the global `healthStatus`; a Lua `return { ... }` is not consumed.
// The table uses `status` and an optional `message`, for example: `healthStatus = { status = "Healthy", message = "resource is ready" }`.
//
// Supported/intended status values are `Healthy`, `Degraded`, `Paused`, `Unknown`, `Progressing`, `Suspended`, and `Missing`.
//
// See https://docs.plural.sh/plural-features/continuous-deployment/deployment-operator/custom-health for the full guide.
Script string `json:"script,omitempty"`
// +kubebuilder:validation:Optional
Group string `json:"group,omitempty"`
// +kubebuilder:validation:Optional
Version string `json:"version,omitempty"`
// +kubebuilder:validation:Optional
Kind string `json:"kind,omitempty"`
}
CustomHealthSpec defines the desired state of CustomHealth
func (*CustomHealthSpec) DeepCopy ¶
func (in *CustomHealthSpec) DeepCopy() *CustomHealthSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomHealthSpec.
func (*CustomHealthSpec) DeepCopyInto ¶
func (in *CustomHealthSpec) DeepCopyInto(out *CustomHealthSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomHealthStatus ¶
type CustomHealthStatus struct {
// Represents the observations of a HealthConvert current state.
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
CustomHealthStatus defines the observed state of CustomHealth
func (*CustomHealthStatus) DeepCopy ¶
func (in *CustomHealthStatus) DeepCopy() *CustomHealthStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomHealthStatus.
func (*CustomHealthStatus) DeepCopyInto ¶
func (in *CustomHealthStatus) DeepCopyInto(out *CustomHealthStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomInsightPriority ¶ added in v0.6.72
type CustomInsightPriority struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CustomInsightPrioritySpec `json:"spec,omitempty"`
Status CustomInsightPriorityStatus `json:"status,omitempty"`
}
CustomInsightPriority sets the priority of failing objects in the cluster insights and the cluster health score.
func (*CustomInsightPriority) DeepCopy ¶ added in v0.6.72
func (in *CustomInsightPriority) DeepCopy() *CustomInsightPriority
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomInsightPriority.
func (*CustomInsightPriority) DeepCopyInto ¶ added in v0.6.72
func (in *CustomInsightPriority) DeepCopyInto(out *CustomInsightPriority)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomInsightPriority) DeepCopyObject ¶ added in v0.6.72
func (in *CustomInsightPriority) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CustomInsightPriority) RemoveCondition ¶ added in v0.6.72
func (c *CustomInsightPriority) RemoveCondition(conditionType ConditionType)
func (*CustomInsightPriority) SetCondition ¶ added in v0.6.72
func (c *CustomInsightPriority) SetCondition(condition metav1.Condition)
type CustomInsightPriorityList ¶ added in v0.6.72
type CustomInsightPriorityList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []CustomInsightPriority `json:"items"`
}
CustomInsightPriorityList contains a list of CustomInsightPriority
func (*CustomInsightPriorityList) DeepCopy ¶ added in v0.6.72
func (in *CustomInsightPriorityList) DeepCopy() *CustomInsightPriorityList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomInsightPriorityList.
func (*CustomInsightPriorityList) DeepCopyInto ¶ added in v0.6.72
func (in *CustomInsightPriorityList) DeepCopyInto(out *CustomInsightPriorityList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomInsightPriorityList) DeepCopyObject ¶ added in v0.6.72
func (in *CustomInsightPriorityList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CustomInsightPrioritySpec ¶ added in v0.6.72
type CustomInsightPrioritySpec struct {
// Target selects the failing objects this script sets the priority of.
// +kubebuilder:validation:Optional
Target InsightTarget `json:"target,omitempty"`
// Precedence decides which script owns an object that several targets match: the highest wins and ties are
// broken by name. A script never sees objects it does not own, and scripts are not chained.
// +kubebuilder:validation:Optional
Precedence int `json:"precedence,omitempty"`
// Engine the script is written for.
// +kubebuilder:default=python
// +kubebuilder:validation:Optional
Engine InsightEngine `json:"engine,omitempty"`
// Script defines `evaluate(input)`, called with the objects this script owns in `input["rows"]`, and returns a
// dictionary from the `uid` of a row to `{"priority": "LOW|MEDIUM|HIGH|CRITICAL|IGNORE", "reason": "..."}`.
// Rows that are left out keep their built-in priority, IGNORE removes a row from the insights and the cluster health score.
//
// Objects annotated with deployments.plural.sh/insight-priority are decided by the annotation and never reach the script.
//
// See https://docs.plural.sh/plural-features/continuous-deployment/deployment-operator/insight-priority for the full guide.
Script string `json:"script"`
}
CustomInsightPrioritySpec defines how the insight priority of failing objects is decided.
func (*CustomInsightPrioritySpec) DeepCopy ¶ added in v0.6.72
func (in *CustomInsightPrioritySpec) DeepCopy() *CustomInsightPrioritySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomInsightPrioritySpec.
func (*CustomInsightPrioritySpec) DeepCopyInto ¶ added in v0.6.72
func (in *CustomInsightPrioritySpec) DeepCopyInto(out *CustomInsightPrioritySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomInsightPriorityStatus ¶ added in v0.6.72
type CustomInsightPriorityStatus struct {
// LastEvaluation is the outcome of the last evaluation, empty until the script ran.
// +kubebuilder:validation:Optional
LastEvaluation *InsightEvaluation `json:"lastEvaluation,omitempty"`
// LastError is the error of the last evaluation, empty when it succeeded.
// +kubebuilder:validation:Optional
LastError string `json:"lastError,omitempty"`
// Represents the observations of a CustomInsightPriority's current state.
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
CustomInsightPriorityStatus defines the observed state of CustomInsightPriority
func (*CustomInsightPriorityStatus) DeepCopy ¶ added in v0.6.72
func (in *CustomInsightPriorityStatus) DeepCopy() *CustomInsightPriorityStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomInsightPriorityStatus.
func (*CustomInsightPriorityStatus) DeepCopyInto ¶ added in v0.6.72
func (in *CustomInsightPriorityStatus) DeepCopyInto(out *CustomInsightPriorityStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxAWSIdentity ¶ added in v0.6.76
type DevboxAWSIdentity struct {
// +kubebuilder:validation:Required
// +kubebuilder:validation:Pattern=`^arn:aws[a-zA-Z-]*:iam::[0-9]{12}:role/.+$`
RoleArn string `json:"roleArn"`
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum=900
// +kubebuilder:validation:Maximum=43200
DurationSeconds *int32 `json:"durationSeconds,omitempty"`
// SessionPolicy is an inline IAM policy JSON further scoping the session.
// +kubebuilder:validation:Optional
SessionPolicy *string `json:"sessionPolicy,omitempty"`
}
func (*DevboxAWSIdentity) DeepCopy ¶ added in v0.6.76
func (in *DevboxAWSIdentity) DeepCopy() *DevboxAWSIdentity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxAWSIdentity.
func (*DevboxAWSIdentity) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxAWSIdentity) DeepCopyInto(out *DevboxAWSIdentity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxAgent ¶ added in v0.6.76
type DevboxAgent struct {
// Type of the harness.
// +kubebuilder:validation:Required
Type DevboxAgentType `json:"type"`
// Default marks the agent used when a workbench doesn't pick one.
// +kubebuilder:validation:Optional
Default *bool `json:"default,omitempty"`
// AdapterVersion pins the ACP adapter version. Defaults to the version shipped in the image.
// +kubebuilder:validation:Optional
AdapterVersion *string `json:"adapterVersion,omitempty"`
// Models is an allowlist of model ids. Empty allows every model the agent reports.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:MaxItems=64
Models []string `json:"models,omitempty"`
// DefaultModel is the model new sessions start on.
// +kubebuilder:validation:Optional
DefaultModel *string `json:"defaultModel,omitempty"`
// ACPV2 opts the harness into the ACP v2 protocol where the adapter supports it.
// +kubebuilder:validation:Optional
ACPV2 *bool `json:"acpV2,omitempty"`
}
DevboxAgent declares one supported harness. +kubebuilder:validation:XValidation:rule="!has(self.defaultModel) || !has(self.models) || size(self.models) == 0 || self.defaultModel in self.models",message="defaultModel must be one of models"
func (*DevboxAgent) DeepCopy ¶ added in v0.6.76
func (in *DevboxAgent) DeepCopy() *DevboxAgent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxAgent.
func (*DevboxAgent) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxAgent) DeepCopyInto(out *DevboxAgent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxAgentStatus ¶ added in v0.6.76
type DevboxAgentStatus struct {
Type DevboxAgentType `json:"type"`
// ProbeStatus is OK, FAILED or MISSING.
ProbeStatus string `json:"probeStatus"`
// +kubebuilder:validation:Optional
AdapterVersion *string `json:"adapterVersion,omitempty"`
// +kubebuilder:validation:Optional
ProbeError *string `json:"probeError,omitempty"`
}
func (*DevboxAgentStatus) DeepCopy ¶ added in v0.6.76
func (in *DevboxAgentStatus) DeepCopy() *DevboxAgentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxAgentStatus.
func (*DevboxAgentStatus) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxAgentStatus) DeepCopyInto(out *DevboxAgentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxAgentType ¶ added in v0.6.76
type DevboxAgentType string
DevboxAgentType is a coding-agent harness a devbox can run (section 4.2a). +kubebuilder:validation:Enum=claude;codex;opencode;gemini;pi
const ( DevboxAgentClaude DevboxAgentType = "claude" DevboxAgentCodex DevboxAgentType = "codex" DevboxAgentOpencode DevboxAgentType = "opencode" DevboxAgentGemini DevboxAgentType = "gemini" DevboxAgentPi DevboxAgentType = "pi" )
type DevboxAutonomy ¶ added in v0.6.76
type DevboxAutonomy struct {
// Default is the level new threads start at, lowered to max and to what the agent supports. Defaults to auto.
// +kubebuilder:validation:Optional
Default *DevboxAutonomyLevel `json:"default,omitempty"`
// Max is the highest level a thread can use. Defaults to auto.
// +kubebuilder:validation:Optional
Max *DevboxAutonomyLevel `json:"max,omitempty"`
}
+kubebuilder:validation:XValidation:rule="!has(self.default) || !has(self.max) || (self.default == 'manual' || self.max == 'full' || self.default == self.max)",message="default must not be above max"
func (*DevboxAutonomy) DeepCopy ¶ added in v0.6.76
func (in *DevboxAutonomy) DeepCopy() *DevboxAutonomy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxAutonomy.
func (*DevboxAutonomy) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxAutonomy) DeepCopyInto(out *DevboxAutonomy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxAutonomyLevel ¶ added in v0.6.76
type DevboxAutonomyLevel string
DevboxAutonomyLevel is one of:
- manual: every permission request goes to a human.
- auto: the agent's own reviewer approves what it can (Claude's auto mode, Codex's guardian); the rest goes to a human.
- full: everything is approved without asking.
+kubebuilder:validation:Enum=manual;auto;full
const ( DevboxAutonomyManual DevboxAutonomyLevel = "manual" DevboxAutonomyAuto DevboxAutonomyLevel = "auto" DevboxAutonomyFull DevboxAutonomyLevel = "full" )
type DevboxAzureIdentity ¶ added in v0.6.76
type DevboxAzureIdentity struct {
// +kubebuilder:validation:Required
TenantID string `json:"tenantId"`
// +kubebuilder:validation:Required
ClientID string `json:"clientId"`
}
func (*DevboxAzureIdentity) DeepCopy ¶ added in v0.6.76
func (in *DevboxAzureIdentity) DeepCopy() *DevboxAzureIdentity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxAzureIdentity.
func (*DevboxAzureIdentity) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxAzureIdentity) DeepCopyInto(out *DevboxAzureIdentity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxBrowser ¶ added in v0.6.76
type DevboxBrowser struct {
// +kubebuilder:validation:Optional
Enabled bool `json:"enabled,omitempty"`
}
func (*DevboxBrowser) DeepCopy ¶ added in v0.6.76
func (in *DevboxBrowser) DeepCopy() *DevboxBrowser
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxBrowser.
func (*DevboxBrowser) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxBrowser) DeepCopyInto(out *DevboxBrowser)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxCapacityStatus ¶ added in v0.6.76
type DevboxCapacityStatus struct {
// InstancesPerWorker is how many instances one worker hosts at once.
InstancesPerWorker int32 `json:"instancesPerWorker"`
// LimitedBy is the worker resource (cpu, memory or disk) that bounds InstancesPerWorker.
// +kubebuilder:validation:Optional
LimitedBy *string `json:"limitedBy,omitempty"`
// InstanceCPU and InstanceMemory are the limits each instance runs with.
InstanceCPU *resource.Quantity `json:"instanceCPU,omitempty"`
InstanceMemory *resource.Quantity `json:"instanceMemory,omitempty"`
// InstanceDisk is each instance's share of the worker's budgeted disk, when DiskSize is set.
// +kubebuilder:validation:Optional
InstanceDisk *resource.Quantity `json:"instanceDisk,omitempty"`
// Workers are the managed pool's schedulable workers, DrainingWorkers those being removed.
// +kubebuilder:validation:Optional
Workers int32 `json:"workers,omitempty"`
// +kubebuilder:validation:Optional
DrainingWorkers int32 `json:"drainingWorkers,omitempty"`
// RunningInstances are instances placed on the managed pool's schedulable workers.
// +kubebuilder:validation:Optional
RunningInstances int32 `json:"runningInstances,omitempty"`
// AdditionalFreeInstances are the instance slots free on AdditionalPools.
// +kubebuilder:validation:Optional
AdditionalFreeInstances int32 `json:"additionalFreeInstances,omitempty"`
// DesiredWorkers is the autoscaler's target for the managed pool.
// +kubebuilder:validation:Optional
DesiredWorkers *int32 `json:"desiredWorkers,omitempty"`
// +kubebuilder:validation:Optional
LastScaleTime *metav1.Time `json:"lastScaleTime,omitempty"`
}
DevboxCapacityStatus reports how instances are sized from the WorkerPool and how the autoscaler sees it.
func (*DevboxCapacityStatus) DeepCopy ¶ added in v0.6.76
func (in *DevboxCapacityStatus) DeepCopy() *DevboxCapacityStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxCapacityStatus.
func (*DevboxCapacityStatus) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxCapacityStatus) DeepCopyInto(out *DevboxCapacityStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxCloudIdentity ¶ added in v0.6.76
type DevboxCloudIdentity struct {
// +kubebuilder:validation:Required
// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
// +kubebuilder:validation:MaxLength=63
Name string `json:"name"`
// Default marks the identity instances get when a workbench doesn't pick one.
// +kubebuilder:validation:Optional
Default *bool `json:"default,omitempty"`
// +kubebuilder:validation:Optional
AWS *DevboxAWSIdentity `json:"aws,omitempty"`
// +kubebuilder:validation:Optional
GCP *DevboxGCPIdentity `json:"gcp,omitempty"`
// +kubebuilder:validation:Optional
Azure *DevboxAzureIdentity `json:"azure,omitempty"`
// ExtraHosts are API hosts allowlisted only when this identity is attached.
// +kubebuilder:validation:Optional
ExtraHosts []string `json:"extraHosts,omitempty"`
}
DevboxCloudIdentity is one named cloud identity. Exactly one provider must be set. +kubebuilder:validation:XValidation:rule="[has(self.aws), has(self.gcp), has(self.azure)].filter(x, x).size() == 1",message="exactly one of aws, gcp or azure must be set"
func (*DevboxCloudIdentity) DeepCopy ¶ added in v0.6.76
func (in *DevboxCloudIdentity) DeepCopy() *DevboxCloudIdentity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxCloudIdentity.
func (*DevboxCloudIdentity) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxCloudIdentity) DeepCopyInto(out *DevboxCloudIdentity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxCloudProviders ¶ added in v0.6.76
type DevboxCloudProviders struct {
// AWS: the regional and global service endpoints under amazonaws.com and api.aws.
// +kubebuilder:validation:Optional
AWS *bool `json:"aws,omitempty"`
// GCP: the Google APIs under googleapis.com and Google's OAuth endpoint.
// +kubebuilder:validation:Optional
GCP *bool `json:"gcp,omitempty"`
// Azure: Resource Manager, Entra ID sign-in, Microsoft Graph, Key Vault and Storage.
// +kubebuilder:validation:Optional
Azure *bool `json:"azure,omitempty"`
}
DevboxCloudProviders enables egress to each cloud's API endpoints (see CloudProviderHosts).
func (*DevboxCloudProviders) DeepCopy ¶ added in v0.6.76
func (in *DevboxCloudProviders) DeepCopy() *DevboxCloudProviders
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxCloudProviders.
func (*DevboxCloudProviders) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxCloudProviders) DeepCopyInto(out *DevboxCloudProviders)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxECRRegistries ¶ added in v0.6.76
type DevboxECRRegistries struct {
// Regions opens, per region, the registry API (<account>.dkr.ecr.<region>.amazonaws.com), the ECR API
// that issues login tokens, and the S3 bucket image layers download from.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:MaxItems=32
// +kubebuilder:validation:items:Pattern=`^[a-z]{2}(-[a-z]+)+-[0-9]+$`
Regions []string `json:"regions,omitempty"`
}
DevboxECRRegistries enables egress to private Amazon ECR registries. ECR hosts are regional, so each region is listed. Pulling still needs credentials, such as an AWS cloud identity and `aws ecr get-login-password`.
func (*DevboxECRRegistries) DeepCopy ¶ added in v0.6.76
func (in *DevboxECRRegistries) DeepCopy() *DevboxECRRegistries
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxECRRegistries.
func (*DevboxECRRegistries) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxECRRegistries) DeepCopyInto(out *DevboxECRRegistries)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxEnvVar ¶ added in v0.6.76
type DevboxEnvVar struct {
// +kubebuilder:validation:Required
// +kubebuilder:validation:Pattern=`^[A-Za-z_][A-Za-z0-9_]*$`
// +kubebuilder:validation:MaxLength=256
// +kubebuilder:validation:XValidation:rule="!self.startsWith('DEVBOX_')",message="DEVBOX_ variables are reserved"
Name string `json:"name"`
// +kubebuilder:validation:Optional
Value *string `json:"value,omitempty"`
// +kubebuilder:validation:Optional
ValueFrom *DevboxEnvVarSource `json:"valueFrom,omitempty"`
}
+kubebuilder:validation:XValidation:rule="has(self.value) != has(self.valueFrom)",message="set exactly one of value and valueFrom"
func (*DevboxEnvVar) DeepCopy ¶ added in v0.6.76
func (in *DevboxEnvVar) DeepCopy() *DevboxEnvVar
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxEnvVar.
func (*DevboxEnvVar) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxEnvVar) DeepCopyInto(out *DevboxEnvVar)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxEnvVarSource ¶ added in v0.6.76
type DevboxEnvVarSource struct {
// +kubebuilder:validation:Required
SecretKeyRef DevboxSecretKeySelector `json:"secretKeyRef"`
}
func (*DevboxEnvVarSource) DeepCopy ¶ added in v0.6.76
func (in *DevboxEnvVarSource) DeepCopy() *DevboxEnvVarSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxEnvVarSource.
func (*DevboxEnvVarSource) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxEnvVarSource) DeepCopyInto(out *DevboxEnvVarSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxGCPIdentity ¶ added in v0.6.76
type DevboxGCPIdentity struct {
// WorkloadIdentityProvider is the full provider resource name
// (projects/<n>/locations/global/workloadIdentityPools/<pool>/providers/<provider>).
// +kubebuilder:validation:Required
WorkloadIdentityProvider string `json:"workloadIdentityProvider"`
// ServiceAccount is the email of the service account to impersonate.
// +kubebuilder:validation:Required
ServiceAccount string `json:"serviceAccount"`
}
func (*DevboxGCPIdentity) DeepCopy ¶ added in v0.6.76
func (in *DevboxGCPIdentity) DeepCopy() *DevboxGCPIdentity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxGCPIdentity.
func (*DevboxGCPIdentity) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxGCPIdentity) DeepCopyInto(out *DevboxGCPIdentity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxHTTPAllowlistEntry ¶ added in v0.6.76
type DevboxHTTPAllowlistEntry struct {
// Host is a hostname or a *.suffix wildcard.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Host string `json:"host"`
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=65535
// +kubebuilder:default=443
Port *int32 `json:"port,omitempty"`
// Passthrough tunnels TLS without interception (no credential injection or request authz).
// +kubebuilder:validation:Optional
Passthrough *bool `json:"passthrough,omitempty"`
}
func (*DevboxHTTPAllowlistEntry) DeepCopy ¶ added in v0.6.76
func (in *DevboxHTTPAllowlistEntry) DeepCopy() *DevboxHTTPAllowlistEntry
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxHTTPAllowlistEntry.
func (*DevboxHTTPAllowlistEntry) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxHTTPAllowlistEntry) DeepCopyInto(out *DevboxHTTPAllowlistEntry)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxIdlePolicy ¶ added in v0.6.76
type DevboxIdlePolicy struct {
// ActivityWindow is how far back activity counts toward keeping an instance awake.
// +kubebuilder:validation:Optional
// +kubebuilder:default="2m"
ActivityWindow *metav1.Duration `json:"activityWindow,omitempty"`
// CPUThreshold is the CPU utilization above which an instance counts as active, e.g. "5%".
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Pattern=`^([0-9]|[1-9][0-9]|100)(\.[0-9]+)?%$`
// +kubebuilder:default="5%"
CPUThreshold *string `json:"cpuThreshold,omitempty"`
// GracePeriod is how long an instance stays idle before it is suspended.
// +kubebuilder:validation:Optional
// +kubebuilder:default="5m"
GracePeriod *metav1.Duration `json:"gracePeriod,omitempty"`
// MaxDeferral bounds how long agents can defer a suspension.
// +kubebuilder:validation:Optional
// +kubebuilder:default="12h"
MaxDeferral *metav1.Duration `json:"maxDeferral,omitempty"`
// MaxContinuousAwake bounds how long an instance can stay awake.
// +kubebuilder:validation:Optional
// +kubebuilder:default="24h"
MaxContinuousAwake *metav1.Duration `json:"maxContinuousAwake,omitempty"`
// CompleteAfter is how long a suspended instance is kept before it is completed.
// +kubebuilder:validation:Optional
// +kubebuilder:default="336h"
CompleteAfter *metav1.Duration `json:"completeAfter,omitempty"`
}
func (*DevboxIdlePolicy) DeepCopy ¶ added in v0.6.76
func (in *DevboxIdlePolicy) DeepCopy() *DevboxIdlePolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxIdlePolicy.
func (*DevboxIdlePolicy) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxIdlePolicy) DeepCopyInto(out *DevboxIdlePolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxImageUpdateMode ¶ added in v0.6.76
type DevboxImageUpdateMode string
DevboxImageUpdateMode controls whether the operator re-resolves spec.image. +kubebuilder:validation:Enum=pinned;poll
const ( // DevboxImageUpdatePinned keeps the resolved digest until the spec changes. DevboxImageUpdatePinned DevboxImageUpdateMode = "pinned" // DevboxImageUpdatePoll re-resolves the tag every interval and rolls a new revision when the digest changes. DevboxImageUpdatePoll DevboxImageUpdateMode = "poll" )
type DevboxImageUpdatePolicy ¶ added in v0.6.76
type DevboxImageUpdatePolicy struct {
// Mode is pinned or poll.
// +kubebuilder:validation:Optional
Mode *DevboxImageUpdateMode `json:"mode,omitempty"`
// Interval between re-resolutions in poll mode. Defaults to 1h.
// +kubebuilder:validation:Optional
Interval *metav1.Duration `json:"interval,omitempty"`
}
func (*DevboxImageUpdatePolicy) DeepCopy ¶ added in v0.6.76
func (in *DevboxImageUpdatePolicy) DeepCopy() *DevboxImageUpdatePolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxImageUpdatePolicy.
func (*DevboxImageUpdatePolicy) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxImageUpdatePolicy) DeepCopyInto(out *DevboxImageUpdatePolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxOCIRegistries ¶ added in v0.6.76
type DevboxOCIRegistries struct {
// DockerHub: docker.io, its auth service and its Cloudflare blob CDN. Unqualified image names resolve here.
// +kubebuilder:validation:Optional
// +kubebuilder:default=true
DockerHub *bool `json:"dockerHub,omitempty"`
// GitHub: ghcr.io and its blob host.
// +kubebuilder:validation:Optional
// +kubebuilder:default=true
GitHub *bool `json:"github,omitempty"`
// Quay: quay.io, its CDN and its S3 blob bucket.
// +kubebuilder:validation:Optional
Quay *bool `json:"quay,omitempty"`
// Google: Container Registry (gcr.io and its regional hosts) and Artifact Registry (*.pkg.dev).
// +kubebuilder:validation:Optional
Google *bool `json:"google,omitempty"`
// Microsoft: the Microsoft Artifact Registry, mcr.microsoft.com, and its regional data endpoints.
// +kubebuilder:validation:Optional
Microsoft *bool `json:"microsoft,omitempty"`
// Kubernetes: registry.k8s.io and the Artifact Registry mirrors it redirects to. From AWS addresses it
// redirects to regional S3 buckets instead, which need httpAllowlist entries.
// +kubebuilder:validation:Optional
Kubernetes *bool `json:"kubernetes,omitempty"`
// ECR opens private Amazon ECR registries, for any account, in the listed regions.
// +kubebuilder:validation:Optional
ECR *DevboxECRRegistries `json:"ecr,omitempty"`
}
DevboxOCIRegistries enables egress to each container registry's API and blob hosts (see OCIRegistryHosts).
func (*DevboxOCIRegistries) DeepCopy ¶ added in v0.6.76
func (in *DevboxOCIRegistries) DeepCopy() *DevboxOCIRegistries
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxOCIRegistries.
func (*DevboxOCIRegistries) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxOCIRegistries) DeepCopyInto(out *DevboxOCIRegistries)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxPackageServers ¶ added in v0.6.76
type DevboxPackageServers struct {
// Go: proxy.golang.org and sum.golang.org.
// +kubebuilder:validation:Optional
// +kubebuilder:default=true
Go *bool `json:"go,omitempty"`
// Rust: crates.io and rustup's static.rust-lang.org.
// +kubebuilder:validation:Optional
// +kubebuilder:default=true
Rust *bool `json:"rust,omitempty"`
// JavaScript: the npm and yarn registries and nodejs.org.
// +kubebuilder:validation:Optional
// +kubebuilder:default=true
JavaScript *bool `json:"javascript,omitempty"`
// Java: Maven Central and the Gradle plugin portal and distributions.
// +kubebuilder:validation:Optional
// +kubebuilder:default=true
Java *bool `json:"java,omitempty"`
// Elixir: hex.pm and its package and build repositories.
// +kubebuilder:validation:Optional
// +kubebuilder:default=true
Elixir *bool `json:"elixir,omitempty"`
// Python: PyPI.
// +kubebuilder:validation:Optional
// +kubebuilder:default=true
Python *bool `json:"python,omitempty"`
// Ruby: rubygems.org.
// +kubebuilder:validation:Optional
Ruby *bool `json:"ruby,omitempty"`
// PHP: Packagist.
// +kubebuilder:validation:Optional
PHP *bool `json:"php,omitempty"`
// Dotnet: NuGet.
// +kubebuilder:validation:Optional
Dotnet *bool `json:"dotnet,omitempty"`
}
DevboxPackageServers enables egress to each ecosystem's public registries (see PackageServerHosts).
func (*DevboxPackageServers) DeepCopy ¶ added in v0.6.76
func (in *DevboxPackageServers) DeepCopy() *DevboxPackageServers
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxPackageServers.
func (*DevboxPackageServers) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxPackageServers) DeepCopyInto(out *DevboxPackageServers)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxResources ¶ added in v0.6.76
type DevboxResources struct {
// CPU limit per instance. When the WorkerPool has limits this is the minimum, and instances get an even share
// of the worker's CPU.
// +kubebuilder:validation:Optional
// +kubebuilder:default="2"
CPU *resource.Quantity `json:"cpu,omitempty"`
// Memory limit per instance, a minimum in the same way as CPU.
// +kubebuilder:validation:Optional
// +kubebuilder:default="4Gi"
Memory *resource.Quantity `json:"memory,omitempty"`
// Disk is the size of the durable /home/dev workspace volume. Each instance slot is budgeted Disk plus Memory
// for its own snapshot and Memory for each of the WorkerPool's SuspendedSnapshotsPerInstance.
// +kubebuilder:validation:Optional
// +kubebuilder:default="20Gi"
Disk *resource.Quantity `json:"disk,omitempty"`
}
func (*DevboxResources) DeepCopy ¶ added in v0.6.76
func (in *DevboxResources) DeepCopy() *DevboxResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxResources.
func (*DevboxResources) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxResources) DeepCopyInto(out *DevboxResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxRevision ¶ added in v0.6.76
type DevboxRevision struct {
Revision int64 `json:"revision"`
// Name is the ActorTemplate name.
Name string `json:"name"`
// Hash of the inputs that produced this revision.
Hash string `json:"hash"`
Image string `json:"image"`
Phase DevboxRevisionPhase `json:"phase"`
// +kubebuilder:validation:Optional
GoldenTag *string `json:"goldenTag,omitempty"`
// +kubebuilder:validation:Optional
Message *string `json:"message,omitempty"`
// +kubebuilder:validation:Optional
CreatedAt *metav1.Time `json:"createdAt,omitempty"`
}
func (*DevboxRevision) DeepCopy ¶ added in v0.6.76
func (in *DevboxRevision) DeepCopy() *DevboxRevision
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxRevision.
func (*DevboxRevision) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxRevision) DeepCopyInto(out *DevboxRevision)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxRevisionPhase ¶ added in v0.6.76
type DevboxRevisionPhase string
DevboxRevisionPhase is the lifecycle of one ActorTemplate revision.
const ( // DevboxRevisionBuilding means the ActorTemplate exists and its golden snapshot is not ready yet. DevboxRevisionBuilding DevboxRevisionPhase = "Building" // DevboxRevisionProbing means the golden snapshot is ready and the agent probe is running. DevboxRevisionProbing DevboxRevisionPhase = "Probing" // DevboxRevisionReady means the revision passed the probe and may serve new instances. DevboxRevisionReady DevboxRevisionPhase = "Ready" // DevboxRevisionFailed is terminal: the golden boot, image contract or agent probe failed. DevboxRevisionFailed DevboxRevisionPhase = "Failed" // DevboxRevisionRetired means a newer revision is current, or its golden boot lost its worker and it is rebuilt as // a new revision; the revision stays until nothing references it. DevboxRevisionRetired DevboxRevisionPhase = "Retired" )
type DevboxRunner ¶ added in v0.6.76
type DevboxRunner struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DevboxRunnerSpec `json:"spec,omitempty"`
Status DevboxRunnerStatus `json:"status,omitempty"`
}
DevboxRunner is the Schema for the devboxrunners API. It defines one kind of devbox (image, agents, limits, egress) backed by a Substrate WorkerPool and ActorTemplate revisions.
func (*DevboxRunner) ConsoleID ¶ added in v0.6.76
func (in *DevboxRunner) ConsoleID() *string
ConsoleID implements [PluralResource] interface
func (*DevboxRunner) ConsoleName ¶ added in v0.6.76
func (in *DevboxRunner) ConsoleName() string
func (*DevboxRunner) DeepCopy ¶ added in v0.6.76
func (in *DevboxRunner) DeepCopy() *DevboxRunner
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxRunner.
func (*DevboxRunner) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxRunner) DeepCopyInto(out *DevboxRunner)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DevboxRunner) DeepCopyObject ¶ added in v0.6.76
func (in *DevboxRunner) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DevboxRunner) DefaultAgent ¶ added in v0.6.76
func (in *DevboxRunner) DefaultAgent() *DevboxAgent
DefaultAgent returns the agent marked default, or nil when validation was bypassed.
func (*DevboxRunner) LatestRevision ¶ added in v0.6.76
func (in *DevboxRunner) LatestRevision() *DevboxRevision
LatestRevision returns the newest revision regardless of phase, or nil.
func (*DevboxRunner) RevisionByNumber ¶ added in v0.6.76
func (in *DevboxRunner) RevisionByNumber(revision int64) *DevboxRevision
RevisionByNumber returns the status entry for a revision, or nil.
func (*DevboxRunner) SetCondition ¶ added in v0.6.76
func (in *DevboxRunner) SetCondition(condition metav1.Condition)
func (*DevboxRunner) UpdateMode ¶ added in v0.6.76
func (in *DevboxRunner) UpdateMode(image string) DevboxImageUpdateMode
UpdateMode returns the effective image update mode for the given image reference.
type DevboxRunnerBindings ¶ added in v0.6.76
type DevboxRunnerBindings struct {
// Create bindings control who can attach this devbox to a workbench and start instances on it.
// Only users and groups resolvable by userEmail or groupName apply. If none are set, console falls
// back to its global create policy, which admins always pass.
// +kubebuilder:validation:Optional
Create []Binding `json:"create,omitempty"`
}
func (*DevboxRunnerBindings) DeepCopy ¶ added in v0.6.76
func (in *DevboxRunnerBindings) DeepCopy() *DevboxRunnerBindings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxRunnerBindings.
func (*DevboxRunnerBindings) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxRunnerBindings) DeepCopyInto(out *DevboxRunnerBindings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxRunnerList ¶ added in v0.6.76
type DevboxRunnerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DevboxRunner `json:"items"`
}
DevboxRunnerList contains a list of DevboxRunner
func (*DevboxRunnerList) DeepCopy ¶ added in v0.6.76
func (in *DevboxRunnerList) DeepCopy() *DevboxRunnerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxRunnerList.
func (*DevboxRunnerList) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxRunnerList) DeepCopyInto(out *DevboxRunnerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DevboxRunnerList) DeepCopyObject ¶ added in v0.6.76
func (in *DevboxRunnerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DevboxRunnerSpec ¶ added in v0.6.76
type DevboxRunnerSpec struct {
// Name of the Devbox in console. Defaults to metadata.name.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty"`
// Image is the devbox image. Defaults to ghcr.io/pluralsh/devbox-fat at the operator's version;
// ghcr.io/pluralsh/devbox-minimal is the lean alternative. Custom images must meet the image
// contract (sh.plural.devbox/contract=v1 label, devbox-daemon entrypoint, UID 1000) and are
// normally built FROM one of these.
// +kubebuilder:validation:Optional
Image *string `json:"image,omitempty"`
// ImageUpdatePolicy controls re-resolution of spec.image. Defaults to pinned for digest
// references and to poll every hour for tag references.
// +kubebuilder:validation:Optional
ImageUpdatePolicy *DevboxImageUpdatePolicy `json:"imageUpdatePolicy,omitempty"`
// ImagePullSecrets are dockerconfigjson secrets used only to resolve spec.image to a digest.
// Nodes pull with their own credentials (Substrate's image credential provider).
// +kubebuilder:validation:Optional
ImagePullSecrets []corev1.SecretReference `json:"imagePullSecrets,omitempty"`
// Agents are the coding-agent harnesses this devbox supports. Exactly one must be the default.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=5
// +listType=map
// +listMapKey=type
// +kubebuilder:validation:XValidation:rule="self.filter(a, has(a.default) && a.default).size() == 1",message="exactly one agent must be marked default"
Agents []DevboxAgent `json:"agents"`
// Resources are the per-instance limits.
// +kubebuilder:validation:Optional
Resources *DevboxResources `json:"resources,omitempty"`
// WorkerPool sizes the Substrate WorkerPool backing this runner.
// +kubebuilder:validation:Optional
WorkerPool *DevboxWorkerPool `json:"workerPool,omitempty"`
// ScmConnections are names of console SCM connections instances may use for git credentials.
// +kubebuilder:validation:Optional
ScmConnections []string `json:"scmConnections,omitempty"`
// Bindings control who can use this devbox in console.
// +kubebuilder:validation:Optional
Bindings *DevboxRunnerBindings `json:"bindings,omitempty"`
// AllowedRepositories the git repositories allowed to be used with this devbox,
// with the same semantics as AgentRuntime.spec.allowedRepositories.
// +kubebuilder:validation:Optional
AllowedRepositories []string `json:"allowedRepositories,omitempty"`
// HTTPAllowlist are extra hosts instances may reach, on top of the built-in ones.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:MaxItems=256
HTTPAllowlist []DevboxHTTPAllowlistEntry `json:"httpAllowlist,omitempty"`
// PackageServers opens egress to public package registries by ecosystem. Go, Rust, JavaScript, Java, Elixir
// and Python are on unless set to false.
// +kubebuilder:validation:Optional
// +kubebuilder:default={}
PackageServers *DevboxPackageServers `json:"packageServers,omitempty"`
// CloudProviders opens egress to cloud providers' API endpoints. A provider is on when the runner has a cloud
// identity for it, unless set to false.
// +kubebuilder:validation:Optional
// +kubebuilder:default={}
CloudProviders *DevboxCloudProviders `json:"cloudProviders,omitempty"`
// OCIRegistries opens egress to public container registries, for pulling images with podman, docker,
// crane or helm. Docker Hub and GitHub Container Registry are on unless set to false.
// +kubebuilder:validation:Optional
// +kubebuilder:default={}
OCIRegistries *DevboxOCIRegistries `json:"ociRegistries,omitempty"`
// Env are environment variables for every process the box starts: agents, terminals and git. Plain values
// are part of the template, so changing them rolls a new revision. Secret values are read when an instance
// wakes and are never baked into the template, the golden snapshot or the workspace volume.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:MaxItems=128
// +listType=map
// +listMapKey=name
Env []DevboxEnvVar `json:"env,omitempty"`
// Browser enables the in-box headless browser.
// +kubebuilder:validation:Optional
Browser *DevboxBrowser `json:"browser,omitempty"`
// BootstrapScript runs once during the golden boot, so its results are baked into the snapshot.
// +kubebuilder:validation:Optional
BootstrapScript *string `json:"bootstrapScript,omitempty"`
// Mise is an inline mise.toml installed during the golden boot.
// +kubebuilder:validation:Optional
Mise *MiseSpec `json:"mise,omitempty"`
// IdlePolicy bounds idle suspension. Workbenches can only lower these values.
// +kubebuilder:validation:Optional
IdlePolicy *DevboxIdlePolicy `json:"idlePolicy,omitempty"`
// Autonomy sets how agents' permission requests are answered: the level new threads start at and the highest
// level users can switch a thread to. Defaults to auto for both, so full autonomy needs an explicit max: full.
// +kubebuilder:validation:Optional
Autonomy *DevboxAutonomy `json:"autonomy,omitempty"`
// CloudIdentities are named cloud identities instances can assume. At most one is the default.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:MaxItems=16
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:XValidation:rule="self.filter(i, has(i.default) && i.default).size() <= 1",message="at most one cloud identity can be marked default"
CloudIdentities []DevboxCloudIdentity `json:"cloudIdentities,omitempty"`
// Substrate overrides where the operator reaches the Substrate API and the identity it calls it as. The
// operator mints the token and reads the CA bundle from the cluster when it reconciles the runner, so
// nothing is mounted into the operator.
// +kubebuilder:validation:Optional
Substrate *DevboxSubstrate `json:"substrate,omitempty"`
}
DevboxRunnerSpec defines the desired state of DevboxRunner.
func (*DevboxRunnerSpec) AutonomyPolicy ¶ added in v0.6.76
func (in *DevboxRunnerSpec) AutonomyPolicy() (def, maxLevel DevboxAutonomyLevel)
AutonomyPolicy returns the effective policy: auto/auto when unset, with the default lowered to max.
func (*DevboxRunnerSpec) CloudProviderHosts ¶ added in v0.6.76
func (in *DevboxRunnerSpec) CloudProviderHosts() []string
CloudProviderHosts returns the API hosts the enabled clouds need, in a stable order. An unset cloud is on when a cloud identity targets it.
func (*DevboxRunnerSpec) DeepCopy ¶ added in v0.6.76
func (in *DevboxRunnerSpec) DeepCopy() *DevboxRunnerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxRunnerSpec.
func (*DevboxRunnerSpec) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxRunnerSpec) DeepCopyInto(out *DevboxRunnerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DevboxRunnerSpec) EgressPresetHosts ¶ added in v0.6.76
func (in *DevboxRunnerSpec) EgressPresetHosts() []string
EgressPresetHosts are every host the runner's presets open on 443: package servers, cloud providers and OCI registries.
func (*DevboxRunnerSpec) OCIRegistryHosts ¶ added in v0.6.76
func (in *DevboxRunnerSpec) OCIRegistryHosts() []string
OCIRegistryHosts returns the hosts the enabled container registries need, in a stable order without duplicates. Unset fields take the CRD defaults, so runners stored before the field existed behave the same.
func (*DevboxRunnerSpec) PackageServerHosts ¶ added in v0.6.76
func (in *DevboxRunnerSpec) PackageServerHosts() []string
PackageServerHosts returns the registry hosts the enabled ecosystems need, in a stable order. Unset fields take the CRD defaults, so runners stored before the field existed behave the same.
func (*DevboxRunnerSpec) SecretEnv ¶ added in v0.6.76
func (in *DevboxRunnerSpec) SecretEnv() bool
SecretEnv reports whether any env var comes from a Secret.
type DevboxRunnerStatus ¶ added in v0.6.76
type DevboxRunnerStatus struct {
Status `json:",inline"`
// ResolvedImage is spec.image pinned by digest.
// +kubebuilder:validation:Optional
ResolvedImage *string `json:"resolvedImage,omitempty"`
// ResolvedFrom is the image reference ResolvedImage was resolved from.
// +kubebuilder:validation:Optional
ResolvedFrom *string `json:"resolvedFrom,omitempty"`
// ImageResolvedAt is when spec.image was last resolved.
// +kubebuilder:validation:Optional
ImageResolvedAt *metav1.Time `json:"imageResolvedAt,omitempty"`
// DaemonVersion is the devbox-daemon version from the resolved image's labels.
// +kubebuilder:validation:Optional
DaemonVersion *string `json:"daemonVersion,omitempty"`
// Atespace is the Substrate atespace holding this runner's templates and instances.
// Atespace names are never reused, so it embeds part of the runner's UID.
// +kubebuilder:validation:Optional
Atespace *string `json:"atespace,omitempty"`
// WorkerPool is the namespaced name of the Substrate WorkerPool.
// +kubebuilder:validation:Optional
WorkerPool *string `json:"workerPool,omitempty"`
// AdditionalWorkerPools are the namespace/name of the AdditionalPools carrying the runner's worker selector.
// +kubebuilder:validation:Optional
AdditionalWorkerPools []string `json:"additionalWorkerPools,omitempty"`
// Capacity reports instance sizing and autoscaling.
// +kubebuilder:validation:Optional
Capacity *DevboxCapacityStatus `json:"capacity,omitempty"`
// TemplateRevision is the revision new instances start from.
// +kubebuilder:validation:Optional
TemplateRevision *int64 `json:"templateRevision,omitempty"`
// TemplateName is the ActorTemplate name of TemplateRevision.
// +kubebuilder:validation:Optional
TemplateName *string `json:"templateName,omitempty"`
// Revisions are the ActorTemplate revisions that still exist, newest first.
// +kubebuilder:validation:Optional
Revisions []DevboxRevision `json:"revisions,omitempty"`
// Agents is the probed agent catalog of the current revision.
// +kubebuilder:validation:Optional
Agents []DevboxAgentStatus `json:"agents,omitempty"`
// LastHeartbeat is the last successful console heartbeat.
// +kubebuilder:validation:Optional
LastHeartbeat *metav1.Time `json:"lastHeartbeat,omitempty"`
}
DevboxRunnerStatus defines the observed state of DevboxRunner.
func (*DevboxRunnerStatus) DeepCopy ¶ added in v0.6.76
func (in *DevboxRunnerStatus) DeepCopy() *DevboxRunnerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxRunnerStatus.
func (*DevboxRunnerStatus) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxRunnerStatus) DeepCopyInto(out *DevboxRunnerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxSandboxClass ¶ added in v0.6.76
type DevboxSandboxClass string
DevboxSandboxClass is the Substrate sandbox class backing the runner's WorkerPool. +kubebuilder:validation:Enum=gvisor;microvm
const ( DevboxSandboxGVisor DevboxSandboxClass = "gvisor" DevboxSandboxMicroVM DevboxSandboxClass = "microvm" )
type DevboxSecretKeySelector ¶ added in v0.6.76
type DevboxSecretKeySelector struct {
// Namespace of the Secret; defaults to the operator's namespace.
// +kubebuilder:validation:Optional
Namespace *string `json:"namespace,omitempty"`
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Key string `json:"key"`
}
func (*DevboxSecretKeySelector) DeepCopy ¶ added in v0.6.76
func (in *DevboxSecretKeySelector) DeepCopy() *DevboxSecretKeySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxSecretKeySelector.
func (*DevboxSecretKeySelector) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxSecretKeySelector) DeepCopyInto(out *DevboxSecretKeySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxSubstrate ¶ added in v0.6.76
type DevboxSubstrate struct {
// Address of ate-api-server. Defaults to the deployment-operator chart's devboxes.substrate.apiAddress.
// +kubebuilder:validation:Optional
Address *string `json:"address,omitempty"`
// ServiceAccountName is a ServiceAccount in the operator's namespace that the operator mints Substrate API
// tokens for. It must be a Substrate global owner, since it creates atespaces and drains workers. Defaults
// to the operator's own ServiceAccount.
// +kubebuilder:validation:Optional
ServiceAccountName *string `json:"serviceAccountName,omitempty"`
// CASignerName is the signer of the ClusterTrustBundles that verify ate-api-server's serving certificate.
// Defaults to servicedns.podcert.ate.dev/identity.
// +kubebuilder:validation:Optional
CASignerName *string `json:"caSignerName,omitempty"`
}
DevboxSubstrate locates the Substrate API credentials the operator loads for a runner.
func (*DevboxSubstrate) DeepCopy ¶ added in v0.6.76
func (in *DevboxSubstrate) DeepCopy() *DevboxSubstrate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxSubstrate.
func (*DevboxSubstrate) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxSubstrate) DeepCopyInto(out *DevboxSubstrate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxWorkerAutoscaling ¶ added in v0.6.76
type DevboxWorkerAutoscaling struct {
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum=0
// +kubebuilder:default=1
MinReplicas *int32 `json:"minReplicas,omitempty"`
// +kubebuilder:validation:Required
// +kubebuilder:validation:Minimum=1
MaxReplicas int32 `json:"maxReplicas"`
// SpareInstances is how many free instance slots are kept across the runner's pools, so a resume doesn't
// wait for a new worker (and node) to start.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum=0
// +kubebuilder:default=1
SpareInstances *int32 `json:"spareInstances,omitempty"`
// ScaleDownDelay is how long after the last scaling event idle workers are kept before being removed.
// +kubebuilder:validation:Optional
// +kubebuilder:default="10m"
ScaleDownDelay *metav1.Duration `json:"scaleDownDelay,omitempty"`
}
func (*DevboxWorkerAutoscaling) DeepCopy ¶ added in v0.6.76
func (in *DevboxWorkerAutoscaling) DeepCopy() *DevboxWorkerAutoscaling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxWorkerAutoscaling.
func (*DevboxWorkerAutoscaling) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxWorkerAutoscaling) DeepCopyInto(out *DevboxWorkerAutoscaling)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxWorkerPool ¶ added in v0.6.76
type DevboxWorkerPool struct {
// Replicas is the number of Substrate workers. Ignored when Autoscaling is set.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum=0
// +kubebuilder:default=1
Replicas *int32 `json:"replicas,omitempty"`
// Autoscaling lets the operator size the pool to demand: it keeps SpareInstances free instance slots and
// removes only workers that host no instance.
// +kubebuilder:validation:Optional
Autoscaling *DevboxWorkerAutoscaling `json:"autoscaling,omitempty"`
// DiskSize is the size of the disk backing /var/lib/ate on each worker's node (e.g. the devbox-nodes
// catalog's data disk). Unset leaves disk out of instance sizing.
// +kubebuilder:validation:Optional
DiskSize *resource.Quantity `json:"diskSize,omitempty"`
// DiskReservePercent of DiskSize is kept for the image cache and snapshot staging rather than budgeted to
// instances.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=90
// +kubebuilder:default=20
DiskReservePercent *int32 `json:"diskReservePercent,omitempty"`
// SuspendedSnapshotsPerInstance is how many suspended instances' snapshots each instance slot budgets disk
// for. A suspended instance frees its slot at once, but its snapshot stays on the node until Substrate
// detaches it (30 minutes by default), so heavy suspend and resume churn stacks snapshots on a full worker.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=10
// +kubebuilder:default=1
SuspendedSnapshotsPerInstance *int32 `json:"suspendedSnapshotsPerInstance,omitempty"`
// AdditionalPools are existing Substrate WorkerPools this runner's instances may also run on. The operator
// labels each with the runner's worker selector and removes the label when the pool leaves this list. They
// should run the same sandbox class as the runner, and their free capacity counts toward SpareInstances.
// +kubebuilder:validation:Optional
// +listType=map
// +listMapKey=name
// +listMapKey=namespace
AdditionalPools []DevboxWorkerPoolRef `json:"additionalPools,omitempty"`
// MaxInstances caps concurrently running instances in console. Unset means unlimited.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum=1
MaxInstances *int32 `json:"maxInstances,omitempty"`
// SandboxClass is the isolation technology. Immutable once the WorkerPool exists.
// +kubebuilder:validation:Optional
// +kubebuilder:default=gvisor
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="sandboxClass is immutable"
SandboxClass *DevboxSandboxClass `json:"sandboxClass,omitempty"`
// SandboxConfig names a Substrate sandbox class ConfigMap (WorkerPool sandboxClasses[].configRef).
// +kubebuilder:validation:Optional
SandboxConfig *string `json:"sandboxConfig,omitempty"`
// WorkerImage overrides the Substrate worker image configured on the operator for the sandbox class.
// +kubebuilder:validation:Optional
WorkerImage *string `json:"workerImage,omitempty"`
// Resources of each worker pod.
// +kubebuilder:validation:Optional
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`
// +kubebuilder:validation:Optional
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// NodeAffinity scheduling rules for the worker pods (WorkerPool template.nodeAffinity).
// +kubebuilder:validation:Optional
NodeAffinity *corev1.NodeAffinity `json:"nodeAffinity,omitempty"`
// +kubebuilder:validation:Optional
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
// PodAnnotations are added to the worker pods, e.g. karpenter.sh/do-not-disrupt. Keys in the ate.dev domain
// are reserved by Substrate.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:XValidation:rule="self.all(key, !key.startsWith('ate.dev/') && !key.contains('.ate.dev/'))",message="ate.dev and its subdomains are reserved"
PodAnnotations map[string]string `json:"podAnnotations,omitempty"`
// +kubebuilder:validation:Optional
PriorityClassName *string `json:"priorityClassName,omitempty"`
}
DevboxWorkerPool is the Substrate WorkerPool the operator runs for the runner. Each worker is expected to have a node to itself (requests close to the node's allocatable), so the pool's limits and DiskSize describe one node.
Instances are sized from the pool: the instances one worker hosts is the most that fit its CPU and memory limits and its DiskSize, given spec.resources as each instance's minimum, and every instance then gets an even share of the worker's CPU and memory. Substrate places instances by those limits, so a worker never hosts more instances than its disk was budgeted for. +kubebuilder:validation:XValidation:rule="!has(self.autoscaling) || !has(self.autoscaling.minReplicas) || self.autoscaling.minReplicas <= self.autoscaling.maxReplicas",message="autoscaling.minReplicas must not exceed maxReplicas"
func (*DevboxWorkerPool) DeepCopy ¶ added in v0.6.76
func (in *DevboxWorkerPool) DeepCopy() *DevboxWorkerPool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxWorkerPool.
func (*DevboxWorkerPool) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxWorkerPool) DeepCopyInto(out *DevboxWorkerPool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevboxWorkerPoolRef ¶ added in v0.6.76
type DevboxWorkerPoolRef struct {
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
// Namespace defaults to the namespace the operator runs devbox WorkerPools in.
// +kubebuilder:validation:Optional
// +kubebuilder:default=""
Namespace string `json:"namespace"`
}
func (*DevboxWorkerPoolRef) DeepCopy ¶ added in v0.6.76
func (in *DevboxWorkerPoolRef) DeepCopy() *DevboxWorkerPoolRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevboxWorkerPoolRef.
func (*DevboxWorkerPoolRef) DeepCopyInto ¶ added in v0.6.76
func (in *DevboxWorkerPoolRef) DeepCopyInto(out *DevboxWorkerPoolRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExaConnection ¶ added in v0.6.41
type ExaConnection struct {
// URL is the Exa API base URL. Defaults to https://api.exa.ai when unset.
// +kubebuilder:validation:Optional
URL *string `json:"url,omitempty"`
// ApiKeySecretRef references a Secret containing the Exa API key.
// +kubebuilder:validation:Optional
ApiKeySecretRef *corev1.SecretKeySelector `json:"apiKeySecretRef,omitempty"`
// ProxyURL is an HTTP proxy URL used for Exa API requests.
// +kubebuilder:validation:Optional
ProxyURL *string `json:"proxyUrl,omitempty"`
}
func (*ExaConnection) DeepCopy ¶ added in v0.6.41
func (in *ExaConnection) DeepCopy() *ExaConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExaConnection.
func (*ExaConnection) DeepCopyInto ¶ added in v0.6.41
func (in *ExaConnection) DeepCopyInto(out *ExaConnection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExaConnection) ToExaConnectionRaw ¶ added in v0.6.41
func (in *ExaConnection) ToExaConnectionRaw(secretGetter func(corev1.SecretKeySelector) (*corev1.Secret, error)) (*ExaConnectionRaw, error)
type ExaConnectionRaw ¶ added in v0.6.41
type ExaConnectionRaw struct {
URL *string `json:"url,omitempty"`
// ApiKey is the raw Exa API key.
ApiKey *string `json:"apiKey,omitempty"`
ProxyURL *string `json:"proxyUrl,omitempty"`
}
func (*ExaConnectionRaw) DeepCopy ¶ added in v0.6.41
func (in *ExaConnectionRaw) DeepCopy() *ExaConnectionRaw
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExaConnectionRaw.
func (*ExaConnectionRaw) DeepCopyInto ¶ added in v0.6.41
func (in *ExaConnectionRaw) DeepCopyInto(out *ExaConnectionRaw)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FlowControl ¶
type FlowControl struct {
Percentage *int `json:"percentage,omitempty"`
MaxConcurrency *int `json:"maxConcurrency,omitempty"`
}
func (*FlowControl) DeepCopy ¶
func (in *FlowControl) DeepCopy() *FlowControl
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowControl.
func (*FlowControl) DeepCopyInto ¶
func (in *FlowControl) DeepCopyInto(out *FlowControl)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GateSpec ¶
type GateSpec struct {
// resuse JobSpec type from the kubernetes api
JobSpec *batchv1.JobSpec `json:"job"`
}
GateSpec defines the detailed gate specifications
func (*GateSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GateSpec.
func (*GateSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GateState ¶
+kubebuilder:validation:Enum=PENDING;OPEN;CLOSED;RUNNING GateState represents the state of a gate, reused from console client
type GateType ¶
+kubebuilder:validation:Enum=APPROVAL;WINDOW;JOB GateType represents the type of a gate, reused from console client
type GeminiConfig ¶
type GeminiConfig struct {
// APIKeySecretRef references a Secret containing the Gemini API key.
// Optional when aiProxy is enabled; authentication uses the Console deploy token instead.
// +kubebuilder:validation:Optional
APIKeySecretRef *corev1.SecretKeySelector `json:"apiKeySecretRef,omitempty"`
// Model is the name of the model to use.
// NOTE: gemini flash lite models and are not fit for the write (agent) mode, and
// should only be used for analysis.
// +kubebuilder:validation:Optional
Model *string `json:"model,omitempty"`
// Timeout bounds a single gemini run invocation.
// +kubebuilder:validation:Optional
Timeout *metav1.Duration `json:"timeout,omitempty"`
// InactivityTimeout is the timeout for inactivity during a gemini run.
// +kubebuilder:validation:Optional
InactivityTimeout *metav1.Duration `json:"inactivityTimeout,omitempty"`
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint,omitempty"`
}
GeminiConfig contains configuration for the Gemini CLI runtime.
func (*GeminiConfig) DeepCopy ¶
func (in *GeminiConfig) DeepCopy() *GeminiConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GeminiConfig.
func (*GeminiConfig) DeepCopyInto ¶
func (in *GeminiConfig) DeepCopyInto(out *GeminiConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GeminiConfig) Raw ¶
func (in *GeminiConfig) Raw(secretGetter func(corev1.SecretKeySelector) (*corev1.Secret, error)) (*GeminiConfigRaw, error)
type GeminiConfigRaw ¶
type GeminiConfigRaw struct {
// APIKey is the raw Gemini API key to use.
APIKey string `json:"apiKey,omitempty"`
// Model is the name of the model to use.
Model *string `json:"model,omitempty"`
// Timeout bounds a single gemini run invocation.
// +kubebuilder:validation:Optional
Timeout *metav1.Duration `json:"timeout,omitempty"`
// InactivityTimeout is the timeout for inactivity during gemini run.
// +kubebuilder:validation:Optional
InactivityTimeout *metav1.Duration `json:"inactivityTimeout,omitempty"`
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint,omitempty"`
}
GeminiConfigRaw contains configuration for the Gemini CLI runtime.
NOTE: Do not embed this struct directly, use GeminiConfig instead. This is only used to read original GeminiConfig secret data and be able to inject it into the pod as env vars.
func (*GeminiConfigRaw) DeepCopy ¶
func (in *GeminiConfigRaw) DeepCopy() *GeminiConfigRaw
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GeminiConfigRaw.
func (*GeminiConfigRaw) DeepCopyInto ¶
func (in *GeminiConfigRaw) DeepCopyInto(out *GeminiConfigRaw)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitSpec ¶
type GitSpec struct {
Proxy *string `json:"proxy,omitempty"`
SigningKeyRef *corev1.SecretKeySelector `json:"signingKeyRef,omitempty"`
}
func (*GitSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitSpec.
func (*GitSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmConfiguration ¶
type HelmConfiguration struct {
// ChartName is a helm chart name.
ChartName *string `json:"chartName,omitempty"`
// RepoUrl is a url that points to this helm chart.
// +kubebuilder:validation:Type:=string
// +kubebuilder:validation:Optional
RepoUrl *string `json:"repoUrl,omitempty"`
// Values allows defining arbitrary YAML values to pass to the helm as values.yaml file.
// Use only one of:
// - Values
// - ValuesSecretRef
// - ValuesConfigMapRef
// +kubebuilder:validation:Optional
Values *runtime.RawExtension `json:"values,omitempty"`
// ValuesSecretRef fetches helm values from a secret in this cluster.
// Use only one of:
// - Values
// - ValuesSecretRef
// - ValuesConfigMapRef
// +kubebuilder:validation:Optional
ValuesSecretRef *corev1.SecretKeySelector `json:"valuesSecretRef,omitempty"`
// ValuesConfigMapRef fetches helm values from a config map in this cluster.
// Use only one of:
// - Values
// - ValuesSecretRef
// - ValuesConfigMapRef
// +kubebuilder:validation:Optional
ValuesConfigMapRef *corev1.ConfigMapKeySelector `json:"valuesConfigMapRef,omitempty"`
}
func (*HelmConfiguration) DeepCopy ¶
func (in *HelmConfiguration) DeepCopy() *HelmConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmConfiguration.
func (*HelmConfiguration) DeepCopyInto ¶
func (in *HelmConfiguration) DeepCopyInto(out *HelmConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmSpec ¶
type HelmSpec struct {
// Agent allows configuring agent specific helm chart options.
// +kubebuilder:validation:Optional
Agent *AgentHelmConfiguration `json:"agent,omitempty"`
// VCluster allows configuring vcluster specific helm chart options.
// +kubebuilder:validation:Optional
VCluster *VClusterHelmConfiguration `json:"vcluster,omitempty"`
}
func (*HelmSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmSpec.
func (*HelmSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HelmSpec) GetAgent ¶
func (in *HelmSpec) GetAgent() *AgentHelmConfiguration
func (*HelmSpec) GetVCluster ¶
func (in *HelmSpec) GetVCluster() *VClusterHelmConfiguration
type ImageWarmer ¶ added in v0.6.67
type ImageWarmer struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ImageWarmerSpec `json:"spec,omitempty"`
Status ImageWarmerStatus `json:"status,omitempty"`
}
ImageWarmer is the Schema for the imagewarmers API.
func (*ImageWarmer) DeepCopy ¶ added in v0.6.67
func (in *ImageWarmer) DeepCopy() *ImageWarmer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageWarmer.
func (*ImageWarmer) DeepCopyInto ¶ added in v0.6.67
func (in *ImageWarmer) DeepCopyInto(out *ImageWarmer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageWarmer) DeepCopyObject ¶ added in v0.6.67
func (in *ImageWarmer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ImageWarmer) SetCondition ¶ added in v0.6.67
func (in *ImageWarmer) SetCondition(condition metav1.Condition)
type ImageWarmerList ¶ added in v0.6.67
type ImageWarmerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ImageWarmer `json:"items"`
}
ImageWarmerList contains a list of ImageWarmer.
func (*ImageWarmerList) DeepCopy ¶ added in v0.6.67
func (in *ImageWarmerList) DeepCopy() *ImageWarmerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageWarmerList.
func (*ImageWarmerList) DeepCopyInto ¶ added in v0.6.67
func (in *ImageWarmerList) DeepCopyInto(out *ImageWarmerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageWarmerList) DeepCopyObject ¶ added in v0.6.67
func (in *ImageWarmerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageWarmerSpec ¶ added in v0.6.67
type ImageWarmerSpec struct {
// Cron is a standard five-field cron expression controlling how often the
// image is refreshed.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Cron string `json:"cron"`
// Image is the OCI image to warm.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Image string `json:"image"`
// Template optionally overrides the secure default warmer pod template.
// +kubebuilder:validation:Optional
Template *corev1.PodTemplateSpec `json:"template,omitempty"`
// Selector restricts warming to nodes matching this label selector.
// +kubebuilder:validation:Optional
Selector *metav1.LabelSelector `json:"selector,omitempty"`
}
ImageWarmerSpec defines an image that should periodically be pulled onto every selected node.
func (*ImageWarmerSpec) DeepCopy ¶ added in v0.6.67
func (in *ImageWarmerSpec) DeepCopy() *ImageWarmerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageWarmerSpec.
func (*ImageWarmerSpec) DeepCopyInto ¶ added in v0.6.67
func (in *ImageWarmerSpec) DeepCopyInto(out *ImageWarmerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageWarmerStatus ¶ added in v0.6.67
type ImageWarmerStatus struct {
// LastScheduleTime is the last time a warming DaemonSet was started.
// +kubebuilder:validation:Optional
LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"`
// LastSuccessfulTime is the last time all selected nodes reported the
// warming pod ready.
// +kubebuilder:validation:Optional
LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime,omitempty"`
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
ImageWarmerStatus defines the observed state of ImageWarmer.
func (*ImageWarmerStatus) DeepCopy ¶ added in v0.6.67
func (in *ImageWarmerStatus) DeepCopy() *ImageWarmerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageWarmerStatus.
func (*ImageWarmerStatus) DeepCopyInto ¶ added in v0.6.67
func (in *ImageWarmerStatus) DeepCopyInto(out *ImageWarmerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressReplica ¶
type IngressReplica struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec of the IngressReplica
// +kubebuilder:validation:Required
Spec IngressReplicaSpec `json:"spec"`
// Status of the IngressReplica
// +kubebuilder:validation:Optional
Status Status `json:"status,omitempty"`
}
IngressReplica is the Schema for the console ingress replica +kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status
func (*IngressReplica) DeepCopy ¶
func (in *IngressReplica) DeepCopy() *IngressReplica
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressReplica.
func (*IngressReplica) DeepCopyInto ¶
func (in *IngressReplica) DeepCopyInto(out *IngressReplica)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IngressReplica) DeepCopyObject ¶
func (in *IngressReplica) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*IngressReplica) SetCondition ¶
func (in *IngressReplica) SetCondition(condition metav1.Condition)
type IngressReplicaList ¶
type IngressReplicaList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []IngressReplica `json:"items"`
}
IngressReplicaList contains a list of IngressReplica +kubebuilder:object:root=true
func (*IngressReplicaList) DeepCopy ¶
func (in *IngressReplicaList) DeepCopy() *IngressReplicaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressReplicaList.
func (*IngressReplicaList) DeepCopyInto ¶
func (in *IngressReplicaList) DeepCopyInto(out *IngressReplicaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IngressReplicaList) DeepCopyObject ¶
func (in *IngressReplicaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IngressReplicaSpec ¶
type IngressReplicaSpec struct {
// +kubebuilder:validation:Required
IngressRef corev1.ObjectReference `json:"ingressRef"`
// +kubebuilder:validation:Optional
IngressClassName *string `json:"ingressClassName,omitempty"`
// +kubebuilder:validation:Optional
TLS []v1.IngressTLS `json:"tls,omitempty"`
// +kubebuilder:validation:Required
HostMappings map[string]string `json:"hostMappings"`
}
func (*IngressReplicaSpec) DeepCopy ¶
func (in *IngressReplicaSpec) DeepCopy() *IngressReplicaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressReplicaSpec.
func (*IngressReplicaSpec) DeepCopyInto ¶
func (in *IngressReplicaSpec) DeepCopyInto(out *IngressReplicaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InsightEngine ¶ added in v0.6.72
type InsightEngine string
InsightEngine is the language an insight priority script is written in. +kubebuilder:validation:Enum=python
const ( // InsightEnginePython evaluates the script as sandboxed Python. InsightEnginePython InsightEngine = "python" )
type InsightEvaluation ¶ added in v0.6.72
type InsightEvaluation struct {
// Time the script last ran with a different outcome than the one before.
Time metav1.Time `json:"time,omitempty"`
// Matched is the number of failing objects the script owned.
Matched int `json:"matched"`
// Overridden is the number of objects the script gave a priority.
Overridden int `json:"overridden"`
// Ignored is the number of objects the script ignored.
Ignored int `json:"ignored"`
// DurationMs is how long the script took.
DurationMs int64 `json:"durationMs"`
}
InsightEvaluation is the outcome of the last time the script ran.
func (*InsightEvaluation) DeepCopy ¶ added in v0.6.72
func (in *InsightEvaluation) DeepCopy() *InsightEvaluation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InsightEvaluation.
func (*InsightEvaluation) DeepCopyInto ¶ added in v0.6.72
func (in *InsightEvaluation) DeepCopyInto(out *InsightEvaluation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InsightTarget ¶ added in v0.6.72
type InsightTarget struct {
// Kinds the script is responsible for.
// +kubebuilder:validation:Optional
Kinds []InsightTargetKind `json:"kinds,omitempty"`
// Namespaces the script is responsible for. Cluster scoped objects only match when this is empty.
// +kubebuilder:validation:Optional
Namespaces []string `json:"namespaces,omitempty"`
// LabelSelector selects objects by their labels.
// +kubebuilder:validation:Optional
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"`
}
InsightTarget selects the failing objects a script is responsible for. An object has to match every non-empty field, so an empty target matches everything.
func (*InsightTarget) DeepCopy ¶ added in v0.6.72
func (in *InsightTarget) DeepCopy() *InsightTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InsightTarget.
func (*InsightTarget) DeepCopyInto ¶ added in v0.6.72
func (in *InsightTarget) DeepCopyInto(out *InsightTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InsightTargetKind ¶ added in v0.6.72
type InsightTargetKind struct {
// Group of the kind, empty for the core group.
// +kubebuilder:validation:Optional
Group string `json:"group,omitempty"`
// Version of the kind, any version matches when empty.
// +kubebuilder:validation:Optional
Version string `json:"version,omitempty"`
// Kind of the objects, for example StatefulSet.
// +kubebuilder:validation:MinLength=1
Kind string `json:"kind"`
}
InsightTargetKind selects objects by kind.
func (*InsightTargetKind) DeepCopy ¶ added in v0.6.72
func (in *InsightTargetKind) DeepCopy() *InsightTargetKind
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InsightTargetKind.
func (*InsightTargetKind) DeepCopyInto ¶ added in v0.6.72
func (in *InsightTargetKind) DeepCopyInto(out *InsightTargetKind)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubecostExtractor ¶
type KubecostExtractor struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec KubecostExtractorSpec `json:"spec"`
// Status of the MetricsAggregate
Status Status `json:"status,omitempty"`
}
KubecostExtractor +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status
func (*KubecostExtractor) DeepCopy ¶
func (in *KubecostExtractor) DeepCopy() *KubecostExtractor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubecostExtractor.
func (*KubecostExtractor) DeepCopyInto ¶
func (in *KubecostExtractor) DeepCopyInto(out *KubecostExtractor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubecostExtractor) DeepCopyObject ¶
func (in *KubecostExtractor) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KubecostExtractor) SetCondition ¶
func (in *KubecostExtractor) SetCondition(condition metav1.Condition)
type KubecostExtractorList ¶
type KubecostExtractorList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []KubecostExtractor `json:"items"`
}
KubecostExtractorList contains a list of KubecostExtractor +kubebuilder:object:root=true
func (*KubecostExtractorList) DeepCopy ¶
func (in *KubecostExtractorList) DeepCopy() *KubecostExtractorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubecostExtractorList.
func (*KubecostExtractorList) DeepCopyInto ¶
func (in *KubecostExtractorList) DeepCopyInto(out *KubecostExtractorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubecostExtractorList) DeepCopyObject ¶
func (in *KubecostExtractorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubecostExtractorSpec ¶
type KubecostExtractorSpec struct {
// Provider selects which cost backend to query. Defaults to Kubecost.
// +kubebuilder:default=Kubecost
// +kubebuilder:validation:Enum=Kubecost;OpenCost
// +kubebuilder:validation:Optional
Provider *CostProvider `json:"provider,omitempty"`
// +kubebuilder:default="1h"
// +kubebuilder:validation:Optional
Interval *string `json:"interval,omitempty"`
// KubecostServiceRef points at the cost analyzer Service. When omitted, defaults
// are chosen from provider: kubecost-cost-analyzer/kubecost or opencost/opencost.
// +kubebuilder:validation:Optional
KubecostServiceRef corev1.ObjectReference `json:"kubecostServiceRef,omitempty"`
// +kubebuilder:validation:Optional
KubecostPort *int32 `json:"kubecostPort,omitempty"`
// RecommendationThreshold float value for example: `1.2 or 0.001`
RecommendationThreshold string `json:"recommendationThreshold"`
// +kubebuilder:validation:Optional
RecommendationsSettings *RecommendationsSettings `json:"recommendationsSettings,omitempty"`
}
func (*KubecostExtractorSpec) DeepCopy ¶
func (in *KubecostExtractorSpec) DeepCopy() *KubecostExtractorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubecostExtractorSpec.
func (*KubecostExtractorSpec) DeepCopyInto ¶
func (in *KubecostExtractorSpec) DeepCopyInto(out *KubecostExtractorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubecostExtractorSpec) GetAllocationPath ¶ added in v0.6.45
func (in *KubecostExtractorSpec) GetAllocationPath() string
func (*KubecostExtractorSpec) GetClusterInfoPath ¶ added in v0.6.45
func (in *KubecostExtractorSpec) GetClusterInfoPath() string
func (*KubecostExtractorSpec) GetInterval ¶
func (in *KubecostExtractorSpec) GetInterval() time.Duration
func (*KubecostExtractorSpec) GetPort ¶
func (in *KubecostExtractorSpec) GetPort() string
func (*KubecostExtractorSpec) GetProvider ¶ added in v0.6.45
func (in *KubecostExtractorSpec) GetProvider() CostProvider
func (*KubecostExtractorSpec) GetServiceRef ¶ added in v0.6.45
func (in *KubecostExtractorSpec) GetServiceRef() corev1.ObjectReference
type MCPServer ¶ added in v0.6.60
type MCPServer struct {
// Name is the MCP server identifier used by the coding agent.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
// URL is the remote streamable HTTP MCP endpoint.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
URL string `json:"url"`
// AllowedTools is an optional allowlist of tool names from this server.
// When omitted or empty, all tools advertised by the server are exposed.
// +kubebuilder:validation:Optional
AllowedTools []string `json:"allowedTools,omitempty"`
// Headers are HTTP headers sent with requests to this MCP server.
// Each header must set exactly one of value or valueFrom.
// +kubebuilder:validation:Optional
// +listType=map
// +listMapKey=name
Headers []MCPServerHeader `json:"headers,omitempty"`
}
MCPServer is a remote MCP server exposed to agent runtimes.
+kubebuilder:validation:XValidation:rule="self.name != 'plural' && self.name != 'codebase-memory-mcp' && self.name != 'workbench'",message="mcpServers name cannot collide with built-in servers plural, codebase-memory-mcp, or workbench"
func (*MCPServer) DeepCopy ¶ added in v0.6.60
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCPServer.
func (*MCPServer) DeepCopyInto ¶ added in v0.6.60
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MCPServerHeader ¶ added in v0.6.60
type MCPServerHeader struct {
// Name is the HTTP header name.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
// Value is a literal header value.
// +kubebuilder:validation:Optional
Value *string `json:"value,omitempty"`
// ValueFrom sources the header value the same way as a pod env var.
// +kubebuilder:validation:Optional
ValueFrom *corev1.EnvVarSource `json:"valueFrom,omitempty"`
}
MCPServerHeader is an HTTP header for a remote MCP server.
+kubebuilder:validation:XValidation:rule="has(self.value) != has(self.valueFrom)",message="exactly one of value or valueFrom must be set"
func (*MCPServerHeader) DeepCopy ¶ added in v0.6.60
func (in *MCPServerHeader) DeepCopy() *MCPServerHeader
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCPServerHeader.
func (*MCPServerHeader) DeepCopyInto ¶ added in v0.6.60
func (in *MCPServerHeader) DeepCopyInto(out *MCPServerHeader)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricsAggregate ¶
type MetricsAggregate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// Status of the MetricsAggregate
// +kubebuilder:validation:Optional
// +kubebuilder:printcolumn:name="Nodes",type=integer,JSONPath=".status.nodes",description="Number of Cluster Nodes"
// +kubebuilder:printcolumn:name="MemoryTotalBytes",type=integer,JSONPath=".status.memoryTotalBytes",description="Memory total bytes"
// +kubebuilder:printcolumn:name="MemoryAvailableBytes",type=integer,JSONPath=".status.memoryAvailableBytes",description="Memory available bytes"
// +kubebuilder:printcolumn:name="MemoryUsedPercentage",type=integer,JSONPath=".status.memoryUsedPercentage",description="Memory used percentage"
// +kubebuilder:printcolumn:name="CPUTotalMillicores",type=integer,JSONPath=".status.cpuTotalMillicores",description="CPU total millicores"
// +kubebuilder:printcolumn:name="CPUAvailableMillicores",type=integer,JSONPath=".status.cpuAvailableMillicores",description="CPU available millicores"
// +kubebuilder:printcolumn:name="CPUUsedPercentage",type=integer,JSONPath=".status.cpuUsedPercentage",description="CPU used percentage"
Status MetricsAggregateStatus `json:"status,omitempty"`
}
MetricsAggregate +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status
func (*MetricsAggregate) DeepCopy ¶
func (in *MetricsAggregate) DeepCopy() *MetricsAggregate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsAggregate.
func (*MetricsAggregate) DeepCopyInto ¶
func (in *MetricsAggregate) DeepCopyInto(out *MetricsAggregate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetricsAggregate) DeepCopyObject ¶
func (in *MetricsAggregate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MetricsAggregate) SetCondition ¶
func (in *MetricsAggregate) SetCondition(condition metav1.Condition)
type MetricsAggregateList ¶
type MetricsAggregateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MetricsAggregate `json:"items"`
}
MetricsAggregateList contains a list of MetricsAggregate +kubebuilder:object:root=true
func (*MetricsAggregateList) DeepCopy ¶
func (in *MetricsAggregateList) DeepCopy() *MetricsAggregateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsAggregateList.
func (*MetricsAggregateList) DeepCopyInto ¶
func (in *MetricsAggregateList) DeepCopyInto(out *MetricsAggregateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetricsAggregateList) DeepCopyObject ¶
func (in *MetricsAggregateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetricsAggregateStatus ¶
type MetricsAggregateStatus struct {
Nodes int `json:"nodes,omitempty"`
// MemoryTotalBytes current memory usage in bytes
MemoryTotalBytes int64 `json:"memoryTotalBytes,omitempty"`
// MemoryAvailableBytes available memory for node
MemoryAvailableBytes int64 `json:"memoryAvailableBytes,omitempty"`
// MemoryUsedPercentage in percentage
MemoryUsedPercentage int64 `json:"memoryUsedPercentage,omitempty"`
// CPUTotalMillicores in m cores
CPUTotalMillicores int64 `json:"cpuTotalMillicores,omitempty"`
// CPUAvailableMillicores in m cores
CPUAvailableMillicores int64 `json:"cpuAvailableMillicores,omitempty"`
// CPUUsedPercentage in percentage
CPUUsedPercentage int64 `json:"cpuUsedPercentage,omitempty"`
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
func (*MetricsAggregateStatus) DeepCopy ¶
func (in *MetricsAggregateStatus) DeepCopy() *MetricsAggregateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsAggregateStatus.
func (*MetricsAggregateStatus) DeepCopyInto ¶
func (in *MetricsAggregateStatus) DeepCopyInto(out *MetricsAggregateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MiseSpec ¶ added in v0.6.67
type MiseSpec struct {
// Config is the contents of a mise.toml.
// +kubebuilder:validation:Optional
Config *string `json:"config,omitempty"`
}
MiseSpec is an inline mise.toml used for unattended bootstrap. See https://mise.jdx.dev/bootstrap.html
func (*MiseSpec) DeepCopy ¶ added in v0.6.67
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MiseSpec.
func (*MiseSpec) DeepCopyInto ¶ added in v0.6.67
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OpenCodeConfig ¶
type OpenCodeConfig struct {
// OpenAICompatible configures a custom OpenAI-compatible provider block in opencode.json.
// When set (and aiProxy is false), provider and endpoint on this struct are ignored in favor
// of the nested openaiCompatible fields.
// +kubebuilder:validation:Optional
OpenAICompatible *OpenCodeOpenAICompatibleConfig `json:"openaiCompatible,omitempty"`
// Provider is the OpenCode provider id from https://models.dev (for example openai, anthropic,
// amazon-bedrock, google-vertex, google). Optional.
//
// When the parent AgentRuntime has spec.aiProxy enabled, the harness ignores this field and
// autowires provider "plural", routing requests through the Console AI proxy at /ext/ai/v1
// using the deploy token, which the in-pod mcpserver sidecar adds. Set
// spec.config.opencode.model to a bare model id; the harness
// prefixes it for proxy routing based on runtime type (for example gpt-5.4 -> openai/gpt-5.4).
//
// When aiProxy is false, this selects the native OpenCode provider block; credentials come from
// tokenSecretRef or the provider's usual environment variables. Defaults to plural when omitted.
// Use exact models.dev slugs (for example amazon-bedrock, google-vertex, google).
// +kubebuilder:validation:Optional
// +kubebuilder:validation:MaxLength=128
Provider *string `json:"provider,omitempty"`
// Endpoint optionally overrides the provider baseURL in opencode.json.
// When omitted, the harness omits baseURL so OpenCode uses the models.dev default for the provider.
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint,omitempty"`
// Model is the LLM model to use.
// +kubebuilder:validation:Optional
Model *string `json:"model,omitempty"`
// Method configures which OpenAI API OpenCode should use.
// CHAT selects @ai-sdk/openai-compatible and forces /chat/completions.
// RESPONSES selects @ai-sdk/openai and forces /responses.
// AUTO preserves the provider default.
// +kubebuilder:validation:Enum=CHAT;RESPONSES;AUTO
// +kubebuilder:validation:Optional
Method *console.OpenAiMethod `json:"method,omitempty"`
// TokenSecretRef references a Secret containing the API token for OpenCode.
// Optional when aiProxy is enabled; authentication uses the Console deploy token instead.
// +kubebuilder:validation:Optional
TokenSecretRef *corev1.SecretKeySelector `json:"tokenSecretRef,omitempty"`
// ExtraArgs args for advanced or experimental CLI flags.
//
// Deprecated: It is being ignored by the agent harness.
ExtraArgs []string `json:"extraArgs,omitempty"`
// Timeout bounds a single opencode run invocation.
// +kubebuilder:validation:Optional
Timeout *metav1.Duration `json:"timeout,omitempty"`
}
OpenCodeConfig contains configuration for the OpenCode CLI runtime.
func (*OpenCodeConfig) DeepCopy ¶
func (in *OpenCodeConfig) DeepCopy() *OpenCodeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenCodeConfig.
func (*OpenCodeConfig) DeepCopyInto ¶
func (in *OpenCodeConfig) DeepCopyInto(out *OpenCodeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OpenCodeConfig) ToOpenCodeConfigRaw ¶
func (in *OpenCodeConfig) ToOpenCodeConfigRaw(secretGetter func(corev1.SecretKeySelector) (*corev1.Secret, error), aiProxy bool) (*OpenCodeConfigRaw, error)
type OpenCodeConfigRaw ¶
type OpenCodeConfigRaw struct {
// OpenAICompatible is true when spec.config.opencode.openaiCompatible was set on the AgentRuntime.
OpenAICompatible bool `json:"openaiCompatible,omitempty"`
// Provider is the OpenCode provider id from https://models.dev.
Provider *string `json:"provider,omitempty"`
// Endpoint API endpoint for the OpenCode service.
Endpoint *string `json:"endpoint,omitempty"`
// Model is the LLM model to use.
Model *string `json:"model,omitempty"`
// Method configures which OpenAI API OpenCode should use.
Method *console.OpenAiMethod `json:"method,omitempty"`
// Token is the raw API token for OpenCode.
Token string `json:"token,omitempty"`
// Timeout bounds a single opencode run invocation.
// +kubebuilder:validation:Optional
Timeout *metav1.Duration `json:"timeout,omitempty"`
}
OpenCodeConfigRaw contains configuration for the OpenCode CLI runtime.
NOTE: Do not embed this struct directly, use OpenCodeConfig instead. This is only used to read original OpenCodeConfig secret data and be able to inject it into the pod as env vars.
func (*OpenCodeConfigRaw) DeepCopy ¶
func (in *OpenCodeConfigRaw) DeepCopy() *OpenCodeConfigRaw
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenCodeConfigRaw.
func (*OpenCodeConfigRaw) DeepCopyInto ¶
func (in *OpenCodeConfigRaw) DeepCopyInto(out *OpenCodeConfigRaw)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OpenCodeOpenAICompatibleConfig ¶ added in v0.6.41
type OpenCodeOpenAICompatibleConfig struct {
// Endpoint is the OpenAI-compatible API base URL (for example https://litellm.example/v1).
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Endpoint string `json:"endpoint"`
// Model is the model id exposed by that endpoint.
// +kubebuilder:validation:Optional
Model *string `json:"model,omitempty"`
// TokenSecretRef references a Secret containing the API key for the endpoint.
// +kubebuilder:validation:Optional
TokenSecretRef *corev1.SecretKeySelector `json:"tokenSecretRef,omitempty"`
}
OpenCodeOpenAICompatibleConfig configures a custom OpenAI-compatible API provider in opencode.json. Use this for endpoints that are not listed on https://models.dev (for example LiteLLM, vLLM, or a private gateway).
When set and the parent AgentRuntime has spec.aiProxy false, spec.config.opencode.provider and spec.config.opencode.endpoint are ignored in favor of this block.
func (*OpenCodeOpenAICompatibleConfig) DeepCopy ¶ added in v0.6.41
func (in *OpenCodeOpenAICompatibleConfig) DeepCopy() *OpenCodeOpenAICompatibleConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenCodeOpenAICompatibleConfig.
func (*OpenCodeOpenAICompatibleConfig) DeepCopyInto ¶ added in v0.6.41
func (in *OpenCodeOpenAICompatibleConfig) DeepCopyInto(out *OpenCodeOpenAICompatibleConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PiConfig ¶ added in v0.6.58
type PiConfig struct {
// APIKeySecretRef references an API key. Optional with aiProxy enabled.
// +kubebuilder:validation:Optional
APIKeySecretRef *corev1.SecretKeySelector `json:"apiKeySecretRef,omitempty"`
// Provider is Pi's provider id. Defaults to openai.
// +kubebuilder:validation:Optional
Provider *string `json:"provider,omitempty"`
// Model is the model id to use.
// +kubebuilder:validation:Optional
Model *string `json:"model,omitempty"`
// Method configures which OpenAI API Pi should use.
// CHAT selects openai-completions and forces /chat/completions.
// RESPONSES selects openai-responses and forces /responses.
// AUTO preserves the current openai-responses default.
// +kubebuilder:validation:Enum=CHAT;RESPONSES;AUTO
// +kubebuilder:validation:Optional
Method *console.OpenAiMethod `json:"method,omitempty"`
// Endpoint overrides the OpenAI-compatible provider base URL.
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint,omitempty"`
// Timeout bounds a single Pi invocation.
// +kubebuilder:validation:Optional
Timeout *metav1.Duration `json:"timeout,omitempty"`
}
PiConfig configures the Pi coding-agent CLI runtime.
func (*PiConfig) DeepCopy ¶ added in v0.6.58
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PiConfig.
func (*PiConfig) DeepCopyInto ¶ added in v0.6.58
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PiConfig) ToPiConfigRaw ¶ added in v0.6.58
func (in *PiConfig) ToPiConfigRaw(secretGetter func(corev1.SecretKeySelector) (*corev1.Secret, error)) (*PiConfigRaw, error)
type PiConfigRaw ¶ added in v0.6.58
type PiConfigRaw struct {
APIKey string `json:"apiKey,omitempty"`
Provider *string `json:"provider,omitempty"`
Model *string `json:"model,omitempty"`
Method *console.OpenAiMethod `json:"method,omitempty"`
Endpoint *string `json:"endpoint,omitempty"`
Timeout *metav1.Duration `json:"timeout,omitempty"`
}
PiConfigRaw contains resolved credentials and configuration for Pi.
func (*PiConfigRaw) DeepCopy ¶ added in v0.6.58
func (in *PiConfigRaw) DeepCopy() *PiConfigRaw
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PiConfigRaw.
func (*PiConfigRaw) DeepCopyInto ¶ added in v0.6.58
func (in *PiConfigRaw) DeepCopyInto(out *PiConfigRaw)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineGate ¶
type PipelineGate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PipelineGateSpec `json:"spec,omitempty"`
Status PipelineGateStatus `json:"status,omitempty"`
}
PipelineGate represents a gate blocking promotion along a release pipeline
func (*PipelineGate) CreateNewJobName ¶
func (pg *PipelineGate) CreateNewJobName() string
func (*PipelineGate) CreateNewJobRef ¶
func (pg *PipelineGate) CreateNewJobRef() console.NamespacedName
func (*PipelineGate) DeepCopy ¶
func (in *PipelineGate) DeepCopy() *PipelineGate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineGate.
func (*PipelineGate) DeepCopyInto ¶
func (in *PipelineGate) DeepCopyInto(out *PipelineGate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineGate) DeepCopyObject ¶
func (in *PipelineGate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineGateList ¶
type PipelineGateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PipelineGate `json:"items"`
}
+kubebuilder:object:root=true PipelineGateList contains a list of PipelineGate
func (*PipelineGateList) DeepCopy ¶
func (in *PipelineGateList) DeepCopy() *PipelineGateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineGateList.
func (*PipelineGateList) DeepCopyInto ¶
func (in *PipelineGateList) DeepCopyInto(out *PipelineGateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineGateList) DeepCopyObject ¶
func (in *PipelineGateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineGateSpec ¶
type PipelineGateSpec struct {
ID string `json:"id"`
Name string `json:"name"`
Type GateType `json:"type"`
GateSpec *GateSpec `json:"gateSpec,omitempty"`
}
PipelineGateSpec defines the detailed gate specifications
func (*PipelineGateSpec) DeepCopy ¶
func (in *PipelineGateSpec) DeepCopy() *PipelineGateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineGateSpec.
func (*PipelineGateSpec) DeepCopyInto ¶
func (in *PipelineGateSpec) DeepCopyInto(out *PipelineGateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineGateStatus ¶
type PipelineGateStatus struct {
State *GateState `json:"state,omitempty"`
JobRef *console.NamespacedName `json:"jobRef,omitempty"`
SHA *string `json:"sha,omitempty"`
}
PipelineGateStatus defines the observed state of the PipelineGate
func (*PipelineGateStatus) DeepCopy ¶
func (in *PipelineGateStatus) DeepCopy() *PipelineGateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineGateStatus.
func (*PipelineGateStatus) DeepCopyInto ¶
func (in *PipelineGateStatus) DeepCopyInto(out *PipelineGateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineGateStatus) GateUpdateAttributes ¶
func (pgs *PipelineGateStatus) GateUpdateAttributes() console.GateUpdateAttributes
func (*PipelineGateStatus) GetConsoleGateState ¶
func (pgs *PipelineGateStatus) GetConsoleGateState() *console.GateState
func (*PipelineGateStatus) GetSHA ¶
func (pgs *PipelineGateStatus) GetSHA() string
func (*PipelineGateStatus) HasJobRef ¶
func (pgs *PipelineGateStatus) HasJobRef() bool
func (*PipelineGateStatus) HasSHA ¶
func (pgs *PipelineGateStatus) HasSHA() bool
func (*PipelineGateStatus) IsClosed ¶
func (pgs *PipelineGateStatus) IsClosed() bool
func (*PipelineGateStatus) IsInitialized ¶
func (pgs *PipelineGateStatus) IsInitialized() bool
func (*PipelineGateStatus) IsOpen ¶
func (pgs *PipelineGateStatus) IsOpen() bool
func (*PipelineGateStatus) IsPending ¶
func (pgs *PipelineGateStatus) IsPending() bool
func (*PipelineGateStatus) IsRunning ¶
func (pgs *PipelineGateStatus) IsRunning() bool
func (*PipelineGateStatus) IsSHAEqual ¶
func (pgs *PipelineGateStatus) IsSHAEqual(sha string) bool
func (*PipelineGateStatus) SetJobRef ¶
func (pgs *PipelineGateStatus) SetJobRef(name string, namespace string) *PipelineGateStatus
func (*PipelineGateStatus) SetSHA ¶
func (pgs *PipelineGateStatus) SetSHA(sha string) *PipelineGateStatus
func (*PipelineGateStatus) SetState ¶
func (pgs *PipelineGateStatus) SetState(state console.GateState) *PipelineGateStatus
type PluralCAPICluster ¶
type PluralCAPICluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec of the CAPI cluster configuration
// +kubebuilder:validation:Required
Spec CapiConfigurationClusterSpec `json:"spec"`
// Status of the CAPI cluster configuration
// +kubebuilder:validation:Optional
Status Status `json:"status,omitempty"`
}
PluralCAPICluster is the Schema for the CAPI cluster configuration +kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status
func (*PluralCAPICluster) Attributes ¶
func (in *PluralCAPICluster) Attributes() console.ClusterAttributes
func (*PluralCAPICluster) ClusterName ¶
func (in *PluralCAPICluster) ClusterName() string
func (*PluralCAPICluster) DeepCopy ¶
func (in *PluralCAPICluster) DeepCopy() *PluralCAPICluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluralCAPICluster.
func (*PluralCAPICluster) DeepCopyInto ¶
func (in *PluralCAPICluster) DeepCopyInto(out *PluralCAPICluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PluralCAPICluster) DeepCopyObject ¶
func (in *PluralCAPICluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PluralCAPICluster) Diff ¶
func (in *PluralCAPICluster) Diff(hasher Hasher) (changed bool, sha string, err error)
func (*PluralCAPICluster) GetConsoleToken ¶
func (*PluralCAPICluster) SetCondition ¶
func (in *PluralCAPICluster) SetCondition(condition metav1.Condition)
func (*PluralCAPICluster) UpdateAttributes ¶
func (in *PluralCAPICluster) UpdateAttributes() console.ClusterUpdateAttributes
UpdateAttributes returns the update attributes for this CR by converting the value returned from Attributes().
type PluralCAPIClusterList ¶
type PluralCAPIClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PluralCAPICluster `json:"items"`
}
PluralCAPIClusterList contains a list of PluralCAPICluster +kubebuilder:object:root=true
func (*PluralCAPIClusterList) DeepCopy ¶
func (in *PluralCAPIClusterList) DeepCopy() *PluralCAPIClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluralCAPIClusterList.
func (*PluralCAPIClusterList) DeepCopyInto ¶
func (in *PluralCAPIClusterList) DeepCopyInto(out *PluralCAPIClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PluralCAPIClusterList) DeepCopyObject ¶
func (in *PluralCAPIClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodTemplateSpec ¶
type PodTemplateSpec struct {
// Labels to apply to the job for organization and selection.
// +kubebuilder:validation:Optional
Labels map[string]string `json:"labels,omitempty"`
// Annotations to apply to the job for additional metadata.
// +kubebuilder:validation:Optional
Annotations map[string]string `json:"annotations,omitempty"`
// Specification of the desired behavior of the pod.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Spec corev1.PodSpec `json:"spec,omitempty"`
}
func (*PodTemplateSpec) DeepCopy ¶
func (in *PodTemplateSpec) DeepCopy() *PodTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodTemplateSpec.
func (*PodTemplateSpec) DeepCopyInto ¶
func (in *PodTemplateSpec) DeepCopyInto(out *PodTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Progress ¶
type Progress struct {
Wave int `json:"wave"`
Percentage int `json:"percentage"`
Count int `json:"count"`
Failures []corev1.ObjectReference `json:"failures,omitempty"`
Cursor *corev1.ObjectReference `json:"cursor,omitempty"`
}
func (*Progress) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Progress.
func (*Progress) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Progress) SetStatus ¶
func (p *Progress) SetStatus(failures []corev1.ObjectReference, cursor *corev1.ObjectReference)
type ProviderCredentials ¶
type ProviderCredentials struct {
// AWS defines attributes required to auth with AWS API.
// +kubebuilder:validation:Optional
AWS *AWSProviderCredentials `json:"aws,omitempty"`
}
func (*ProviderCredentials) DeepCopy ¶
func (in *ProviderCredentials) DeepCopy() *ProviderCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderCredentials.
func (*ProviderCredentials) DeepCopyInto ¶
func (in *ProviderCredentials) DeepCopyInto(out *ProviderCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RecommendationsSettings ¶
type RecommendationsSettings struct {
ExcludeNamespaces []string `json:"excludeNamespaces,omitempty"`
RequireAnnotations map[string]string `json:"requireAnnotations,omitempty"`
}
func (*RecommendationsSettings) DeepCopy ¶
func (in *RecommendationsSettings) DeepCopy() *RecommendationsSettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RecommendationsSettings.
func (*RecommendationsSettings) DeepCopyInto ¶
func (in *RecommendationsSettings) DeepCopyInto(out *RecommendationsSettings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryImagePrewarm ¶ added in v0.6.67
type RepositoryImagePrewarm struct {
// Cron is a standard five-field cron expression controlling how often the
// repository image is refreshed.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
Cron string `json:"cron"`
// Template optionally overrides the secure default warmer pod template.
// +kubebuilder:validation:Optional
Template *corev1.PodTemplateSpec `json:"template,omitempty"`
// Selector restricts warming to nodes matching this label selector.
// +kubebuilder:validation:Optional
Selector *metav1.LabelSelector `json:"selector,omitempty"`
}
RepositoryImagePrewarm configures periodic repository image warming.
func (*RepositoryImagePrewarm) DeepCopy ¶ added in v0.6.67
func (in *RepositoryImagePrewarm) DeepCopy() *RepositoryImagePrewarm
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryImagePrewarm.
func (*RepositoryImagePrewarm) DeepCopyInto ¶ added in v0.6.67
func (in *RepositoryImagePrewarm) DeepCopyInto(out *RepositoryImagePrewarm)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SentinelRunJob ¶
type SentinelRunJob struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SentinelRunJobSpec `json:"spec,omitempty"`
Status SentinelRunJobStatus `json:"status,omitempty"`
}
SentinelRunJob is the Schema for the sentinel run job
func (*SentinelRunJob) DeepCopy ¶
func (in *SentinelRunJob) DeepCopy() *SentinelRunJob
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelRunJob.
func (*SentinelRunJob) DeepCopyInto ¶
func (in *SentinelRunJob) DeepCopyInto(out *SentinelRunJob)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SentinelRunJob) DeepCopyObject ¶
func (in *SentinelRunJob) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SentinelRunJob) SetCondition ¶
func (s *SentinelRunJob) SetCondition(condition metav1.Condition)
type SentinelRunJobList ¶
type SentinelRunJobList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []SentinelRunJob `json:"items"`
}
SentinelRunJobList contains a list of SentinelRunJob
func (*SentinelRunJobList) DeepCopy ¶
func (in *SentinelRunJobList) DeepCopy() *SentinelRunJobList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelRunJobList.
func (*SentinelRunJobList) DeepCopyInto ¶
func (in *SentinelRunJobList) DeepCopyInto(out *SentinelRunJobList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SentinelRunJobList) DeepCopyObject ¶
func (in *SentinelRunJobList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SentinelRunJobSpec ¶
type SentinelRunJobSpec struct {
// RunID from Console API
RunID string `json:"runId"`
}
func (*SentinelRunJobSpec) DeepCopy ¶
func (in *SentinelRunJobSpec) DeepCopy() *SentinelRunJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelRunJobSpec.
func (*SentinelRunJobSpec) DeepCopyInto ¶
func (in *SentinelRunJobSpec) DeepCopyInto(out *SentinelRunJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SentinelRunJobStatus ¶
type SentinelRunJobStatus struct {
Status `json:",inline"`
// JobRef Reference to the created Job
JobRef *v1.LocalObjectReference `json:"jobRef,omitempty"`
// JobStatus is the status of the Job.
JobStatus string `json:"jobStatus,omitempty"`
}
func (*SentinelRunJobStatus) DeepCopy ¶
func (in *SentinelRunJobStatus) DeepCopy() *SentinelRunJobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SentinelRunJobStatus.
func (*SentinelRunJobStatus) DeepCopyInto ¶
func (in *SentinelRunJobStatus) DeepCopyInto(out *SentinelRunJobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StackRunJob ¶
type StackRunJob struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec StackRunJobSpec `json:"spec,omitempty"`
Status StackRunJobStatus `json:"status,omitempty"`
}
StackRunJob is the Schema for the stack run job
func (*StackRunJob) DeepCopy ¶
func (in *StackRunJob) DeepCopy() *StackRunJob
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackRunJob.
func (*StackRunJob) DeepCopyInto ¶
func (in *StackRunJob) DeepCopyInto(out *StackRunJob)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StackRunJob) DeepCopyObject ¶
func (in *StackRunJob) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*StackRunJob) SetCondition ¶
func (s *StackRunJob) SetCondition(condition metav1.Condition)
type StackRunJobList ¶
type StackRunJobList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []StackRunJob `json:"items"`
}
SentinelRunJobList contains a list of SentinelRunJob
func (*StackRunJobList) DeepCopy ¶
func (in *StackRunJobList) DeepCopy() *StackRunJobList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackRunJobList.
func (*StackRunJobList) DeepCopyInto ¶
func (in *StackRunJobList) DeepCopyInto(out *StackRunJobList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StackRunJobList) DeepCopyObject ¶
func (in *StackRunJobList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StackRunJobSpec ¶
type StackRunJobSpec struct {
// RunID from Console API
RunID string `json:"runId"`
}
func (*StackRunJobSpec) DeepCopy ¶
func (in *StackRunJobSpec) DeepCopy() *StackRunJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackRunJobSpec.
func (*StackRunJobSpec) DeepCopyInto ¶
func (in *StackRunJobSpec) DeepCopyInto(out *StackRunJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StackRunJobStatus ¶
type StackRunJobStatus struct {
Status `json:",inline"`
// JobRef Reference to the created Job
JobRef *v1.LocalObjectReference `json:"jobRef,omitempty"`
// JobStatus is the status of the Job.
JobStatus string `json:"jobStatus,omitempty"`
}
func (*StackRunJobStatus) DeepCopy ¶
func (in *StackRunJobStatus) DeepCopy() *StackRunJobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackRunJobStatus.
func (*StackRunJobStatus) DeepCopyInto ¶
func (in *StackRunJobStatus) DeepCopyInto(out *StackRunJobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Status ¶
type Status struct {
// ID of the resource in the Console API.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Type:=string
ID *string `json:"id,omitempty"`
// SHA of last applied configuration.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Type:=string
SHA *string `json:"sha,omitempty"`
// Represents the observations of a PrAutomation's current state.
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
func (*Status) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Status) IsSHAEqual ¶
func (*Status) IsStatusConditionTrue ¶
func (p *Status) IsStatusConditionTrue(condition ConditionType) bool
type UpgradeInsights ¶
type UpgradeInsights struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UpgradeInsightsSpec `json:"spec,omitempty"`
Status Status `json:"status,omitempty"`
}
UpgradeInsights is the Schema for the UpgradeInsights API +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="ID of the UpgradeInsights in the Console API."
func (*UpgradeInsights) DeepCopy ¶
func (in *UpgradeInsights) DeepCopy() *UpgradeInsights
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeInsights.
func (*UpgradeInsights) DeepCopyInto ¶
func (in *UpgradeInsights) DeepCopyInto(out *UpgradeInsights)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UpgradeInsights) DeepCopyObject ¶
func (in *UpgradeInsights) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*UpgradeInsights) SetCondition ¶
func (in *UpgradeInsights) SetCondition(condition metav1.Condition)
type UpgradeInsightsDistro ¶
type UpgradeInsightsDistro string
type UpgradeInsightsList ¶
type UpgradeInsightsList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []UpgradeInsights `json:"items"`
}
UpgradeInsightsList contains a list of UpgradeInsights +kubebuilder:object:root=true
func (*UpgradeInsightsList) DeepCopy ¶
func (in *UpgradeInsightsList) DeepCopy() *UpgradeInsightsList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeInsightsList.
func (*UpgradeInsightsList) DeepCopyInto ¶
func (in *UpgradeInsightsList) DeepCopyInto(out *UpgradeInsightsList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UpgradeInsightsList) DeepCopyObject ¶
func (in *UpgradeInsightsList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UpgradeInsightsSpec ¶
type UpgradeInsightsSpec struct {
// Distro defines which provider API should be used to fetch latest upgrade insights.
// If not provided, we get the distro from the Plural API cluster tied to this operator deploy token.
// +kubebuilder:validation:Enum=EKS
// +kubebuilder:validation:Optional
Distro *console.ClusterDistro `json:"distro,omitempty"`
// ClusterName is your cloud provider cluster identifier (usually name) that is used
// to fetch latest upgrade insights information from the cloud provider API.
// If not provided, we get the cluster name from the Plural API cluster tied to this
// operator deploy token and assume that it is the same as the cluster name in your cloud provider.
// +kubebuilder:validation:Optional
ClusterName *string `json:"clusterName,omitempty"`
// Interval defines how often should the upgrade insights information be fetched.
// +kubebuilder:default="10m"
// +kubebuilder:validation:Optional
Interval *string `json:"interval,omitempty"`
// Credentials allow overriding default provider credentials bound to the operator.
// +kubebuilder:validation:Optional
Credentials *ProviderCredentials `json:"credentials,omitempty"`
}
func (*UpgradeInsightsSpec) DeepCopy ¶
func (in *UpgradeInsightsSpec) DeepCopy() *UpgradeInsightsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradeInsightsSpec.
func (*UpgradeInsightsSpec) DeepCopyInto ¶
func (in *UpgradeInsightsSpec) DeepCopyInto(out *UpgradeInsightsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UpgradeInsightsSpec) GetClusterName ¶
func (in *UpgradeInsightsSpec) GetClusterName(defaultClusterName string) string
func (*UpgradeInsightsSpec) GetDistro ¶
func (in *UpgradeInsightsSpec) GetDistro(defaultDistro *console.ClusterDistro) *console.ClusterDistro
func (*UpgradeInsightsSpec) GetInterval ¶
func (in *UpgradeInsightsSpec) GetInterval() time.Duration
type VClusterHelmConfiguration ¶
type VClusterHelmConfiguration struct {
HelmConfiguration `json:",inline"`
}
func (*VClusterHelmConfiguration) DeepCopy ¶
func (in *VClusterHelmConfiguration) DeepCopy() *VClusterHelmConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VClusterHelmConfiguration.
func (*VClusterHelmConfiguration) DeepCopyInto ¶
func (in *VClusterHelmConfiguration) DeepCopyInto(out *VClusterHelmConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VClusterHelmConfiguration) GetChartName ¶
func (in *VClusterHelmConfiguration) GetChartName() string
func (*VClusterHelmConfiguration) GetRepoUrl ¶
func (in *VClusterHelmConfiguration) GetRepoUrl() string
type VirtualCluster ¶
type VirtualCluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec ...
// +kubebuilder:validation:Required
Spec VirtualClusterSpec `json:"spec"`
// Status ...
// +kubebuilder:validation:Optional
Status VirtualClusterStatus `json:"status,omitempty"`
}
VirtualCluster is the Schema for the virtual cluster API +kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="ID of the VirtualCluster in the Console API."
func (*VirtualCluster) Attributes ¶
func (in *VirtualCluster) Attributes() console.ClusterAttributes
func (*VirtualCluster) DeepCopy ¶
func (in *VirtualCluster) DeepCopy() *VirtualCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualCluster.
func (*VirtualCluster) DeepCopyInto ¶
func (in *VirtualCluster) DeepCopyInto(out *VirtualCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualCluster) DeepCopyObject ¶
func (in *VirtualCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtualCluster) Diff ¶
func (in *VirtualCluster) Diff(hasher Hasher) (changed bool, sha string, err error)
func (*VirtualCluster) SetCondition ¶
func (in *VirtualCluster) SetCondition(condition metav1.Condition)
type VirtualClusterList ¶
type VirtualClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []VirtualCluster `json:"items"`
}
VirtualClusterList contains a list of VirtualCluster +kubebuilder:object:root=true
func (*VirtualClusterList) DeepCopy ¶
func (in *VirtualClusterList) DeepCopy() *VirtualClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterList.
func (*VirtualClusterList) DeepCopyInto ¶
func (in *VirtualClusterList) DeepCopyInto(out *VirtualClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualClusterList) DeepCopyObject ¶
func (in *VirtualClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualClusterSpec ¶
type VirtualClusterSpec struct {
// KubeconfigRef is a reference to the secret created by the
// vcluster helm chart. It contains kubeconfig with information
// on how to access created virtual cluster.
// +kubebuilder:validation:Required
KubeconfigRef corev1.LocalObjectReference `json:"kubeconfigRef"`
// CredentialsRef is a reference to the secret pointing to the
// key that holds Console API access token. It allows to communicate
// with the standard Console API.
// +kubebuilder:validation:Required
CredentialsRef corev1.SecretKeySelector `json:"credentialsRef"`
// Cluster is a simplified representation of the Console API cluster
// object. See [ClusterSpec] for more information.
// +kubebuilder:validation:Optional
Cluster *ClusterSpec `json:"cluster,omitempty"`
// External marks this virtual cluster as external one, meaning
// that the vcluster deployment will not be automatically created.
// User has to pre-provision vcluster and provide a valid KubeconfigRef
// pointing to an existing vcluster installation.
// +kubebuilder:validation:Optional
External *bool `json:"external,omitempty"`
// Helm allows configuring helm chart options of both agent and vcluster.
// It is then deployed by the [VirtualCluster] CRD controller.
// +kubebuilder:validation:Optional
Helm *HelmSpec `json:"helm,omitempty"`
}
func (*VirtualClusterSpec) DeepCopy ¶
func (in *VirtualClusterSpec) DeepCopy() *VirtualClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSpec.
func (*VirtualClusterSpec) DeepCopyInto ¶
func (in *VirtualClusterSpec) DeepCopyInto(out *VirtualClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualClusterSpec) IsExternal ¶
func (in *VirtualClusterSpec) IsExternal() bool
type VirtualClusterStatus ¶
type VirtualClusterStatus struct {
Status `json:",inline"`
}
func (*VirtualClusterStatus) DeepCopy ¶
func (in *VirtualClusterStatus) DeepCopy() *VirtualClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterStatus.
func (*VirtualClusterStatus) DeepCopyInto ¶
func (in *VirtualClusterStatus) DeepCopyInto(out *VirtualClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualClusterStatus) IsAgentReady ¶
func (in *VirtualClusterStatus) IsAgentReady() bool
func (*VirtualClusterStatus) IsVClusterReady ¶
func (in *VirtualClusterStatus) IsVClusterReady() bool
type WorkbenchMCPCategory ¶ added in v0.6.67
type WorkbenchMCPCategory string
WorkbenchMCPCategory is a workbench tool category accepted by the Console MCP endpoint. +kubebuilder:validation:Enum=metrics;logs;integration;ticketing;traces;error_tracking;infrastructure;search;scm;chat;function;coding;verification;observability
const ( WorkbenchMCPCategoryMetrics WorkbenchMCPCategory = "metrics" WorkbenchMCPCategoryLogs WorkbenchMCPCategory = "logs" WorkbenchMCPCategoryIntegration WorkbenchMCPCategory = "integration" WorkbenchMCPCategoryTicketing WorkbenchMCPCategory = "ticketing" WorkbenchMCPCategoryTraces WorkbenchMCPCategory = "traces" WorkbenchMCPCategoryErrorTracking WorkbenchMCPCategory = "error_tracking" WorkbenchMCPCategoryInfrastructure WorkbenchMCPCategory = "infrastructure" WorkbenchMCPCategorySearch WorkbenchMCPCategory = "search" WorkbenchMCPCategorySCM WorkbenchMCPCategory = "scm" WorkbenchMCPCategoryChat WorkbenchMCPCategory = "chat" WorkbenchMCPCategoryFunction WorkbenchMCPCategory = "function" WorkbenchMCPCategoryCoding WorkbenchMCPCategory = "coding" WorkbenchMCPCategoryVerification WorkbenchMCPCategory = "verification" WorkbenchMCPCategoryObservability WorkbenchMCPCategory = "observability" )
type WorkbenchMCPConfig ¶ added in v0.6.67
type WorkbenchMCPConfig struct {
// Enabled controls whether workbench tools are available to coding agents.
// +kubebuilder:default:=false
Enabled bool `json:"enabled"`
// Categories limits the exposed workbench tools. When omitted, the default
// set is metrics, logs, traces, ticketing, search, scm, and infrastructure.
// +kubebuilder:validation:Optional
Categories []WorkbenchMCPCategory `json:"categories,omitempty"`
}
func (*WorkbenchMCPConfig) DeepCopy ¶ added in v0.6.67
func (in *WorkbenchMCPConfig) DeepCopy() *WorkbenchMCPConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkbenchMCPConfig.
func (*WorkbenchMCPConfig) DeepCopyInto ¶ added in v0.6.67
func (in *WorkbenchMCPConfig) DeepCopyInto(out *WorkbenchMCPConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files
¶
- agentconfig_types.go
- agentrun_types.go
- agentruntime_model.go
- agentruntime_types.go
- clusterdrain_types.go
- common_types.go
- customhealth_types.go
- custominsightpriority_types.go
- devboxrunner_types.go
- doc.go
- groupversion_info.go
- imagewarmer_types.go
- ingressreplica_types.go
- kubecostextractor_types.go
- metricsaggregate_types.go
- pipelinegate_types.go
- pluralcapicluster_types.go
- register.go
- sentinelrunjob_types.go
- stackrunjob_types.go
- upgradeinsights_types.go
- virtualcluster_types.go
- zz_generated.deepcopy.go